a rule editor by canvas/svg
用自然语言编辑规则的编辑器,最终保存成 AST 语法树;(未完成)
npm i @zhao-core/rule-editor --save
<div class="rule-editor"></div>
import Editor from '@zhao-core/rule-editor'
new Editor(document.querySelector('.rule-editor'), {
main: [
{
value: 'Hello World'
}
]
})
yarn
npm run dev
npm run build
npm run lib
- 输入文本, 关键字下拉框选择
- 单选/多选
- 日期的选择
- 颜色标注