@zhuowenli/miniapp-element
v0.0.17
Published
Custom element for MiniApp
Downloads
4
Readme
miniapp-element
Forked from kbone.
Introduce
Provider custom element to miniapp-render
.
Install
npm install --save @zhuowenli/miniapp-element
Usage
{
"usingComponents": {
"element": "@zhuowenli/miniapp-element"
}
}
<element data-private-node-id="{{nodeId}}" data-private-page-id="{{pageId}}"></element>
Properties
| Property | Required | Description | | -------- | -------- | -------------------------------------------------- | | pageId | ✔️ | Find the window/document corresponding to the page | | nodeId | ✔️ | Find the dom corresponding to the node |