Skip to content

FormTab

选项卡表单

注意

该组件只适用于 Schema 场景。

Markup Schema 案例

JSON Schema 案例

API

FormTab

属性名类型描述默认值
formTabIFormTab传入通过 createFormTab 创建出来的模型

其余参考 https://cn.element-plus.org/zh-CN/component/tabs.html

FormTab.TabPane

参考 https://cn.element-plus.org/zh-CN/component/tabs.html#tab-pane-属性

FormTab.createFormTab

ts
type ActiveKey = string | number

interface createFormTab {
  (defaultActiveKey?: ActiveKey): IFormTab
}

interface IFormTab {
  // 激活主键
  activeKey: ActiveKey
  // 设置激活主键
  setActiveKey: (key: ActiveKey) => void
}