Skip to content

Commit bf1e6fe

Browse files
committed
docs: update datepicker doc #6387
1 parent 5f1cb0d commit bf1e6fe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

components/date-picker/index.en-US.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ The following APIs are shared by DatePicker, RangePicker.
9696
| placeholder | The placeholder of date input | string \| \[string,string] | - | |
9797
| placement | The position where the selection box pops up | `bottomLeft` `bottomRight` `topLeft` `topRight` | bottomLeft | 3.3.0 |
9898
| popupStyle | To customize the style of the popup calendar | CSSProperties | {} | |
99-
| presets | The preset ranges for quick selection | { label: slot, value: [dayjs](https://day.js.org/) }[] | - | |
99+
| presets | The preset ranges for quick selection | { label: slot, value: [dayjs](https://day.js.org/) }[] | - | 4.0 |
100100
| prevIcon | The custom prev icon | slot | - | 3.0 |
101101
| 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` | - | |
102102
| status | Set validation status | 'error' \| 'warning' | - | 3.3.0 |
@@ -175,7 +175,7 @@ The following APIs are shared by DatePicker, RangePicker.
175175
| disabled | If disable start or end | \[boolean, boolean] | - | |
176176
| disabledTime | To specify the time that cannot be selected | function(date: dayjs, partial: `start` \| `end`) | - | |
177177
| format | To set the date format, refer to [dayjs](https://day.js.org/) | [formatType](#formatType) | `YYYY-MM-DD HH:mm:ss` | |
178-
| presets | The preset ranges for quick selection | { label: slot, value: [dayjs](https://day.js.org/)\[] }[] | - | |
178+
| presets | The preset ranges for quick selection | { label: slot, value: [dayjs](https://day.js.org/)\[] }[] | - | 4.0 |
179179
| ranges | The preseted ranges for quick selection | { \[range: string]: [dayjs](https://day.js.org/)\[] } \| { \[range: string]: () => [dayjs](https://day.js.org/)\[] } | - | |
180180
| renderExtraFooter | Render extra footer in panel | v-slot:renderExtraFooter="mode" | - | |
181181
| separator | Set separator between inputs | string \| v-slot:separator | `<SwapRightOutlined />` | |

components/date-picker/index.zh-CN.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*3OpRQKcygo8AAA
9898
| placement | 选择框弹出的位置 | `bottomLeft` `bottomRight` `topLeft` `topRight` | bottomLeft | 3.3.0 |
9999
| popupStyle | 额外的弹出日历样式 | CSSProperties | {} | |
100100
| prevIcon | 自定义上一个图标 | slot | - | 3.0 |
101-
| presets | 预设时间范围快捷选择 | { label: slot, value: [dayjs](https://day.js.org/) }[] | - | |
101+
| presets | 预设时间范围快捷选择 | { label: slot, value: [dayjs](https://day.js.org/) }[] | - | 4.0 |
102102
| size | 输入框大小,`large` 高度为 40px,`small` 为 24px,默认是 32px | `large` \| `middle` \| `small` | - | |
103103
| status | 设置校验状态 | 'error' \| 'warning' | - | 3.3.0 |
104104
| suffixIcon | 自定义的选择框后缀图标 | v-slot:suffixIcon | - | |
@@ -176,7 +176,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*3OpRQKcygo8AAA
176176
| disabled | 禁用起始项 | \[boolean, boolean] | - | |
177177
| disabledTime | 不可选择的时间 | function(date: dayjs, partial: `start` \| `end`) | - | |
178178
| format | 展示的日期格式 | [formatType](#formatType) | `YYYY-MM-DD HH:mm:ss` | |
179-
| presets | 预设时间范围快捷选择 | { label: slot, value: [dayjs](https://day.js.org/)\[] }[] | - | |
179+
| presets | 预设时间范围快捷选择 | { label: slot, value: [dayjs](https://day.js.org/)\[] }[] | - | 4.0 |
180180
| ranges | 预设时间范围快捷选择 | { \[range: string]: [dayjs](https://day.js.org/)\[] } \| { \[range: string]: () => [dayjs](https://day.js.org/)\[] } | - | |
181181
| renderExtraFooter | 在面板中添加额外的页脚 | v-slot:renderExtraFooter="mode" | - | |
182182
| separator | 设置分隔符 | string \| v-slot:separator | `<SwapRightOutlined />` | |

0 commit comments

Comments
 (0)