-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
417 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Component({ | ||
data: { | ||
right: [ | ||
{ | ||
text: '删除', | ||
className: 'btn delete-btn', | ||
}, | ||
], | ||
left: [ | ||
{ | ||
text: '选择', | ||
className: 'btn favor-btn', | ||
}, | ||
], | ||
}, | ||
|
||
methods: { | ||
onActionClick({ detail }) { | ||
wx.showToast({ title: `你点击了${detail.text}`, icon: 'none' }); | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"component": true, | ||
"usingComponents": { | ||
"t-cell": "tdesign-miniprogram/cell/cell", | ||
"t-swipe-cell": "tdesign-miniprogram/swipe-cell/swipe-cell" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<t-swipe-cell right="{{right}}" left="{{left}}" bind:click="onActionClick"> | ||
<t-cell title="左右滑操作" note="辅助信息" bordered="{{false}}" /> | ||
</t-swipe-cell> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.btn { | ||
display: inline-flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 120rpx; | ||
height: 100%; | ||
color: white; | ||
} | ||
|
||
.favor-btn { | ||
background-color: #0052d9; | ||
} | ||
|
||
.delete-btn { | ||
background-color: #e34d59; | ||
} |
Oops, something went wrong.