Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.57 KB

Editor.md

File metadata and controls

34 lines (27 loc) · 1.57 KB

Editor

XXX-Editor

  • type 请设置成 editor 或者 bat-editorc-editorcoffeescript-editorcpp-editorcsharp-editorcss-editordockerfile-editorfsharp-editorgo-editorhandlebars-editorhtml-editorini-editorjava-editorjavascript-editorjson-editorless-editorlua-editormarkdown-editormsdax-editorobjective-c-editorphp-editorplaintext-editorpostiats-editorpowershell-editorpug-editorpython-editorr-editorrazor-editorruby-editorsb-editorscss-editorsol-editorsql-editorswift-editortypescript-editorvb-editorxml-editoryaml-editor
  • language 默认为 javascripttypeeditor 的时候有用。
  • 还有更多通用配置请参考 FormItem
{
  "type": "json-editor",
  "name": "json",
  "label": "Json Editor"
}

Diff-Editor

  • type 请设置成 diff-editor
  • language 默认为 javascripttypediff-editor 的时候有用
  • diffValue 设置左侧编辑器的值,支持${xxx}获取变量
  • disabled 配置 右侧编辑器 是否可编辑,左侧编辑器始终不可编辑
  • 还有更多通用配置请参考 FormItem

PS: 当用作纯展示时,可以通过value配置项,设置右侧编辑器的值

{
  "type": "diff-editor",
  "name": "diff",
  "diffValue": "hello world",
  "label": "Diff-Editor"
}