feat(ShareSheet): add wechat-moments icon

This commit is contained in:
chenjiahan 2021-01-18 21:05:20 +08:00
parent d47e682c56
commit 4f94dd3260
4 changed files with 8 additions and 2 deletions

View File

@ -62,6 +62,7 @@ export default {
options: [
[
{ name: 'Wechat', icon: 'wechat' },
{ name: 'Wechat Moments', icon: 'wechat-moments' },
{ name: 'Weibo', icon: 'weibo' },
{ name: 'QQ', icon: 'qq' },
],
@ -130,7 +131,7 @@ export default {
| --- | --- | --- |
| name | Option name | _string_ |
| description `v2.8.5` | Option description | _string_ |
| icon | Option iconcan be set to `wechat` `weibo` `qq` `link` `qrcode` `poster` `weapp-qrcode` or image URL | _string_ |
| icon | Option iconcan be set to `wechat` `weibo` `qq` `link` `qrcode` `poster` `weapp-qrcode` `wechat-moments` or image URL | _string_ |
| className | Option className is used to set the class props to the share item | _string_ |
### Events

View File

@ -74,6 +74,7 @@ export default {
options: [
[
{ name: '微信', icon: 'wechat' },
{ name: '朋友圈', icon: 'wechat-moments' },
{ name: '微博', icon: 'weibo' },
{ name: 'QQ', icon: 'qq' },
],
@ -178,7 +179,7 @@ export default {
| --- | --- | --- |
| name | 分享渠道名称 | _string_ |
| description `v2.8.5` | 分享选项描述 | _string_ |
| icon | 图标,可选值为 `wechat` `weibo` `qq` `link` `qrcode` `poster` `weapp-qrcode`,支持传入图片 URL | _string_ |
| icon | 图标,可选值为 `wechat` `weibo` `qq` `link` `qrcode` `poster` `weapp-qrcode` `wechat-moments`,支持传入图片 URL | _string_ |
| className | 分享选项类名 | _string_ |
### Events

View File

@ -68,6 +68,7 @@ export default {
customIcon: '自定义图标',
description: '描述信息',
weappQrcode: '小程序码',
wechatMoments: '朋友圈',
},
'en-US': {
qq: 'QQ',
@ -84,6 +85,7 @@ export default {
customIcon: 'Custom Icon',
description: 'Description',
weappQrcode: 'Weapp Qrcode',
wechatMoments: 'Wechat Moments',
},
},
@ -113,6 +115,7 @@ export default {
return [
[
{ name: this.t('wechat'), icon: 'wechat' },
{ name: this.t('wechatMoments'), icon: 'wechat-moments' },
{ name: this.t('weibo'), icon: 'weibo' },
{ name: this.t('qq'), icon: 'qq' },
],

View File

@ -15,6 +15,7 @@ const PRESET_ICONS = [
'poster',
'qrcode',
'weapp-qrcode',
'wechat-moments',
];
const [createComponent, bem, t] = createNamespace('share-sheet');