ts_aimz/components/fui-bottom-popup/fui-bottom-popup.js
itgaojian163 cbf7c00399 页面
2025-03-24 18:05:54 +08:00

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) {}
}
})