mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
docs: update cssVar type and TabItemType api description (#56068)
* docs: update cssVar type and TabItemType api description * feat: update --------- Co-authored-by: thinkasany <480968828@qq.com>
This commit is contained in:
@@ -87,9 +87,9 @@ More option at [@rc-component/tabs](https://github.com/react-component/tabs#tabs
|
||||
| disabled | Set TabPane disabled | boolean | false | |
|
||||
| forceRender | Forced render of content in tabs, not lazy render after clicking on tabs | boolean | false | |
|
||||
| key | TabPane's key | string | - | |
|
||||
| label | TabPane's head display text | ReactNode | - | |
|
||||
| icon | TabPane's head display icon | ReactNode | - | 5.12.0 |
|
||||
| children | TabPane's head display content | ReactNode | - | |
|
||||
| label | Tab header text element | ReactNode | - | |
|
||||
| icon | Tab header icon element | ReactNode | - | 5.12.0 |
|
||||
| children | Tab content element | ReactNode | - | |
|
||||
| closable | Whether a close (x) button is visible, Only works while `type="editable-card"` | boolean | true | |
|
||||
|
||||
### MoreProps
|
||||
|
||||
@@ -89,9 +89,9 @@ Ant Design 依次提供了三级选项卡,分别用于不同的场景。
|
||||
| disabled | 禁用某一项 | boolean | false | |
|
||||
| forceRender | 被隐藏时是否渲染 DOM 结构 | boolean | false | |
|
||||
| key | 对应 activeKey | string | - | |
|
||||
| label | 选项卡头显示文字 | ReactNode | - | |
|
||||
| icon | 选项卡头显示图标 | ReactNode | - | 5.12.0 |
|
||||
| children | 选项卡头显示内容 | ReactNode | - | |
|
||||
| label | 选项卡头部文字元素 | ReactNode | - | |
|
||||
| icon | 选项卡头部图标元素 | ReactNode | - | 5.12.0 |
|
||||
| children | 选项卡内容元素 | ReactNode | - | |
|
||||
| closable | 是否显示选项卡的关闭按钮,在 `type="editable-card"` 时有效 | boolean | true | |
|
||||
|
||||
### MoreProps
|
||||
|
||||
@@ -467,7 +467,7 @@ const theme = {
|
||||
| inherit | Inherit theme configured in upper ConfigProvider | boolean | true | |
|
||||
| algorithm | Modify the algorithms of theme | `(token: SeedToken) => MapToken` \| `((token: SeedToken) => MapToken)[]` | `defaultAlgorithm` | |
|
||||
| components | Modify Component Token and Alias Token applied to components | `ComponentsConfig` | - | |
|
||||
| cssVar | CSS Variables Configuration, refer [cssVar](#css-var) | `boolean \| { prefix?: string; key?: string }` | false | |
|
||||
| cssVar | CSS Variables Configuration | [cssVar](#css-var) | - | |
|
||||
| hashed | Style patch on the hash className | boolean | true | |
|
||||
| zeroRuntime | Enable zero-runtime mode, which will not generate style at runtime, need to import additional CSS file | boolean | true | 6.0.0 |
|
||||
|
||||
|
||||
@@ -467,7 +467,7 @@ const theme = {
|
||||
| inherit | 继承上层 ConfigProvider 中配置的主题。 | boolean | true | |
|
||||
| algorithm | 用于修改 Seed Token 到 Map Token 的算法 | `(token: SeedToken) => MapToken` \| `((token: SeedToken) => MapToken)[]` | `defaultAlgorithm` | |
|
||||
| components | 用于修改各个组件的 Component Token 以及覆盖该组件消费的 Alias Token | `ComponentsConfig` | - | |
|
||||
| cssVar | CSS 变量配置,参考[cssVar](#css-var) | `boolean \| { prefix?: string; key?: string }` | false | |
|
||||
| cssVar | CSS 变量配置 | [cssVar](#css-var) | - | |
|
||||
| hashed | 将样式添加至 hash className 上 | boolean | true | |
|
||||
| zeroRuntime | 开启零运行时模式,不会在运行时产生样式,需要手动引入 CSS 文件 | boolean | true | 6.0.0 |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user