1.0.6 • Published 2 years ago
airong-rule-editor v1.0.6
adp
Project setup
yarn install
Compiles and hot-reloads for development
yarn serve
Compiles and minifies for production
yarn build
Compiles and minifies for library
yarn build:lib
Lints and fixes files
yarn lint
Customize configuration
使用组件
<page-rule-editor
:baseURL="baseURL"
:bomBaseInfoId="bomBaseInfoId"
:token="token"
:rule-content="ruleContent"
@submitRule="submitRule"
></page-rule-editor>
baseURL 必传属性,接口请求前缀
bomBaseInfoId 必传属性,树状模型的id
token 必传属性, 用户的token
rule-content 可选属性, 在编辑情况下传ruleContent, 置入编辑数据
codeServices 可选属性, 在编辑情况下传codeServices, 提前查询列表
submitRule 事件, 保存规则触发, 回调参数:rootTreeNode(树状结构的json数据), text(处理好转化的纯文本)