Tabs
容器属性
所有组件配置的第一层均支持容器属性
组件属性 componentsProps
| Name | Type | Default | 是否支持 Variable Pattern | Description |
|---|---|---|---|---|
| defaultActiveKey | string | 默认打开的 tab | ||
| items | Array<ItemProps> | 标签组的 items | ||
| showUnderLine | object | 是否显示下划线 | ||
| suppressUrlSearchStorage | object | 是否不要在地址栏中存储状态 |
ItemProps
| Name | Type | Default | 是否支持 Variable Pattern | Description |
|---|---|---|---|---|
| key | number | Tab 的 key | ||
| label | string | Tab 的名字 | ||
| fields | Array<oject> | Tab 的内容 | ||
| hidden | ConditionalPropertyPropType(bool) | false | ✔️ | 是否隐藏 |
JS API
通过 formApi.getFieldApi() 获取的接口如下:
| Name | Type | Description |
|---|---|---|
| node | HTML Element | 组件的根 DOM 元素 |