Files
FreeERP.Applet/miniprogram/pages/components/popup-plugin/index.ts

32 lines
497 B
TypeScript
Raw Normal View History

2025-12-26 17:26:32 +08:00
// pages/components/popup-plugin/index.ts
Component({
/**
*
*/
properties: {
visible: null,
placement: null,
title: null,
},
/**
*
*/
data: {},
/**
*
*/
methods: {
onVisibleChange(e: any) {
console.log(e.detail.visible);
this.setData({
open: e.detail.visible,
});
if (!e.detail.visible) {
this.triggerEvent("close");
}
},
},
});