Skip to main content

Mini Program Sharing

Share

Usage Instructions

The Mini Program Sharing Component enables quick implementation of sharing functionality. When clicked in the Mini Program, it shares the page based on the current component configuration. The usage is as follows:

  1. Please confirm that the selected application supports mini-program-side building. For specific operations, refer to Create Application Guide.

  2. Add the Mini Program Sharing component to the editing area, and configure the sharing parameters in the right configuration panel.

  1. After publishing the application to the Mini Program, you will see that clicking the Mini Program sharing button automatically invokes the share pop-up, with the sharing information matching the configuration in the configuration panel.

Component Usage Limitations

  1. The component must be used in a real Mini Program environment to observe the actual effect.

Properties

External properties received by the component

Property Name
Property Identifier
Type
Description
Button title(Mini Program)textstring

Button title

Example: "小程序分享"

Button style(Mini Program)typestring

The style of the button component, compared to the ordinary button component, adds the "WeChat" button style.

Example: "wechat"

Button size(Mini Program)sizestring

Button size

Example: "default"

Sharing title(Mini Program)titlestring

Sharing (forwarding) the card title

Example: ""

分享图片(Mini Program)imagestring

Share (forward) the image of the card

Example: ""

select pagepathstring

Select the page to share (forward)

carry parameterswithParamsboolean

Whether the shared (forwarded) webpage path carries parameters

Example: false

Parameter.paramsarray

分享(转发)的页面的参数,会自动获取到当前选择页面内存在的页面参数并自动根据页面参数进行展开,当用户通过转发的链接进入小程序时,页面便会按照配置的参数进行渲染。如果采用绑定数据的方式,数据格式参考如下:[{key: 'paramKey1', value: 'paramValue1'}, {key: 'paramKey2', value: 'paramValue2'}]

Example: []

Events

None