mip-share share


Provides the sharing button function within the page, and shares the current URL by default:

QQ截图20170204131751.png

Example

Basic use

<div class="mip-share-container">
    <mip-share></mip-share>
</div>

fixed Layout

<div class="mip-share-container">
    <mip-share 
        layout="fixed"
        width="200"
        height="158">
    </mip-share>
</div>

Custom sharing parameters

<div class="mip-share-container">
    <mip-share 
        title="分享标题" 
        content="分享内容" 
        icon="https://m.baidu.com/se/static/pmd/pmd/share/images/bdu.jpg" 
        layout="responsive"
        width="414"
        height="158">
    </mip-share>
</div>

Attributes

url

Description: Shared URL
Required option: No
Type : String
Value range: URL
Default value: URL of the current page

title

Description: Shared title
Required option: No
Type: String

content

Description: Shared content
Required option: No
Type: String

icon

Description: Shared icon
Required option: No
Type: String
Value range: URL