0.1.1 • Published 3 years ago
yach-open-components v0.1.1
开放平台开放组件 SDK
yarn 安装
$ yarn add yach-open-components
npm 安装
$ npm i yach-open-components -S
使用
import { init } from 'yach-open-components'
const Components = init({
// 状态注入 必须
store: window.store,
// 窗口ID 默认workbench
type: 'workbench', // workbench plugin im
// 初始化配置文件 12/13/14的配置文件 必须
config: {
config_test,
config_online,
config_url
},
// 所需接口 必须
api: {
ucenterAuthCode,
jsapiSign,
fileReview,
fileInfoSave,
platformTencentPresignet
},
// 11-native
nativePath: require('../../../11-native/share/jsapi-webview-utils.js')
})
// 渲染
return (
Components ? <Components.createSDK /> : null
)
0.1.5
3 years ago
0.1.3-beta3
3 years ago
0.1.3-beta
3 years ago
0.1.3-beta1
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.0.5
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago