Skip to content

a rule editor by canvas/svg; 使用canvas实现, 用自然语言编辑规则的编辑器

License

Notifications You must be signed in to change notification settings

zhao-core/rule-editor

Repository files navigation

rule-editor

a rule editor by canvas/svg

tips

用自然语言编辑规则的编辑器,最终保存成 AST 语法树;(未完成)

usage

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'
    }
  ]
})

next features

snapshot

image

install

yarn

dev

npm run dev

build

app

npm run build

lib

npm run lib

已实现feature

  1. 输入文本, 关键字下拉框选择
  2. 单选/多选
  3. 日期的选择
  4. 颜色标注

About

a rule editor by canvas/svg; 使用canvas实现, 用自然语言编辑规则的编辑器

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published