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>
-4
View File
@@ -20,9 +20,7 @@ Vue.use(SwipeCell);
<template slot="left">
<van-button square type="primary" text="选择" />
</template>
<van-cell :border="false" title="单元格" value="内容" />
<template slot="right">
<van-button square type="danger" text="删除" />
<van-button square type="primary" text="收藏"/>
@@ -39,9 +37,7 @@ Vue.use(SwipeCell);
<template slot="left">
<van-button square type="primary" text="选择" />
</template>
<van-cell :border="false" title="单元格" value="内容" />
<template slot="right">
<van-button square type="danger" text="删除" />
</template>
+3 -3
View File
@@ -18,7 +18,7 @@
</van-swipe-cell>
</demo-block>
<demo-block :title="$t('title2')">
<demo-block :title="$t('beforeClose')">
<van-swipe-cell :before-close="beforeClose">
<template #left>
<van-button square type="primary" :text="$t('select')" />
@@ -45,16 +45,16 @@ export default {
delete: '删除',
collect: '收藏',
title: '单元格',
title2: '异步关闭',
confirm: '确定删除吗?',
beforeClose: '异步关闭',
},
'en-US': {
select: 'Select',
delete: 'Delete',
collect: 'Collect',
title: 'Cell',
title2: 'Async close',
confirm: 'Are you sure to delete?',
beforeClose: 'Before Close',
},
},