first commit
This commit is contained in:
36
衣莎项目/源码/YiShaXiYi/component/popup/popup.js
Normal file
36
衣莎项目/源码/YiShaXiYi/component/popup/popup.js
Normal file
@@ -0,0 +1,36 @@
|
||||
// component/popup/popup.js
|
||||
Component({
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
options:{
|
||||
multipleSlots: true
|
||||
},
|
||||
properties: {
|
||||
isPopup:{ //是否显示弹出层
|
||||
type: Boolean,
|
||||
value: true
|
||||
},
|
||||
backClick:{ // 点击背景是否关闭
|
||||
type: Boolean,
|
||||
value: true
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
isBackClick () {
|
||||
if(this.properties.backClick) return;
|
||||
this.properties.isPopup = false
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user