40 lines
865 B
JavaScript
Executable File
40 lines
865 B
JavaScript
Executable File
Component({
|
|
properties: {
|
|
show: {
|
|
type: Boolean,
|
|
value: false
|
|
},
|
|
//背景颜色
|
|
background: {
|
|
type: String,
|
|
value: '#fff'
|
|
},
|
|
//圆角
|
|
radius: {
|
|
type: Number,
|
|
optionalTypes: [String],
|
|
value: 24
|
|
},
|
|
zIndex: {
|
|
type: Number,
|
|
optionalTypes: [String],
|
|
value: 1001
|
|
},
|
|
//点击遮罩 是否可关闭
|
|
maskClosable: {
|
|
type: Boolean,
|
|
value: true
|
|
},
|
|
maskBackground: {
|
|
type: String,
|
|
value: 'rgba(0,0,0,.6)'
|
|
}
|
|
},
|
|
methods: {
|
|
handleClose(e) {
|
|
if (!this.data.maskClosable) return;
|
|
this.triggerEvent('close', {});
|
|
},
|
|
stop(e) {}
|
|
}
|
|
}) |