first add files
This commit is contained in:
32
ProjectLiaisonForm/pages/swipe-cell/left/index.js
Normal file
32
ProjectLiaisonForm/pages/swipe-cell/left/index.js
Normal file
@@ -0,0 +1,32 @@
|
||||
Component({
|
||||
data: {
|
||||
right: [
|
||||
{
|
||||
text: '编辑',
|
||||
className: 'btn edit-btn',
|
||||
},
|
||||
{
|
||||
text: '删除',
|
||||
className: 'btn delete-btn',
|
||||
},
|
||||
],
|
||||
},
|
||||
methods: {
|
||||
onActionClick({ detail }) {
|
||||
wx.showToast({ title: `你点击了${detail.text}`, icon: 'none' });
|
||||
},
|
||||
|
||||
onDelete() {
|
||||
wx.showToast({ title: '你点击了删除', icon: 'none' });
|
||||
},
|
||||
onEdit() {
|
||||
wx.showToast({ title: '你点击了编辑', icon: 'none' });
|
||||
},
|
||||
onFavor() {
|
||||
wx.showToast({ title: '你点击了收藏', icon: 'none' });
|
||||
},
|
||||
onChoice() {
|
||||
wx.showToast({ title: '你点击了选择', icon: 'none' });
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user