Skip to content

Latest commit

 

History

History

editor

@simpleform/editor

English | 中文说明

Based on react implementation of the form designer , support for custom components , template import and export , visual design and other form design features , the secondary development is very simple .

Matters

  • It is recommended to use version >=4.2;

Introduction

  • Designer Composition: The designer consists of six modules
    • Configuration context EditorProvider: provides the context for the editor
    • Configuration panel EditorPanel: configures the display list of registered components
    • Operation area EditorTools: the operation area of the designer
    • Edit area EditorView: the editor area of the designer.
    • Configuration property component EditorSetting: displays the corresponding property configuration form when the component is selected by the mouse.
    • render FormRender
  • Customization features: The designer allows two types of customization
    • Custom Component: By customizing a component and registering it in the designer and renderer, you can then configure the control for use in the component panel.
    • Import Templates: You need to add an import template entry from outside the designer component via the renderTools function.

Translated with DeepL.com (free version)

Translated with DeepL.com (free version)

install

npm install @simpleform/editor --save
# 或者
yarn add @simpleform/editor