容器属性
所有组件配置的第一层均支持容器属性
组件属性 componentsProps
| Name | Type | Default | 是否支持 Variable Pattern | Description |
|---|
| activeKey | string | | | 当前激活的 Tab |
| centered | bool | false | | 是否左右居中显示 |
| items | Array<ItemProps> | | | Tabs 的内容 |
| showUnderLine | object | | | 底部是否显示边框 |
ItemProps
| Name | Type | Default | 是否支持 Variable Pattern | Description |
|---|
| key | number | | | Tab 的 key |
| label | bool | | | Tab 的名字 |
| href | bool | | | 链接地址 |
| hrefIsSiteBased | bool | false | | 如果值为 false 并且此链接位于 pbc 下,href 将自动拼接上 pbc 的 token 作为 basename,移动端将自动拼接上 mobile 的前缀 |
| suppressInheritIncludeDeleted | bool | false | | 是否禁止自动继承当前页面的 include_deleted 属性,此属性一般在当前页面 url 的 search params 里 |
| hidden | ConditionalPropertyPropType(bool) | false | ✔️ | 是否隐藏 |
JS API
通过 formApi.getFieldApi() 获取的接口如下:
| Name | Type | Description |
|---|
| node | HTML Element | 组件的根 DOM 元素 |