wisebox
v1.2.2
Published
安装依赖 ``` npm i ``` 本地运行 ``` npm start ``` 打包(目录:dist) ``` npm run build ``` # 工程目录
Downloads
5
Readme
使用
安装依赖
npm i
本地运行
npm start
打包(目录:dist)
npm run build
工程目录
.
├── config // webpack配置
├── dist // 打包目录
├── example/src // 开发调试目录
├── src // api服务
│ ├── api // 请求接口
│ ├── assets // 公共静态文件
│ ├── components // 公共组件库
│ ├── config // 配置文件(路由、微服务等)
│ ├── index.js // 入口文件
│ ├── index.less // 入口样式
│ ├── shared // 微服务共享状态处理
│ └── utils // 公共工具
├── README.md // 工程说明
├── package-lock.json // 依赖锁定
├── package.json // 工程配置
API
| 参数 | 说明 | 类型 | 是否必填 | 默认值 | |:--------- |:--------------------------------------------|:-------|:--------|:-------| | im |websocket服务地址 |string |是 |- | | api |api服务地址 |string |是 |- | | orderUrl |提单地址 |string |是 |- | | zIndex |浮动按钮的z-index |number |否 |99 | | getContainer |浮动按钮渲染父节点,默认渲染到 body 上 |HTMLElement | () => HTMLElement | Selectors | false |否 | | avatar |自定义图标url |string |否 |- |