aha-components 1.5.2 → 1.5.4

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
  /** 模式:单个日期 */
@@ -123,6 +123,7 @@ export interface TableProps<T = any> {
123
123
  onRow?: (record: T, index?: number) => React.HTMLAttributes<HTMLTableRowElement>;
124
124
  getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
125
125
  className?: string;
126
+ innerClassName?: string;
126
127
  style?: React.CSSProperties;
127
128
  children?: React.ReactNode;
128
129
  expandable?: {
@@ -162,5 +163,5 @@ export interface TableProps<T = any> {
162
163
  getContainer?: () => HTMLElement;
163
164
  };
164
165
  }
165
- declare const Table: <T extends Record<string, any> = any>({ columns, dataSource, rowKey, rowSelection, pagination, size, bordered, loading, locale, showHeader, title, footer, summary, scroll, tableLayout, onChange, onSorterChange, onPaginationChange, onRow, className, style, expandable, rowClassName, onHeaderRow, sticky, ...rest }: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
166
+ declare const Table: <T extends Record<string, any> = any>({ columns, dataSource, rowKey, rowSelection, pagination, size, bordered, loading, locale, showHeader, title, footer, summary, scroll, tableLayout, onChange, onSorterChange, onPaginationChange, onRow, className, innerClassName, style, expandable, rowClassName, onHeaderRow, sticky, ...rest }: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
166
167
  export default Table;
package/dist/index.d.ts CHANGED
@@ -219,6 +219,7 @@ interface TableProps<T = any> {
219
219
  onRow?: (record: T, index?: number) => React.HTMLAttributes<HTMLTableRowElement>;
220
220
  getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
221
221
  className?: string;
222
+ innerClassName?: string;
222
223
  style?: React.CSSProperties;
223
224
  children?: React.ReactNode;
224
225
  expandable?: {
@@ -258,7 +259,7 @@ interface TableProps<T = any> {
258
259
  getContainer?: () => HTMLElement;
259
260
  };
260
261
  }
261
- declare const Table: <T extends Record<string, any> = any>({ columns, dataSource, rowKey, rowSelection, pagination, size, bordered, loading, locale, showHeader, title, footer, summary, scroll, tableLayout, onChange, onSorterChange, onPaginationChange, onRow, className, style, expandable, rowClassName, onHeaderRow, sticky, ...rest }: TableProps<T>) => react_jsx_runtime.JSX.Element;
262
+ declare const Table: <T extends Record<string, any> = any>({ columns, dataSource, rowKey, rowSelection, pagination, size, bordered, loading, locale, showHeader, title, footer, summary, scroll, tableLayout, onChange, onSorterChange, onPaginationChange, onRow, className, innerClassName, style, expandable, rowClassName, onHeaderRow, sticky, ...rest }: TableProps<T>) => react_jsx_runtime.JSX.Element;
262
263
 
263
264
  interface PaginationProps {
264
265
  current?: number;
@@ -605,6 +606,14 @@ interface DatePickerBaseProps {
605
606
  onApply?: (range: DateRange) => void;
606
607
  /** Cancel 按钮回调 */
607
608
  onCancel?: () => void;
609
+ /** 是否显示选中的日期段(仅在范围模式下有效,默认false) */
610
+ showSelectedRange?: boolean;
611
+ /** 选中的开始日期段文本 */
612
+ startSelectedRangeText?: string;
613
+ /** 选中的结束日期段文本 */
614
+ endSelectedRangeText?: string;
615
+ /** 范围显示模式:'range'=显示两个输入框(xxx - xxx),'text'=显示一句话(仅在范围模式下有效,默认'range') */
616
+ rangeDisplayMode?: 'range' | 'text';
608
617
  }
609
618
  interface DatePickerSingleProps extends DatePickerBaseProps {
610
619
  /** 模式:单个日期 */