vue 组件数据共享
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)
Prop | Data Type | Required | Description |
---|
url | String | true | URL to share. | scale | String | | Size of icon (1-9) |
Struts | 数据类型 | 需要 | 描述 |
---|
url | 串 | 真正 | 分享网址。 | scale | 串 | | 图标大小(1-9) |
import { Twitter } from 'vue-socialmedia-share';
// usage in local component
export default {
components: {
Twitter
}
};
Prop | Data Type | Required | Description |
---|
url | String | true | URL to share. | scale | String | | Size of icon(1-9) | title | String | | Title 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
}
};
Prop | Data Type | Required | Description |
---|
url | String | true | URL to share. | scale | String | | Size 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
}
};
Prop | Data Type | Required | Description |
---|
url | String | true | URL to share. | scale | String | | Size of icon(1-9) | title | String | | Title of the shared page |
|