vue 组件数据共享_社交共享链接的Vue组件

论坛 期权论坛 编程之家     
选择匿名的用户   2021-5-30 09:14   11   0

vue 组件数据共享

vue-socialmedia-share (vue-socialmedia-share)

Vue component for social sharing.

社交共享的Vue组件。

vue-socialmedia-share is a vue component for sharing links to social networks

vue-socialmedia-share是用于共享指向社交网络的链接的vue组件

安装 (Installation)

yarn add vue-socialmedia-share

or

要么

npm install vue-socialmedia-share

API (API)

脸书 (Facebook)

import { Facebook } from 'vue-socialmedia-share';

// usage in local component

export default {
  components: {
    Facebook
  }
};

道具 (Props)

PropData TypeRequiredDescription
urlStringtrueURL to share.
scaleStringSize of icon (1-9)
Struts 数据类型 需要 描述
url 真正 分享网址。
scale 图标大小(1-9)

推特 (Twitter)

import { Twitter } from 'vue-socialmedia-share';

// usage in local component

export default {
  components: {
    Twitter
  }
};
PropData TypeRequiredDescription
urlStringtrueURL to share.
scaleStringSize of icon(1-9)
titleStringTitle of the shared page
Struts 数据类型 需要 描述
url 真正 分享网址。
scale 图标大小(1-9)
title 共享页面的标题

领英 (LinkedIn)

import { Linkedin } from 'vue-socialmedia-share';

// usage in local component

export default {
  components: {
    Linkedin
  }
};
PropData TypeRequiredDescription
urlStringtrueURL to share.
scaleStringSize of icon(1-9)
Struts 数据类型 需要 描述
url 真正 分享网址。
scale 图标大小(1-9)

Reddit (Reddit)

import { Reddit } from 'vue-socialmedia-share';

// usage in local component

export default {
  components: {
    Reddit
  }
};
PropData TypeRequiredDescription
urlStringtrueURL to share.
scaleStringSize of icon(1-9)
titleStringTitle of the shared page
Struts 数据类型 需要
分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛