first add files
This commit is contained in:
31
ProjectLiaisonForm/pages/popup/base/index.js
Normal file
31
ProjectLiaisonForm/pages/popup/base/index.js
Normal file
@@ -0,0 +1,31 @@
|
||||
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,
|
||||
});
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user