Browse Source

docs: add picker faq (#43208)

pull/43223/head
二货爱吃白萝卜 1 year ago
committed by GitHub
parent
commit
cb1abcfe66
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      components/date-picker/index.en-US.md
  2. 4
      components/date-picker/index.zh-CN.md

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

@ -223,6 +223,10 @@ export type FormatType = Generic | GenericFn | Array<Generic | GenericFn>;
Please refer [FAQ](/docs/react/faq#when-set-mode-to-datepickerrangepicker-cannot-select-year-or-month-anymore)
### Why does the date picker switch to the date panel after selecting the year instead of the month panel?
After selecting the year, the system directly switches to the date panel instead of month panel. This design is intended to reduce the user's operational burden by allowing them to complete the year modification with just one click, without having to enter the month selection interface again. At the same time, it also avoids additional cognitive burden of remembering the month.
### How to use DatePicker with customize date library like dayjs?
Please refer [Use custom date library](/docs/react/use-custom-date-library#datepicker)

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

@ -224,6 +224,10 @@ export type FormatType = Generic | GenericFn | Array<Generic | GenericFn>;
请参考[常见问答](/docs/react/faq#当我指定了-datepickerrangepicker-的-mode-属性后点击后无法选择年份月份)
### 为何日期选择年份后返回的是日期面板而不是月份面板?
当用户选择完年份后,系统会直接切换至日期面板,而非显式提供月份选择。这样做的设计在于用户只需进行一次点击即可完成年份修改,无需再次点击进入月份选择界面,从而减少了用户的操作负担,同时也避免需要额外感知月份的记忆负担。
### 如何在 DatePicker 中使用自定义日期库(如 Moment.js )?
请参考[《使用自定义日期库》](/docs/react/use-custom-date-library#datepicker)

Loading…
Cancel
Save