From 77804ad1d426abe766cba36a1dbe4a95e40a4e1f Mon Sep 17 00:00:00 2001 From: wangzhihao <1269928993@qq.com> Date: Tue, 12 Nov 2024 13:51:45 +0800 Subject: [PATCH] docs(color-picker): update mode type (#51585) --- components/color-picker/index.en-US.md | 2 +- components/color-picker/index.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/color-picker/index.en-US.md b/components/color-picker/index.en-US.md index 983c6edafb..9a4fd171e3 100644 --- a/components/color-picker/index.en-US.md +++ b/components/color-picker/index.en-US.md @@ -52,7 +52,7 @@ Common props ref:[Common props](/docs/react/common-props) | disabledFormat | Disable format of color | boolean | - | | destroyTooltipOnHide | Whether destroy popover when hidden | `boolean` | false | 5.7.0 | | format | Format of color | `rgb` \| `hex` \| `hsb` | `hex` | | -| mode | Configure single or gradient color | `('single' \| 'gradient')[]` | `single` | 5.20.0 | +| mode | Configure single or gradient color | `'single' \| 'gradient' \| ('single' \| 'gradient')[]` | `single` | 5.20.0 | | open | Whether to show popup | boolean | - | | | presets | Preset colors | `{ label: ReactNode, colors: Array, defaultOpen?: boolean }[]` | - | `defaultOpen: 5.11.0` | | placement | Placement of popup | The design of the [placement](/components/tooltip/#api) parameter is the same as the `Tooltips` component. | `bottomLeft` | | diff --git a/components/color-picker/index.zh-CN.md b/components/color-picker/index.zh-CN.md index c7f1db30be..69467b80e0 100644 --- a/components/color-picker/index.zh-CN.md +++ b/components/color-picker/index.zh-CN.md @@ -53,7 +53,7 @@ group: | disabledFormat | 禁用选择颜色格式 | boolean | - | | destroyTooltipOnHide | 关闭后是否销毁弹窗 | `boolean` | false | 5.7.0 | | format | 颜色格式 | `rgb` \| `hex` \| `hsb` | `hex` | | -| mode | 选择器模式,用于配置单色与渐变 | `('single' \| 'gradient')[]` | `single` | 5.20.0 | +| mode | 选择器模式,用于配置单色与渐变 | `'single' \| 'gradient' \| ('single' \| 'gradient')[]` | `single` | 5.20.0 | | open | 是否显示弹出窗口 | boolean | - | | | presets | 预设的颜色 | `{ label: ReactNode, colors: Array, defaultOpen?: boolean }[]` | - | `defaultOpen: 5.11.0` | | placement | 弹出窗口的位置 | 同 `Tooltips` 组件的 [placement](/components/tooltip-cn/#api) 参数设计 | `bottomLeft` | |