[new feature] SwipeCell: support auto calc left-width & right-width

This commit is contained in:
陈嘉涵
2019-05-29 15:25:39 +08:00
parent a2fc0e91c2
commit 6ab565920e
7 changed files with 101 additions and 55 deletions
+2 -9
View File
@@ -3,10 +3,7 @@
<demo-section>
<van-notice-bar>{{ $t('tips') }}</van-notice-bar>
<demo-block :title="$t('basicUsage')">
<van-swipe-cell
:right-width="60"
:left-width="60"
>
<van-swipe-cell>
<van-button
square
slot="left"
@@ -28,11 +25,7 @@
</demo-block>
<demo-block :title="$t('title2')">
<van-swipe-cell
:right-width="60"
:left-width="60"
:on-close="onClose"
>
<van-swipe-cell :on-close="onClose">
<van-button
square
slot="left"