2025-12-26 17:26:32 +08:00
|
|
|
Component({
|
|
|
|
|
/**
|
|
|
|
|
* 组件的属性列表
|
|
|
|
|
*/
|
|
|
|
|
properties: {
|
|
|
|
|
visible: null,
|
|
|
|
|
placement: null,
|
|
|
|
|
title: null,
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 组件的初始数据
|
|
|
|
|
*/
|
|
|
|
|
data: {},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 组件的方法列表
|
|
|
|
|
*/
|
|
|
|
|
methods: {
|
|
|
|
|
onVisibleChange(e: any) {
|
2026-01-09 15:26:10 +08:00
|
|
|
// console.log(e.detail.visible);
|
|
|
|
|
this.setData({ open: e.detail.visible });
|
2025-12-26 17:26:32 +08:00
|
|
|
if (!e.detail.visible) {
|
|
|
|
|
this.triggerEvent("close");
|
|
|
|
|
}
|
|
|
|
|
},
|
2026-01-14 16:54:47 +08:00
|
|
|
onClose() {
|
|
|
|
|
this.setData({ open: false });
|
|
|
|
|
this.triggerEvent("close");
|
|
|
|
|
},
|
2025-12-26 17:26:32 +08:00
|
|
|
},
|
|
|
|
|
});
|