Skip to content

Home > @zero-dim/core > Schema

Schema interface

表单 schema

Signature:

typescript
export interface Schema

Properties

Property

Modifiers

Type

Description

binds?

Record<string, any>

(Optional) 组件绑定参数

children?

Array<Schema | string | any>

(Optional) 子组件

content?

string

(Optional) 组件文本内容

cssString?

string

(Optional) 组件 css 字符串

defaultValue?

any

(Optional) 输入默认值

events?

Record<string, any>

(Optional) 组件事件

field?

string

(Optional) 字段绑定的值

hidden?

boolean

(Optional) 是否隐藏组件

id?

string

(Optional) 组件 id

label?

string

(Optional) 组件展示名称

lifeCycle?

Record<string, any>

(Optional) 组件生命周期

modelField?

string

(Optional) v-model 绑定的字段

name?

string

(Optional) 组件名称标识

props?

Record<string, any>

(Optional) 组件 props

slotHidden?

boolean

(Optional) 隐藏插槽

slotName?

string

(Optional) 组件所属插槽名称

type?

string

(Optional) 组件渲染类型