会议详情,项目详情,我的页面

This commit is contained in:
姚亚男
2021-10-09 18:06:46 +08:00
parent 2134e2525f
commit e4e2740c0b
8 changed files with 207 additions and 49 deletions
+59
View File
@@ -0,0 +1,59 @@
// components/popup/popup.js
Component({
/**
* 组件的属性列表
*/
properties: {
// 是否弹出显示
visible: {
type: Boolean,
value: false
},
//点击外部的遮罩层是否允许关闭
outClickCanClose: {
type: Boolean,
value: false
},
// 组件循环需要渲染的数据内容, 接受label和value的形式
data: {
type: Array,
value: [
{
label: '是',
value: 1
},{
label: '否',
value: 0
}
]
}
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
closePopup() {
this.triggerEvent("close", {
visible: this.data.visible
})
},
outClick(){
if (this.data.outClickCanClose){
this.triggerEvent("close", {
visible: this.data.visible
})
}
},
ok(e){
this.triggerEvent("ok", e.target.dataset.value)
}
}
})