feat(Card): change thumb fit mode to cover

This commit is contained in:
陈嘉涵
2020-01-24 10:45:06 +08:00
parent 37f512fbd1
commit e766d5d574
9 changed files with 16 additions and 24 deletions
+1 -5
View File
@@ -18,9 +18,7 @@ Vue.use(SwipeCell);
<template slot="left">
<van-button square type="primary" text="Select" />
</template>
<van-cell :border="false" title="Cell" value="Cell Content" />
<template slot="right">
<van-button square type="danger" text="Delete" />
<van-button square type="primary" text="Collect"/>
@@ -28,16 +26,14 @@ Vue.use(SwipeCell);
</van-swipe-cell>
```
### Async close
### Before Close
```html
<van-swipe-cell :before-close="beforeClose">
<template slot="left">
<van-button square type="primary" text="Select" />
</template>
<van-cell :border="false" title="Cell" value="Cell Content" />
<template slot="right">
<van-button square type="danger" text="Delete" />
</template>