diff --git a/src/share-sheet/README.md b/src/share-sheet/README.md index c41a0d95d..5ef2a2aa3 100644 --- a/src/share-sheet/README.md +++ b/src/share-sheet/README.md @@ -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 icon,can be set to `wechat` `weibo` `qq` `link` `qrcode` `poster` `weapp-qrcode` or image URL | _string_ | +| icon | Option icon,can 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 diff --git a/src/share-sheet/README.zh-CN.md b/src/share-sheet/README.zh-CN.md index 0e6d0680e..4a026d5be 100644 --- a/src/share-sheet/README.zh-CN.md +++ b/src/share-sheet/README.zh-CN.md @@ -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 diff --git a/src/share-sheet/demo/index.vue b/src/share-sheet/demo/index.vue index e9d9b8250..f16725030 100644 --- a/src/share-sheet/demo/index.vue +++ b/src/share-sheet/demo/index.vue @@ -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' }, ], diff --git a/src/share-sheet/index.js b/src/share-sheet/index.js index 5e5529535..b84c72c8a 100644 --- a/src/share-sheet/index.js +++ b/src/share-sheet/index.js @@ -15,6 +15,7 @@ const PRESET_ICONS = [ 'poster', 'qrcode', 'weapp-qrcode', + 'wechat-moments', ]; const [createComponent, bem, t] = createNamespace('share-sheet');