vue 社会分享组件vue-share-buttons
组件地址:https://github.com/Alexandrshy/vue-share-buttons
安装说明
npm i vue-share-buttons
使用说明
1、js部分
import TwitterButton from "vue-share-buttons/src/components/TwitterButton";
const app = new Vue({
el: "#app",
components: {
TwitterButton,
},
});
2、html部分
<div id="app">
<twitter-button
shareUrl="https://github.com/"
shareDescription="GitHub is where people build software."
/>
</div>
其他说明请具体看github官方说明