@blueking/date-picker 0.0.53 → 0.0.54

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.
@@ -4,6 +4,7 @@ import { type DateValue, type IDatePickerProps } from './utils';
4
4
  import { type ITimezoneItem } from './utils/timezone';
5
5
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IDatePickerProps>, {
6
6
  behavior: string;
7
+ commonUseList: any;
7
8
  format: string;
8
9
  needTimezone: boolean;
9
10
  version: string;
@@ -18,6 +19,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
18
19
  "update:timezone": (value: string, timezoneInfo: ITimezoneItem) => void;
19
20
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IDatePickerProps>, {
20
21
  behavior: string;
22
+ commonUseList: any;
21
23
  format: string;
22
24
  needTimezone: boolean;
23
25
  version: string;
@@ -32,6 +34,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
32
34
  format: string;
33
35
  behavior: "normal" | "simplicity";
34
36
  needTimezone: boolean;
37
+ commonUseList: DateValue[];
35
38
  }, {}>;
36
39
  export default _default;
37
40
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -45,6 +45,7 @@ export declare const langData: {
45
45
  readonly 时区设置: "Timezone setting";
46
46
  readonly 时间格式支持: "Time format support";
47
47
  readonly '\u662F\u5426\u6E05\u7A7A\u6700\u8FD1\u4F7F\u7528\uFF1F': "Clear recent records?";
48
+ readonly 暂无常用时间: "No common time";
48
49
  readonly 暂无最近使用记录: "No recent records";
49
50
  readonly 最近: "Last";
50
51
  readonly 最近使用: "Recently";
@@ -68,6 +69,6 @@ export type TimeUnitDateKey = keyof typeof timeUnitLangData;
68
69
  export type ShortTimeUnitDateKey = keyof typeof shortTimeUnitLangData;
69
70
  export type LangKey = keyof typeof langData;
70
71
  export type LangValue = (typeof langData)[LangKey];
71
- export declare const langValueMap: Record<LangValue, "前" | "将来" | "常用时间" | "开始时间" | "开始时间不能大于结束时间" | "支持多种时间格式自动转换" | "整" | "无匹配数据" | "日期选择" | "时区设置" | "时间格式支持" | "是否清空最近使用?" | "暂无最近使用记录" | "最近" | "最近使用" | "未来" | "查看支持格式" | "格式" | "此刻" | "浏览器时间" | "确定" | "示例" | "结束时间" | "自然日期" | "至今" | "请输入" | "请输入搜索(国家,城市,简称)" | "近" | "(至今)">;
72
+ export declare const langValueMap: Record<LangValue, "前" | "将来" | "常用时间" | "开始时间" | "开始时间不能大于结束时间" | "支持多种时间格式自动转换" | "整" | "无匹配数据" | "日期选择" | "时区设置" | "时间格式支持" | "是否清空最近使用?" | "暂无常用时间" | "暂无最近使用记录" | "最近" | "最近使用" | "未来" | "查看支持格式" | "格式" | "此刻" | "浏览器时间" | "确定" | "示例" | "结束时间" | "自然日期" | "至今" | "请输入" | "请输入搜索(国家,城市,简称)" | "近" | "(至今)">;
72
73
  export declare const lang: string;
73
74
  export declare const t: (key: LangKey | NaturalDateKey | ShortTimeUnitDateKey | TimeUnitDateKey) => string;
@@ -20,6 +20,7 @@ export type CommonDateValue = [string, string];
20
20
  export type DateValue = [Dayjs | number | string, Dayjs | number | string];
21
21
  export interface IDatePickerProps {
22
22
  behavior?: 'normal' | 'simplicity';
23
+ commonUseList?: DateValue[];
23
24
  disabled?: boolean;
24
25
  format?: string;
25
26
  modelValue: DateValue | dayjs.Dayjs[] | number[] | string[] | undefined;
@@ -1,7 +1,9 @@
1
1
  import { ComputedRef, InjectionKey } from 'vue';
2
2
  import { LangKey } from '../lang/lang';
3
3
  import { ITimezoneItem } from './timezone';
4
+ import { DateValue } from './types';
4
5
  export interface IDatePickerProvider {
6
+ commonUseList: ComputedRef<DateValue[]>;
5
7
  format: ComputedRef<string>;
6
8
  storeKey: ComputedRef<string>;
7
9
  t: (key: LangKey) => string;