feat(ShareSheet): add options description (#6460)

* feat(share-sheet): share sheet add option

* feat(share-sheet): add options intro

* feat(ShareSheet): add options description

Co-authored-by: zhanglin <zhanglin_0715@youzan.com>
This commit is contained in:
木槿花开
2020-06-04 16:29:35 +08:00
committed by GitHub
co-authored by zhanglin
parent 472c4f35ae
commit c445b12507
6 changed files with 65 additions and 2 deletions
+15 -1
View File
@@ -42,7 +42,7 @@
<van-share-sheet
v-model="show.withDesc"
:title="t('title')"
:options="options"
:options="optionsWithDesc"
:description="t('description')"
@select="onSelect"
/>
@@ -138,6 +138,20 @@ export default {
},
];
},
optionsWithDesc() {
return [
{ name: this.t('wechat'), icon: 'wechat' },
{ name: this.t('weibo'), icon: 'weibo' },
{
name: this.t('link'),
icon: 'link',
description: this.t('description'),
},
{ name: this.t('poster'), icon: 'poster' },
{ name: this.t('qrcode'), icon: 'qrcode' },
];
},
},
methods: {