MIP文檔手冊(cè)
/ mip-share 分享
mip-share 分享
提供頁面內(nèi)分享按鈕功能,默認(rèn)分享當(dāng)前網(wǎng)址:
示例
基本使用
<div class="mip-share-container"> <mip-share></mip-share> </div>
fixed布局
<div class="mip-share-container"> <mip-share layout="fixed" width="200" height="158"> </mip-share> </div>
自定義分享參數(shù)
<div class="mip-share-container"> <mip-share title="分享標(biāo)題" content="分享內(nèi)容" icon="https://m.baidu.com/se/static/pmd/pmd/share/images/bdu.jpg" layout="responsive" width="414" height="158"> </mip-share> </div>
屬性
url
說明:分享出去的網(wǎng)址
必選項(xiàng):否
類型:字符串
取值范圍:URL
默認(rèn)值:當(dāng)前頁面的url
title
說明:分享出去的標(biāo)題
必選項(xiàng):否
類型:字符串
content
說明:分享出去的內(nèi)容
必選項(xiàng):否
類型:字符串
icon
說明:分享出去的圖標(biāo)
必選項(xiàng):否
類型:字符串
取值范圍:URL