From 03bdab6e3c0fecd2012f3d6b555f2ba0438c903a Mon Sep 17 00:00:00 2001 From: AndyJin Date: Mon, 13 Mar 2023 17:01:12 +0800 Subject: [PATCH] docs(TimePicker): add size prop to api doc (#41193) --- components/time-picker/index.en-US.md | 1 + components/time-picker/index.zh-CN.md | 1 + 2 files changed, 2 insertions(+) diff --git a/components/time-picker/index.en-US.md b/components/time-picker/index.en-US.md index 6879725fb1..f2c73911e7 100644 --- a/components/time-picker/index.en-US.md +++ b/components/time-picker/index.en-US.md @@ -70,6 +70,7 @@ dayjs.extend(customParseFormat) | renderExtraFooter | Called from time picker panel to render some addon to its bottom | () => ReactNode | - | | | secondStep | Interval between seconds in picker | number | 1 | | | showNow | Whether to show `Now` button on panel | boolean | - | 4.4.0 | +| size | To determine the size of the input box, the height of `large` and `small`, are 40px and 24px respectively, while default size is 32px | `large` \| `middle` \| `small` | - | | | status | Set validation status | 'error' \| 'warning' \| 'success' \| 'validating' | - | 4.19.0 | | suffixIcon | The custom suffix icon | ReactNode | - | | | use12Hours | Display as 12 hours format, with default format `h:mm:ss a` | boolean | false | | diff --git a/components/time-picker/index.zh-CN.md b/components/time-picker/index.zh-CN.md index b196636d9b..21d5d378b3 100644 --- a/components/time-picker/index.zh-CN.md +++ b/components/time-picker/index.zh-CN.md @@ -70,6 +70,7 @@ dayjs.extend(customParseFormat) | renderExtraFooter | 选择框底部显示自定义的内容 | () => ReactNode | - | | | secondStep | 秒选项间隔 | number | 1 | | | showNow | 面板是否显示“此刻”按钮 | boolean | - | 4.4.0 | +| size | 输入框大小,`large` 高度为 40px,`small` 为 24px,默认是 32px | `large` \| `middle` \| `small` | - | | | status | 设置校验状态 | 'error' \| 'warning' | - | 4.19.0 | | suffixIcon | 自定义的选择框后缀图标 | ReactNode | - | | | use12Hours | 使用 12 小时制,为 true 时 `format` 默认为 `h:mm:ss a` | boolean | false | |