This commit is contained in:
砂糖
2026-02-07 18:01:13 +08:00
commit 8015759c65
2110 changed files with 269866 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
'use strict';
Component({
properties: {
show: {
type: Boolean,
value: false
},
overlay: {
type: Boolean,
value: true
},
closeOnClickOverlay: {
type: Boolean,
value: true
},
// 弹出方向
type: {
type: String,
value: 'center'
}
},
methods: {
handleMaskClick: function() {
this.triggerEvent('click-overlay', {});
if (!this.data.closeOnClickOverlay) {
return;
}
this.triggerEvent('close', {});
}
}
});

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"pop-manager": "../pop-manager/index"
}
}

View File

@@ -0,0 +1,8 @@
<pop-manager
show="{{ show }}"
type="{{ type }}"
show-overlay="{{ overlay }}"
bindclickmask="handleMaskClick"
>
<slot></slot>
</pop-manager>