mirror of
https://git.beihong.wang/wangbeihong/iot-bedroom-environment-controller.git
synced 2026-04-23 11:53:03 +08:00
40 lines
686 B
JavaScript
40 lines
686 B
JavaScript
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() {}
|
|
}
|
|
}) |