2.0.17 • Published 2 years ago
airongkeji-rule-editor v2.0.17
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
在项目中引入组件
step 1:下载包 使用命令npm install airongkeji-rule-editor
进行下载
step 2:在main.js中引入注册组件,分为三步
1、引入组件
import Adp from 'airongkeji-rule-editor'
2、引入组件的样式文件
import 'airongkeji-rule-editor/lib/airongkeji-rule-editor.css'
3、挂载组件
Vue.use(Adp)
step 3:在使用该组件的地方,放入对应的代码,举例如下:
<page-rule-editor
:base-u-r-l="baseURL"
:bom-base-info-id="$store.state.bom.bomBaseInfo"
:token="token"
:rule-content="rule.ruleContent"
:code-services="rule.codeServices"
@submitRule="submitRule"
></page-rule-editor>
props属性说明:
baseURL 必传属性,接口请求前缀
bomBaseInfoId 必传属性,树状模型的id
token 必传属性,用户的token
rule-content 可选属性,在编辑情况下传ruleContent,置入编辑数据
codeServices 可选属性,在编辑情况下传codeServices,提前查询列表
submitRule 事件,保存规则触发,回调参数:rootTreeNode(树状结构的json数据), text(转化好的决策规则内容文本,比如'险种代码 等于 4343242')
2.0.15
2 years ago
2.0.3
2 years ago
2.0.16
2 years ago
2.0.2
2 years ago
2.0.13
2 years ago
2.0.5
2 years ago
2.0.14
2 years ago
2.0.4
2 years ago
2.0.11
2 years ago
2.0.7
2 years ago
2.0.12
2 years ago
2.0.6
2 years ago
2.0.9
2 years ago
2.0.10
2 years ago
2.0.8
2 years ago
2.0.1
2 years ago
2.0.0
2 years ago
2.0.17
2 years ago
1.0.33
2 years ago
1.0.32
2 years ago
1.0.31
2 years ago
1.0.26
2 years ago
1.0.25
2 years ago
1.0.29
2 years ago
1.0.28
2 years ago
1.0.27
2 years ago
1.0.30
2 years ago
1.0.24
2 years ago
1.0.22
2 years ago
1.0.21
2 years ago
1.0.23
2 years ago
1.0.19
3 years ago
1.0.18
3 years ago
1.1.0
3 years ago
1.0.17
3 years ago
1.0.16
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.10
3 years ago
1.0.20
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.6
4 years ago