WEB应用开发-“iot-plugin-panel”
更新时间:2017-12-21 10:50:26
简介
Web 应用集成Web 插件的容器组件。
安装
bnpm install @bone/iot-plugin-panel --save
使用
引用
import IotPluginPanel from '@boneweb/iot-plugin-panel';
使用
<IotPluginPanel id={'xxx'} api={'xxx'} />
API
参数说明
参数 | 说明 | 类型 | 必填 | 默认值 |
---|---|---|---|---|
id | 插件ID | String | true | - |
api | 获取插件的api,请务必使用当前应用所在平台api接口,否则会鉴权失败。飞凤平台:https://official.api.feifengiot.com/app/manifest/webplugin/router |
String | true | - |
type | 渲染类型,normal: 直接渲染到页面中;iframe: 以iframe方式渲染到页面中 | String | false | normal |
autoHeight | 渲染类型为iframe方式时, 自适应内容高度 | Boolean | false | true |
style | 自定义样式 | Object | false | - |
className | 自定义样式名 | String | false | - |