@blueking/date-picker 0.0.28 → 0.0.30
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.
- package/dist/components/common-submit.vue.d.ts +15 -10
- package/dist/components/date-panel.vue.d.ts +30 -31
- package/dist/components/date-picker.vue.d.ts +16 -12
- package/dist/components/natural-picker.vue.d.ts +16 -11
- package/dist/components/panel-wrapper.vue.d.ts +20 -24
- package/dist/components/recent-picker.vue.d.ts +29 -21
- package/dist/components/timezone-picker.vue.d.ts +15 -10
- package/dist/date-picker.vue.d.ts +36 -65
- package/dist/lang/lang.d.ts +39 -32
- package/dist/typings/constant.d.ts +28 -16
- package/dist/typings/date.d.ts +35 -0
- package/dist/typings/index.d.ts +2 -0
- package/dist/typings/store.d.ts +1 -1
- package/dist/typings/types.d.ts +11 -1
- package/dist/typings/utils.d.ts +0 -31
- package/dist/vue2-full.es.js +11512 -11448
- package/dist/vue2-light.es.js +11173 -11111
- package/dist/vue3-full.es.js +10564 -10506
- package/dist/vue3-light.es.js +1345 -1287
- package/package.json +25 -21
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
disabled
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
disabled?: boolean | undefined;
|
|
3
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
4
|
submit: () => void;
|
|
7
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
-
disabled
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
}>> & {
|
|
5
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
disabled?: boolean | undefined;
|
|
7
|
+
}>>> & {
|
|
12
8
|
onSubmit?: (() => any) | undefined;
|
|
13
9
|
}, {}, {}>;
|
|
14
10
|
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -1,39 +1,38 @@
|
|
|
1
|
-
import dayjs from 'dayjs';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
type: import("vue").PropType<boolean>;
|
|
12
|
-
};
|
|
13
|
-
minDate: {
|
|
14
|
-
type: import("vue").PropType<dayjs.Dayjs>;
|
|
15
|
-
};
|
|
16
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1
|
+
import dayjs, { Dayjs } from 'dayjs';
|
|
2
|
+
interface Props {
|
|
3
|
+
format?: string;
|
|
4
|
+
isNow?: boolean;
|
|
5
|
+
minDate?: Dayjs;
|
|
6
|
+
modelValue?: Dayjs;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
9
|
+
format: string;
|
|
10
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
11
|
"update:modelValue": (date: dayjs.Dayjs) => void;
|
|
18
12
|
"update:isNow": (args_0: boolean) => void;
|
|
19
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
format: {
|
|
24
|
-
type: import("vue").PropType<string>;
|
|
25
|
-
default: string;
|
|
26
|
-
};
|
|
27
|
-
isNow: {
|
|
28
|
-
type: import("vue").PropType<boolean>;
|
|
29
|
-
};
|
|
30
|
-
minDate: {
|
|
31
|
-
type: import("vue").PropType<dayjs.Dayjs>;
|
|
32
|
-
};
|
|
33
|
-
}>> & {
|
|
13
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
14
|
+
format: string;
|
|
15
|
+
}>>> & {
|
|
34
16
|
"onUpdate:modelValue"?: ((date: dayjs.Dayjs) => any) | undefined;
|
|
35
17
|
"onUpdate:isNow"?: ((args_0: boolean) => any) | undefined;
|
|
36
18
|
}, {
|
|
37
19
|
format: string;
|
|
38
20
|
}, {}>;
|
|
39
21
|
export default _default;
|
|
22
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
24
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
+
} : {
|
|
27
|
+
type: import('vue').PropType<T[K]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
type __VLS_WithDefaults<P, D> = {
|
|
32
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
33
|
+
default: D[K];
|
|
34
|
+
}> : P[K];
|
|
35
|
+
};
|
|
36
|
+
type __VLS_Prettify<T> = {
|
|
37
|
+
[K in keyof T]: T[K];
|
|
38
|
+
} & {};
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import { DateValue } from '../typings';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
import { DateRange } from '../typings/date';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
value: DateRange;
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
6
|
change: (value: DateValue) => void;
|
|
9
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
-
value:
|
|
11
|
-
|
|
12
|
-
required: true;
|
|
13
|
-
};
|
|
14
|
-
}>> & {
|
|
7
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
value: DateRange;
|
|
9
|
+
}>>> & {
|
|
15
10
|
onChange?: ((value: DateValue) => any) | undefined;
|
|
16
11
|
}, {}, {}>;
|
|
17
12
|
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { NaturalDateValue } from '../typings';
|
|
2
|
+
import { DateRange } from '../typings/date';
|
|
3
|
+
interface IProps {
|
|
4
|
+
value?: DateRange;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<IProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
change: (value: NaturalDateValue) => void;
|
|
8
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
-
value: {
|
|
10
|
-
type: import("vue").PropType<DateValue>;
|
|
11
|
-
};
|
|
12
|
-
}>> & {
|
|
8
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>> & {
|
|
13
9
|
onChange?: ((value: NaturalDateValue) => any) | undefined;
|
|
14
10
|
}, {}, {}>;
|
|
15
11
|
export default _default;
|
|
12
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
+
} : {
|
|
17
|
+
type: import('vue').PropType<T[K]>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -1,32 +1,28 @@
|
|
|
1
1
|
import { DateValue } from '../typings';
|
|
2
|
+
import { DateRange } from '../typings/date';
|
|
2
3
|
import { ITimezoneItem } from '../typings/timezone';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
needTimezone: {
|
|
9
|
-
type: import("vue").PropType<boolean>;
|
|
10
|
-
};
|
|
11
|
-
timezone: {
|
|
12
|
-
type: import("vue").PropType<string>;
|
|
13
|
-
};
|
|
14
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
defaultDate: DateRange;
|
|
6
|
+
needTimezone?: boolean | undefined;
|
|
7
|
+
timezone?: string | undefined;
|
|
8
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
9
|
change: (value: DateValue) => void;
|
|
16
10
|
"update:timezone": (value: string, timezoneInfo: ITimezoneItem) => void;
|
|
17
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
needTimezone: {
|
|
23
|
-
type: import("vue").PropType<boolean>;
|
|
24
|
-
};
|
|
25
|
-
timezone: {
|
|
26
|
-
type: import("vue").PropType<string>;
|
|
27
|
-
};
|
|
28
|
-
}>> & {
|
|
11
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
12
|
+
defaultDate: DateRange;
|
|
13
|
+
needTimezone?: boolean | undefined;
|
|
14
|
+
timezone?: string | undefined;
|
|
15
|
+
}>>> & {
|
|
29
16
|
onChange?: ((value: DateValue) => any) | undefined;
|
|
30
17
|
"onUpdate:timezone"?: ((value: string, timezoneInfo: ITimezoneItem) => any) | undefined;
|
|
31
18
|
}, {}, {}>;
|
|
32
19
|
export default _default;
|
|
20
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
21
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
22
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
23
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
24
|
+
} : {
|
|
25
|
+
type: import('vue').PropType<T[K]>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -1,27 +1,35 @@
|
|
|
1
|
-
import { DateMode,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1
|
+
import { DateMode, FutureDateValue, RecentDateValue } from '../typings';
|
|
2
|
+
import { DateRange } from '../typings/date';
|
|
3
|
+
interface IProps {
|
|
4
|
+
type: DateMode.FUTURE | DateMode.RECENT;
|
|
5
|
+
value?: DateRange;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
|
|
8
|
+
type: DateMode;
|
|
9
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
10
|
change: (value: RecentDateValue | FutureDateValue) => void;
|
|
13
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
-
type:
|
|
15
|
-
|
|
16
|
-
required: true;
|
|
17
|
-
default: DateMode;
|
|
18
|
-
};
|
|
19
|
-
value: {
|
|
20
|
-
type: import("vue").PropType<DateValue>;
|
|
21
|
-
};
|
|
22
|
-
}>> & {
|
|
11
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
|
|
12
|
+
type: DateMode;
|
|
13
|
+
}>>> & {
|
|
23
14
|
onChange?: ((value: RecentDateValue | FutureDateValue) => any) | undefined;
|
|
24
15
|
}, {
|
|
25
16
|
type: DateMode.FUTURE | DateMode.RECENT;
|
|
26
17
|
}, {}>;
|
|
27
18
|
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: import('vue').PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
type __VLS_WithDefaults<P, D> = {
|
|
29
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
30
|
+
default: D[K];
|
|
31
|
+
}> : P[K];
|
|
32
|
+
};
|
|
33
|
+
type __VLS_Prettify<T> = {
|
|
34
|
+
[K in keyof T]: T[K];
|
|
35
|
+
} & {};
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { ITimezoneItem } from '../typings/timezone';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
value
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
value?: string | undefined;
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
5
|
change: (value: string, info: ITimezoneItem) => void;
|
|
8
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
-
value
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
}>> & {
|
|
6
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
value?: string | undefined;
|
|
8
|
+
}>>> & {
|
|
13
9
|
onChange?: ((value: string, info: ITimezoneItem) => any) | undefined;
|
|
14
10
|
}, {}, {}>;
|
|
15
11
|
export default _default;
|
|
12
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
+
} : {
|
|
17
|
+
type: import('vue').PropType<T[K]>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -1,76 +1,30 @@
|
|
|
1
1
|
import 'bkui-vue/lib/styles/reset.css';
|
|
2
2
|
import dayjs from 'dayjs';
|
|
3
|
-
import { DateValue } from './typings';
|
|
3
|
+
import { type DateValue, type IDatePickerProps } from './typings';
|
|
4
4
|
import { ITimezoneItem } from './typings/timezone';
|
|
5
|
-
declare const _default: import("vue").DefineComponent<{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
type: import("vue").PropType<boolean>;
|
|
12
|
-
};
|
|
13
|
-
version: {
|
|
14
|
-
type: import("vue").PropType<string | number>;
|
|
15
|
-
default: string;
|
|
16
|
-
};
|
|
17
|
-
format: {
|
|
18
|
-
type: import("vue").PropType<string>;
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
|
-
behavior: {
|
|
22
|
-
type: import("vue").PropType<"normal" | "simplicity">;
|
|
23
|
-
default: string;
|
|
24
|
-
};
|
|
25
|
-
needTimezone: {
|
|
26
|
-
type: import("vue").PropType<boolean>;
|
|
27
|
-
default: boolean;
|
|
28
|
-
};
|
|
29
|
-
timezone: {
|
|
30
|
-
type: import("vue").PropType<string>;
|
|
31
|
-
};
|
|
32
|
-
}, {
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IDatePickerProps>, {
|
|
6
|
+
behavior: string;
|
|
7
|
+
format: string;
|
|
8
|
+
needTimezone: boolean;
|
|
9
|
+
version: string;
|
|
10
|
+
}>, {
|
|
33
11
|
handleHidePanel: () => void;
|
|
34
12
|
handleShowPanel: () => void;
|
|
35
13
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
-
"update:modelValue": (value: string[] | DateValue | undefined, info: {
|
|
37
|
-
dayjs: dayjs.Dayjs;
|
|
38
|
-
formatText: string;
|
|
39
|
-
unix: number;
|
|
14
|
+
"update:modelValue": (value: string[] | DateValue | dayjs.Dayjs[] | number[] | undefined, info: {
|
|
15
|
+
dayjs: dayjs.Dayjs | null;
|
|
16
|
+
formatText: string | null;
|
|
40
17
|
}[]) => void;
|
|
41
18
|
"update:timezone": (value: string, timezoneInfo: ITimezoneItem) => void;
|
|
42
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
type: import("vue").PropType<string | number>;
|
|
52
|
-
default: string;
|
|
53
|
-
};
|
|
54
|
-
format: {
|
|
55
|
-
type: import("vue").PropType<string>;
|
|
56
|
-
default: string;
|
|
57
|
-
};
|
|
58
|
-
behavior: {
|
|
59
|
-
type: import("vue").PropType<"normal" | "simplicity">;
|
|
60
|
-
default: string;
|
|
61
|
-
};
|
|
62
|
-
needTimezone: {
|
|
63
|
-
type: import("vue").PropType<boolean>;
|
|
64
|
-
default: boolean;
|
|
65
|
-
};
|
|
66
|
-
timezone: {
|
|
67
|
-
type: import("vue").PropType<string>;
|
|
68
|
-
};
|
|
69
|
-
}>> & {
|
|
70
|
-
"onUpdate:modelValue"?: ((value: string[] | DateValue | undefined, info: {
|
|
71
|
-
dayjs: dayjs.Dayjs;
|
|
72
|
-
formatText: string;
|
|
73
|
-
unix: number;
|
|
19
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IDatePickerProps>, {
|
|
20
|
+
behavior: string;
|
|
21
|
+
format: string;
|
|
22
|
+
needTimezone: boolean;
|
|
23
|
+
version: string;
|
|
24
|
+
}>>> & {
|
|
25
|
+
"onUpdate:modelValue"?: ((value: string[] | DateValue | dayjs.Dayjs[] | number[] | undefined, info: {
|
|
26
|
+
dayjs: dayjs.Dayjs | null;
|
|
27
|
+
formatText: string | null;
|
|
74
28
|
}[]) => any) | undefined;
|
|
75
29
|
"onUpdate:timezone"?: ((value: string, timezoneInfo: ITimezoneItem) => any) | undefined;
|
|
76
30
|
}, {
|
|
@@ -80,3 +34,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
34
|
needTimezone: boolean;
|
|
81
35
|
}, {}>;
|
|
82
36
|
export default _default;
|
|
37
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
39
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
40
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
41
|
+
} : {
|
|
42
|
+
type: import('vue').PropType<T[K]>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
type __VLS_WithDefaults<P, D> = {
|
|
47
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
48
|
+
default: D[K];
|
|
49
|
+
}> : P[K];
|
|
50
|
+
};
|
|
51
|
+
type __VLS_Prettify<T> = {
|
|
52
|
+
[K in keyof T]: T[K];
|
|
53
|
+
} & {};
|
package/dist/lang/lang.d.ts
CHANGED
|
@@ -1,32 +1,41 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
readonly
|
|
3
|
-
readonly
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
6
|
-
readonly 'option-\u524D\u5929': "now-2d/d";
|
|
7
|
-
readonly 'option-\u5468': "weeks";
|
|
8
|
-
readonly 'option-\u5929': "days";
|
|
9
|
-
readonly 'option-\u5C0F\u65F6': "hours";
|
|
10
|
-
readonly 'option-\u5E74': "years";
|
|
11
|
-
readonly 'option-\u6628\u5929': "Yesterday";
|
|
12
|
-
readonly 'option-\u6708': "Months";
|
|
13
|
-
readonly 'option-\u672C\u5468': "This week";
|
|
14
|
-
readonly 'option-\u672C\u6708': "This month";
|
|
15
|
-
readonly 'option-\u79D2': "Seconds";
|
|
16
|
-
readonly 上周: "now-1w/w";
|
|
17
|
-
readonly 上月: "now-1M/M";
|
|
18
|
-
readonly 今天: "now/d";
|
|
19
|
-
readonly 分钟: "m";
|
|
20
|
-
readonly 前: "Previous";
|
|
1
|
+
export declare const naturalDateLangData: {
|
|
2
|
+
readonly 上周: "Last week";
|
|
3
|
+
readonly 上月: "Last month";
|
|
4
|
+
readonly 今天: "Today";
|
|
5
|
+
readonly 今年: "This year";
|
|
21
6
|
readonly '\u524D N \u5468': "Previous N weeks";
|
|
22
7
|
readonly '\u524D N \u5929': "Previous N days";
|
|
23
8
|
readonly 前天: "The day before yesterday";
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
9
|
+
readonly 前年: "The year before last";
|
|
10
|
+
readonly 去年: "Last year";
|
|
11
|
+
readonly 昨天: "Yesterday";
|
|
12
|
+
readonly 本周: "This week";
|
|
13
|
+
readonly 本月: "This month";
|
|
14
|
+
};
|
|
15
|
+
export declare const timeUnitLangData: {
|
|
16
|
+
readonly 分钟: "minute";
|
|
17
|
+
readonly 周: "week";
|
|
18
|
+
readonly 天: "day";
|
|
19
|
+
readonly 小时: "hour";
|
|
20
|
+
readonly 年: "year";
|
|
21
|
+
readonly 月: "month";
|
|
22
|
+
readonly 毫秒: "millisecond";
|
|
23
|
+
readonly 秒: "second";
|
|
24
|
+
};
|
|
25
|
+
export declare const shortTimeUnitLangData: {
|
|
26
|
+
M: string;
|
|
27
|
+
d: string;
|
|
28
|
+
h: string;
|
|
29
|
+
m: string;
|
|
30
|
+
ms: string;
|
|
31
|
+
s: string;
|
|
32
|
+
w: string;
|
|
33
|
+
y: string;
|
|
34
|
+
};
|
|
35
|
+
export declare const langData: {
|
|
36
|
+
readonly 前: "Previous";
|
|
26
37
|
readonly 将来: "Future";
|
|
27
|
-
readonly 小时: "h";
|
|
28
38
|
readonly 常用时间: "Common";
|
|
29
|
-
readonly 年: "y";
|
|
30
39
|
readonly 开始时间: "Start Time";
|
|
31
40
|
readonly 支持多种时间格式自动转换: "Support multiple time formats for automatic conversion";
|
|
32
41
|
readonly 整: "whole";
|
|
@@ -34,31 +43,29 @@ export declare const langData: {
|
|
|
34
43
|
readonly 日期选择: "Time Range";
|
|
35
44
|
readonly 时区设置: "Timezone setting";
|
|
36
45
|
readonly 时间格式支持: "Time format support";
|
|
37
|
-
readonly 昨天: "now-1d/d";
|
|
38
46
|
readonly 暂无最近使用记录: "No recent records";
|
|
39
47
|
readonly 最近: "Last";
|
|
40
48
|
readonly 最近使用: "Recently";
|
|
41
|
-
readonly 月: "M";
|
|
42
49
|
readonly 未来: "Future";
|
|
43
|
-
readonly 本周: "now/w";
|
|
44
|
-
readonly 本月: "now/M";
|
|
45
50
|
readonly 查看支持格式: "View supported formats";
|
|
46
51
|
readonly 格式: "Format";
|
|
47
52
|
readonly 此刻: "now";
|
|
48
53
|
readonly 浏览器时间: "Browser time";
|
|
49
54
|
readonly 确定: "Confirm";
|
|
50
55
|
readonly 示例: "Example";
|
|
51
|
-
readonly 秒: "s";
|
|
52
56
|
readonly 结束时间: "End Time";
|
|
53
57
|
readonly 自然日期: "Natural";
|
|
54
58
|
readonly 至今: "so far";
|
|
55
59
|
readonly 请输入: "Please enter";
|
|
56
60
|
readonly '\u8BF7\u8F93\u5165\u641C\u7D22\uFF08\u56FD\u5BB6\uFF0C\u57CE\u5E02\uFF0C\u7B80\u79F0\uFF09': "Please enter search (country, city, abbreviation)";
|
|
57
|
-
readonly 近: "Last
|
|
61
|
+
readonly 近: "Last";
|
|
58
62
|
readonly '\uFF08\u81F3\u4ECA\uFF09': "(so far)";
|
|
59
63
|
};
|
|
64
|
+
export type NaturalDateKey = keyof typeof naturalDateLangData;
|
|
65
|
+
export type TimeUnitDateKey = keyof typeof timeUnitLangData;
|
|
66
|
+
export type ShortTimeUnitDateKey = keyof typeof shortTimeUnitLangData;
|
|
60
67
|
export type LangKey = keyof typeof langData;
|
|
61
68
|
export type LangValue = (typeof langData)[LangKey];
|
|
62
|
-
export declare const langValueMap: Record<LangValue, "
|
|
69
|
+
export declare const langValueMap: Record<LangValue, "前" | "将来" | "常用时间" | "开始时间" | "支持多种时间格式自动转换" | "整" | "无匹配数据" | "日期选择" | "时区设置" | "时间格式支持" | "暂无最近使用记录" | "最近" | "最近使用" | "未来" | "查看支持格式" | "格式" | "此刻" | "浏览器时间" | "确定" | "示例" | "结束时间" | "自然日期" | "至今" | "请输入" | "请输入搜索(国家,城市,简称)" | "近" | "(至今)">;
|
|
63
70
|
export declare const lang: string;
|
|
64
|
-
export declare const t: (key: LangKey
|
|
71
|
+
export declare const t: (key: LangKey | NaturalDateKey | ShortTimeUnitDateKey | TimeUnitDateKey) => string;
|