aha-components 1.5.2 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,3 +19,7 @@ export declare const AllStates: Story;
19
19
  export declare const RangeMode: Story;
20
20
  export declare const RangeWithDefault: Story;
21
21
  export declare const RangeCustomFormat: Story;
22
+ export declare const CustomPlaceholders: Story;
23
+ export declare const ShowSelectedRange: Story;
24
+ export declare const RangeDisplayMode: Story;
25
+ export declare const TextModeWithSelectedRange: Story;
@@ -62,6 +62,14 @@ export interface DatePickerBaseProps {
62
62
  onApply?: (range: DateRange) => void;
63
63
  /** Cancel 按钮回调 */
64
64
  onCancel?: () => void;
65
+ /** 是否显示选中的日期段(仅在范围模式下有效,默认false) */
66
+ showSelectedRange?: boolean;
67
+ /** 选中的开始日期段文本 */
68
+ startSelectedRangeText?: string;
69
+ /** 选中的结束日期段文本 */
70
+ endSelectedRangeText?: string;
71
+ /** 范围显示模式:'range'=显示两个输入框(xxx - xxx),'text'=显示一句话(仅在范围模式下有效,默认'range') */
72
+ rangeDisplayMode?: 'range' | 'text';
65
73
  }
66
74
  export interface DatePickerSingleProps extends DatePickerBaseProps {
67
75
  /** 模式:单个日期 */
package/dist/index.d.ts CHANGED
@@ -605,6 +605,14 @@ interface DatePickerBaseProps {
605
605
  onApply?: (range: DateRange) => void;
606
606
  /** Cancel 按钮回调 */
607
607
  onCancel?: () => void;
608
+ /** 是否显示选中的日期段(仅在范围模式下有效,默认false) */
609
+ showSelectedRange?: boolean;
610
+ /** 选中的开始日期段文本 */
611
+ startSelectedRangeText?: string;
612
+ /** 选中的结束日期段文本 */
613
+ endSelectedRangeText?: string;
614
+ /** 范围显示模式:'range'=显示两个输入框(xxx - xxx),'text'=显示一句话(仅在范围模式下有效,默认'range') */
615
+ rangeDisplayMode?: 'range' | 'text';
608
616
  }
609
617
  interface DatePickerSingleProps extends DatePickerBaseProps {
610
618
  /** 模式:单个日期 */