1.1.0 • Published 12 months ago

lowcode-engine-ext-en v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

lowcode-engine-ext-en

Introduction

Lowcode engine ext en is a collection of plugins that setters and setters must rely on, provided by the official low code engine A setter is used to display the properties of each material

Usage

Referencing using CDN

https://unpkg.com/lowcode-engine-ext-en@1.0.5/dist/js/engine-ext.js
https://unpkg.com/lowcode-engine-ext-en@1.0.5/dist/css/engine-ext.css;

Expand Variable Binding Panel

Expand the property binding panel by passing in extraDataMap

ctx.skeleton.add({
  area: 'centerArea',
  type: 'Widget',
  content: pluginMap.VariableBindDialog,
  name: 'variableBindDialog',
  props: {
    getSchema: () => editorController.getSchema(),
    // Expand variable binding
    extraDataMap: {
      props: {
        name: 'Props', // Variable group display name
        key: 'props', // Attribute name, such as this.props
        getChildren: () => [
          {
            label: 'prop1',
            value: 'value1',
          },
          {
            label: 'prop2',
            children: [
              { label: 'propxxx', value: 1 }
            ]
          }
        ],
      }
    }
  },
});