Преглед на файлове

docs(datepicker): update FAQ and defaultOpen to insetInput

走鹃 преди 3 години
родител
ревизия
20f81150a2
променени са 2 файла, в които са добавени 11 реда и са изтрити 3 реда
  1. 6 2
      content/input/datepicker/index-en-US.md
  2. 5 1
      content/input/datepicker/index.md

+ 6 - 2
content/input/datepicker/index-en-US.md

@@ -164,7 +164,7 @@ import { DatePicker } from '@douyinfe/semi-ui';
 function Demo() {
     return (
         <div>
-            <DatePicker type="date" insetInput />
+            <DatePicker type="date" insetInput defaultOpen />
             <br />
             <br />
             <DatePicker type="dateTime" insetInput />
@@ -883,4 +883,8 @@ Multiple dates or times are used by default `","` (English comma) separated.
     This behavior can be controlled by a specific switch in timePickerOpts, timePickerOpts={{scrollItemProps: {cycled: false}}}, and cycled is set to false
 
 -   **How to set the default display time when the panel is opened?**  
-    You can use the defaultPickerValue property.
+    You can use the defaultPickerValue property.
+
+- **Date time selection, range date selection, after inputting some dates, the panel does not echo the date?**
+
+     The input box needs to be entered completely before it is showed to the panel. For example, for `dateTime` type, the full requested date and time have been entered. For `dateRange` type, full requires start and end dates to be entered.

+ 5 - 1
content/input/datepicker/index.md

@@ -161,7 +161,7 @@ import { DatePicker } from '@douyinfe/semi-ui';
 function Demo() {
     return (
         <div>
-            <DatePicker type="date" insetInput />
+            <DatePicker type="date" insetInput defaultOpen />
             <br />
             <br />
             <DatePicker type="dateTime" insetInput />
@@ -873,3 +873,7 @@ semi-ui 组件库中采用 [date-fns(v2.9.0)](https://date-fns.org/v2.9.0/docs/G
 
 -   **如何设置面板打开时默认显示的时间?**  
      可通过 defaultPickerValue 属性。
+
+- **日期时间选择、范围日期选择,输入部分日期后,面板没有回显日期?**
+
+    输入框需要输入完整后才会回显到面板上。比如,日期时间选择,完整要求日期和时间都已输入。范围日期选择,完整要求开始日期和结束日期都已输入。