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:
@@ -87,6 +87,23 @@ export default {
|
||||
/>
|
||||
```
|
||||
|
||||
```js
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
showShare: false,
|
||||
options: [
|
||||
{ name: 'Wechat', icon: 'wechat' },
|
||||
{ name: 'Weibo', icon: 'weibo' },
|
||||
{ name: 'Link', icon: 'link', description: 'Description' },
|
||||
{ name: 'Poster', icon: 'poster' },
|
||||
{ name: 'Qrcode', icon: 'qrcode' },
|
||||
],
|
||||
};
|
||||
},
|
||||
};
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### Props
|
||||
@@ -111,6 +128,7 @@ export default {
|
||||
| Key | Description | Type |
|
||||
| --- | --- | --- |
|
||||
| name | Option name | _string_ |
|
||||
| description | Option description | _string_ |
|
||||
| icon | Option icon,can be set to `wechat` `weibo` `qq` `link` `qrcode` `poster` or image URL | _string_ |
|
||||
|
||||
### Events
|
||||
|
||||
Reference in New Issue
Block a user