first add files

This commit is contained in:
2025-08-15 14:05:08 +08:00
parent c58f74bcc0
commit b6216570d9
2451 changed files with 29056 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
Component({
data: {
cur: {},
position: [
{ value: 'top', text: '顶部弹出' },
{ value: 'left', text: '左侧弹出' },
{ value: 'center', text: '中间弹出' },
{ value: 'bottom', text: '底部弹出' },
{ value: 'right', text: '右侧弹出' },
],
},
methods: {
handlePopup(e) {
const { item } = e.currentTarget.dataset;
this.setData(
{
cur: item,
},
() => {
this.setData({ visible: true });
},
);
},
onVisibleChange(e) {
this.setData({
visible: e.detail.visible,
});
},
onClose() {
this.setData({
visible: false,
});
},
},
});