Skip to content

Home > @zero-dim/schemas-component-adapter > CompSchema

CompSchema interface

拖拽组件描述规则结构

Signature:

typescript
export interface CompSchema

Properties

Property

Modifiers

Type

Description

children?

string

(Optional) 是否配有子组件,例如 row,col

events?

() => Array<any>

(Optional) 组件绑定事件

icon?

string

(Optional) 组件图标

label?

string

(Optional) 组件名称

menu?

MaterType

(Optional) 组件分类

name

string

组件 id 不能重复

props

(changePropsData?: Function) => Schema[]

组件属性配置规则

schema

() => Schema

组件生产规则

slots?

() => Array<any>

(Optional) 组件插槽