@nocobase/client 2.0.15 → 2.0.17

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.
@@ -10,6 +10,32 @@ import React from 'react';
10
10
  interface IDatePickerProps {
11
11
  utc?: boolean;
12
12
  }
13
+ /**
14
+ * 解析筛选日期组件的展示格式。
15
+ *
16
+ * 这里优先使用 schema 上显式配置的 dateFormat / format,
17
+ * 只有在当前 picker 没有自定义格式时才回退到默认 picker 格式。
18
+ *
19
+ * @param options 当前筛选日期组件的格式参数
20
+ * @returns 适用于当前 picker 的最终展示格式
21
+ * @example
22
+ * ```typescript
23
+ * resolveFilterPickerFormat({
24
+ * targetPicker: 'date',
25
+ * picker: 'date',
26
+ * dateFormat: 'MM/DD/YY',
27
+ * showTime: false,
28
+ * });
29
+ * ```
30
+ */
31
+ export declare const resolveFilterPickerFormat: (options: {
32
+ targetPicker: string;
33
+ picker?: string;
34
+ format?: string;
35
+ dateFormat?: string;
36
+ showTime?: boolean;
37
+ timeFormat?: string;
38
+ }) => any;
13
39
  export declare const useDatePickerContext: () => IDatePickerProps;
14
40
  export declare const DatePickerProvider: React.Provider<IDatePickerProps>;
15
41
  export declare const DatePicker: {