@ebfe/vant-kit 0.0.3 → 0.0.5

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.
Files changed (66) hide show
  1. package/dist/ColoringAvatar/ColoringAvatar.vue.d.ts +16 -0
  2. package/dist/CopyTxtTrigger/CopyTxtTrigger.vue.d.ts +16 -0
  3. package/dist/DatePicker/DatePicker.vue.d.ts +35 -0
  4. package/dist/DateRangePicker/DateRangePicker.vue.d.ts +40 -0
  5. package/dist/FieldDatePicker/FieldDatePicker.vue.d.ts +162 -0
  6. package/dist/FieldDateRangePicker/FieldDateRangePicker.vue.d.ts +166 -0
  7. package/dist/FieldMaskTxt/FieldMaskTxt.vue.d.ts +25 -0
  8. package/dist/FieldMultiPicker/FieldMultiPicker.vue.d.ts +126 -0
  9. package/dist/FieldSinglePicker/FieldSinglePicker.vue.d.ts +32 -0
  10. package/dist/FieldSwitchBtn/FieldSwitchBtn.vue.d.ts +19 -0
  11. package/dist/MaskTxt/MaskTxt.vue.d.ts +23 -0
  12. package/dist/MultiPicker/MultiPicker.vue.d.ts +52 -0
  13. package/dist/SinglePicker/SinglePicker.vue.d.ts +37 -0
  14. package/dist/common/constants.d.ts +2 -0
  15. package/dist/common/hooks/useMaskedFieldLogic.d.ts +32 -0
  16. package/dist/common/index.d.ts +1 -0
  17. package/dist/index.d.ts +22 -0
  18. package/dist/vant-kit.css +1 -0
  19. package/dist/vant-kit.es.js +11837 -0
  20. package/dist/vant-kit.umd.js +40 -0
  21. package/package.json +32 -32
  22. package/es/field-multi-picker/README.md +0 -97
  23. package/es/field-multi-picker/index-sfc.less +0 -3
  24. package/es/field-multi-picker/index.ts +0 -139
  25. package/es/field-multi-picker/style/index.js +0 -0
  26. package/es/field-multi-picker/style/less.js +0 -0
  27. package/es/field-single-picker/README.md +0 -94
  28. package/es/field-single-picker/index-sfc.less +0 -3
  29. package/es/field-single-picker/index.ts +0 -158
  30. package/es/field-single-picker/style/index.js +0 -0
  31. package/es/field-single-picker/style/less.js +0 -0
  32. package/es/index.js +0 -25
  33. package/es/multi-picker/README.md +0 -183
  34. package/es/multi-picker/index-sfc.less +0 -20
  35. package/es/multi-picker/index.ts +0 -399
  36. package/es/multi-picker/style/index.js +0 -0
  37. package/es/multi-picker/style/less.js +0 -0
  38. package/es/single-picker/README.md +0 -239
  39. package/es/single-picker/index-sfc.less +0 -4
  40. package/es/single-picker/index.ts +0 -253
  41. package/es/single-picker/style/index.js +0 -0
  42. package/es/single-picker/style/less.js +0 -0
  43. package/es/vue-sfc-shim.d.ts +0 -5
  44. package/lib/field-multi-picker/README.md +0 -97
  45. package/lib/field-multi-picker/index-sfc.less +0 -3
  46. package/lib/field-multi-picker/index.ts +0 -139
  47. package/lib/field-multi-picker/style/index.js +0 -0
  48. package/lib/field-multi-picker/style/less.js +0 -0
  49. package/lib/field-single-picker/README.md +0 -94
  50. package/lib/field-single-picker/index-sfc.less +0 -3
  51. package/lib/field-single-picker/index.ts +0 -158
  52. package/lib/field-single-picker/style/index.js +0 -0
  53. package/lib/field-single-picker/style/less.js +0 -0
  54. package/lib/index.js +0 -25
  55. package/lib/index.less +0 -0
  56. package/lib/multi-picker/README.md +0 -183
  57. package/lib/multi-picker/index-sfc.less +0 -20
  58. package/lib/multi-picker/index.ts +0 -399
  59. package/lib/multi-picker/style/index.js +0 -0
  60. package/lib/multi-picker/style/less.js +0 -0
  61. package/lib/single-picker/README.md +0 -239
  62. package/lib/single-picker/index-sfc.less +0 -4
  63. package/lib/single-picker/index.ts +0 -253
  64. package/lib/single-picker/style/index.js +0 -0
  65. package/lib/single-picker/style/less.js +0 -0
  66. package/lib/vue-sfc-shim.d.ts +0 -5
@@ -0,0 +1,16 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ name: string;
3
+ size?: number;
4
+ fontSize?: number;
5
+ bgAttr?: string;
6
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
7
+ name: string;
8
+ size?: number;
9
+ fontSize?: number;
10
+ bgAttr?: string;
11
+ }> & Readonly<{}>, {
12
+ size: number;
13
+ fontSize: number;
14
+ bgAttr: string;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
+ export default _default;
@@ -0,0 +1,16 @@
1
+ export type TCopyTxtTriggerProps = {
2
+ txt: string;
3
+ };
4
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<TCopyTxtTriggerProps, {
5
+ copy: (_text: any) => void;
6
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TCopyTxtTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
7
+ default?(_: {
8
+ copy: (_text: any) => void;
9
+ }): any;
10
+ }>;
11
+ export default _default;
12
+ type __VLS_WithTemplateSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -0,0 +1,35 @@
1
+ import { DatePickerProps } from 'vant';
2
+ export type TDatePickerConfirmPayload = {
3
+ selectedValues: string[];
4
+ selectedOptions: Array<{
5
+ text: string;
6
+ value: string;
7
+ }>;
8
+ selectedIndexes: number[];
9
+ };
10
+ export type TDatePickerProps = {
11
+ modelValue: string | undefined;
12
+ pickerProps?: Partial<DatePickerProps>;
13
+ showValueFormatter?: (date?: Date) => string | undefined;
14
+ };
15
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<TDatePickerProps, {
16
+ setPickerRealtimeDate: (newValue: string | undefined) => void;
17
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
18
+ confirm: (option: TDatePickerConfirmPayload) => any;
19
+ "update:modelValue": (value: string) => any;
20
+ }, string, import('vue').PublicProps, Readonly<TDatePickerProps> & Readonly<{
21
+ onConfirm?: ((option: TDatePickerConfirmPayload) => any) | undefined;
22
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
23
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, Partial<Record<number, (_: any) => any>> & {
24
+ trigger?(_: {
25
+ triggerPopupShow: () => void;
26
+ showValue: string;
27
+ pickerRealtimeOptions: string[];
28
+ }): any;
29
+ }>;
30
+ export default _default;
31
+ type __VLS_WithTemplateSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1,40 @@
1
+ import { DatePickerProps, PickerGroupProps } from 'vant';
2
+ export type TDateRangePickerConfirmPayload = {
3
+ values: TDateRangePickerProps['modelValue'];
4
+ };
5
+ export type TSetDRPickerRealtimeDatePayload = {
6
+ start: string;
7
+ end: string;
8
+ };
9
+ export type TDRPickerShowValueFormatterPayload = {
10
+ startDate?: Date;
11
+ endDate?: Date;
12
+ };
13
+ export type TDateRangePickerProps = {
14
+ modelValue: string[];
15
+ pickerProps?: Partial<DatePickerProps>;
16
+ pickerGroupProps?: Partial<PickerGroupProps>;
17
+ showValueFormatter?: (p: TDRPickerShowValueFormatterPayload) => string | undefined;
18
+ beforeConfirm?: (newValues: TDateRangePickerProps['modelValue']) => boolean;
19
+ };
20
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<TDateRangePickerProps, {
21
+ setPickerRealtimeDate(p: TSetDRPickerRealtimeDatePayload): void;
22
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
23
+ confirm: (p: TDateRangePickerConfirmPayload) => any;
24
+ "update:modelValue": (value: string[]) => any;
25
+ }, string, import('vue').PublicProps, Readonly<TDateRangePickerProps> & Readonly<{
26
+ onConfirm?: ((p: TDateRangePickerConfirmPayload) => any) | undefined;
27
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
28
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, Partial<Record<number, (_: any) => any>> & Partial<Record<`${number}-start`, (_: any) => any>> & Partial<Record<`${number}-end`, (_: any) => any>> & {
29
+ trigger?(_: {
30
+ showValue: string;
31
+ triggerPopupShow: () => void;
32
+ pickerRealtimeOptions: string[][];
33
+ }): any;
34
+ }>;
35
+ export default _default;
36
+ type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,162 @@
1
+ import { FieldProps } from 'vant';
2
+ import { TDatePickerConfirmPayload, TDatePickerProps } from '../DatePicker/DatePicker.vue';
3
+ type __VLS_Props = TDatePickerProps & {
4
+ fieldProps: Partial<Omit<FieldProps, 'modelValue'>>;
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: any;
9
+ refs: {
10
+ DatePickerRef: ({
11
+ $: import('vue').ComponentInternalInstance;
12
+ $data: {};
13
+ $props: {
14
+ readonly modelValue: string | undefined;
15
+ readonly pickerProps?: Partial<import('vant').DatePickerProps> | undefined;
16
+ readonly showValueFormatter?: ((date?: Date) => string | undefined) | undefined;
17
+ readonly onConfirm?: ((option: TDatePickerConfirmPayload) => any) | undefined;
18
+ readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
19
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
20
+ $attrs: {
21
+ [x: string]: unknown;
22
+ };
23
+ $refs: {
24
+ [x: string]: unknown;
25
+ };
26
+ $slots: Readonly<{
27
+ [name: string]: import('vue').Slot<any> | undefined;
28
+ }>;
29
+ $root: import('vue').ComponentPublicInstance | null;
30
+ $parent: import('vue').ComponentPublicInstance | null;
31
+ $host: Element | null;
32
+ $emit: ((event: "confirm", option: TDatePickerConfirmPayload) => void) & ((event: "update:modelValue", value: string) => void);
33
+ $el: HTMLDivElement;
34
+ $options: import('vue').ComponentOptionsBase<Readonly<TDatePickerProps> & Readonly<{
35
+ onConfirm?: ((option: TDatePickerConfirmPayload) => any) | undefined;
36
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
37
+ }>, {
38
+ setPickerRealtimeDate: (newValue: string | undefined) => void;
39
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
40
+ confirm: (option: TDatePickerConfirmPayload) => any;
41
+ "update:modelValue": (value: string) => any;
42
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
43
+ beforeCreate?: (() => void) | (() => void)[];
44
+ created?: (() => void) | (() => void)[];
45
+ beforeMount?: (() => void) | (() => void)[];
46
+ mounted?: (() => void) | (() => void)[];
47
+ beforeUpdate?: (() => void) | (() => void)[];
48
+ updated?: (() => void) | (() => void)[];
49
+ activated?: (() => void) | (() => void)[];
50
+ deactivated?: (() => void) | (() => void)[];
51
+ beforeDestroy?: (() => void) | (() => void)[];
52
+ beforeUnmount?: (() => void) | (() => void)[];
53
+ destroyed?: (() => void) | (() => void)[];
54
+ unmounted?: (() => void) | (() => void)[];
55
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
56
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
57
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
58
+ };
59
+ $forceUpdate: () => void;
60
+ $nextTick: typeof import('vue').nextTick;
61
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
62
+ } & Readonly<{}> & Omit<Readonly<TDatePickerProps> & Readonly<{
63
+ onConfirm?: ((option: TDatePickerConfirmPayload) => any) | undefined;
64
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
65
+ }>, "setPickerRealtimeDate"> & import('vue').ShallowUnwrapRef<{
66
+ setPickerRealtimeDate: (newValue: string | undefined) => void;
67
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
68
+ $slots: Partial<Record<number, (_: any) => any>> & {
69
+ trigger?(_: {
70
+ triggerPopupShow: () => void;
71
+ showValue: string;
72
+ pickerRealtimeOptions: string[];
73
+ }): any;
74
+ };
75
+ }) | null;
76
+ };
77
+ rootEl: HTMLDivElement;
78
+ };
79
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
80
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
81
+ setPickerRealtimeDate: import('vue').ComputedRef<((newValue: string | undefined) => void) | undefined>;
82
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
83
+ confirm: (option: TDatePickerConfirmPayload) => any;
84
+ "update:modelValue": (value: string) => any;
85
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
86
+ onConfirm?: ((option: TDatePickerConfirmPayload) => any) | undefined;
87
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
88
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
89
+ DatePickerRef: ({
90
+ $: import('vue').ComponentInternalInstance;
91
+ $data: {};
92
+ $props: {
93
+ readonly modelValue: string | undefined;
94
+ readonly pickerProps?: Partial<import('vant').DatePickerProps> | undefined;
95
+ readonly showValueFormatter?: ((date?: Date) => string | undefined) | undefined;
96
+ readonly onConfirm?: ((option: TDatePickerConfirmPayload) => any) | undefined;
97
+ readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
98
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
99
+ $attrs: {
100
+ [x: string]: unknown;
101
+ };
102
+ $refs: {
103
+ [x: string]: unknown;
104
+ };
105
+ $slots: Readonly<{
106
+ [name: string]: import('vue').Slot<any> | undefined;
107
+ }>;
108
+ $root: import('vue').ComponentPublicInstance | null;
109
+ $parent: import('vue').ComponentPublicInstance | null;
110
+ $host: Element | null;
111
+ $emit: ((event: "confirm", option: TDatePickerConfirmPayload) => void) & ((event: "update:modelValue", value: string) => void);
112
+ $el: HTMLDivElement;
113
+ $options: import('vue').ComponentOptionsBase<Readonly<TDatePickerProps> & Readonly<{
114
+ onConfirm?: ((option: TDatePickerConfirmPayload) => any) | undefined;
115
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
116
+ }>, {
117
+ setPickerRealtimeDate: (newValue: string | undefined) => void;
118
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
119
+ confirm: (option: TDatePickerConfirmPayload) => any;
120
+ "update:modelValue": (value: string) => any;
121
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
122
+ beforeCreate?: (() => void) | (() => void)[];
123
+ created?: (() => void) | (() => void)[];
124
+ beforeMount?: (() => void) | (() => void)[];
125
+ mounted?: (() => void) | (() => void)[];
126
+ beforeUpdate?: (() => void) | (() => void)[];
127
+ updated?: (() => void) | (() => void)[];
128
+ activated?: (() => void) | (() => void)[];
129
+ deactivated?: (() => void) | (() => void)[];
130
+ beforeDestroy?: (() => void) | (() => void)[];
131
+ beforeUnmount?: (() => void) | (() => void)[];
132
+ destroyed?: (() => void) | (() => void)[];
133
+ unmounted?: (() => void) | (() => void)[];
134
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
135
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
136
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
137
+ };
138
+ $forceUpdate: () => void;
139
+ $nextTick: typeof import('vue').nextTick;
140
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
141
+ } & Readonly<{}> & Omit<Readonly<TDatePickerProps> & Readonly<{
142
+ onConfirm?: ((option: TDatePickerConfirmPayload) => any) | undefined;
143
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
144
+ }>, "setPickerRealtimeDate"> & import('vue').ShallowUnwrapRef<{
145
+ setPickerRealtimeDate: (newValue: string | undefined) => void;
146
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
147
+ $slots: Partial<Record<number, (_: any) => any>> & {
148
+ trigger?(_: {
149
+ triggerPopupShow: () => void;
150
+ showValue: string;
151
+ pickerRealtimeOptions: string[];
152
+ }): any;
153
+ };
154
+ }) | null;
155
+ }, HTMLDivElement>;
156
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
157
+ export default _default;
158
+ type __VLS_WithTemplateSlots<T, S> = T & {
159
+ new (): {
160
+ $slots: S;
161
+ };
162
+ };
@@ -0,0 +1,166 @@
1
+ import { FieldProps } from 'vant';
2
+ import { TDateRangePickerConfirmPayload, TDateRangePickerProps } from '../DateRangePicker/DateRangePicker.vue';
3
+ type __VLS_Props = TDateRangePickerProps & {
4
+ fieldProps: Partial<Omit<FieldProps, 'modelValue'>>;
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: any;
9
+ refs: {
10
+ DateRangePickerRef: ({
11
+ $: import('vue').ComponentInternalInstance;
12
+ $data: {};
13
+ $props: {
14
+ readonly modelValue: string[];
15
+ readonly pickerProps?: Partial<import('vant').DatePickerProps> | undefined;
16
+ readonly pickerGroupProps?: Partial<import('vant').PickerGroupProps> | undefined;
17
+ readonly showValueFormatter?: ((p: import('../DateRangePicker/DateRangePicker.vue').TDRPickerShowValueFormatterPayload) => string | undefined) | undefined;
18
+ readonly beforeConfirm?: ((newValues: TDateRangePickerProps["modelValue"]) => boolean) | undefined;
19
+ readonly onConfirm?: ((p: TDateRangePickerConfirmPayload) => any) | undefined;
20
+ readonly "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
21
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
22
+ $attrs: {
23
+ [x: string]: unknown;
24
+ };
25
+ $refs: {
26
+ [x: string]: unknown;
27
+ };
28
+ $slots: Readonly<{
29
+ [name: string]: import('vue').Slot<any> | undefined;
30
+ }>;
31
+ $root: import('vue').ComponentPublicInstance | null;
32
+ $parent: import('vue').ComponentPublicInstance | null;
33
+ $host: Element | null;
34
+ $emit: ((event: "confirm", p: TDateRangePickerConfirmPayload) => void) & ((event: "update:modelValue", value: string[]) => void);
35
+ $el: HTMLDivElement;
36
+ $options: import('vue').ComponentOptionsBase<Readonly<TDateRangePickerProps> & Readonly<{
37
+ onConfirm?: ((p: TDateRangePickerConfirmPayload) => any) | undefined;
38
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
39
+ }>, {
40
+ setPickerRealtimeDate(p: import('../DateRangePicker/DateRangePicker.vue').TSetDRPickerRealtimeDatePayload): void;
41
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
42
+ confirm: (p: TDateRangePickerConfirmPayload) => any;
43
+ "update:modelValue": (value: string[]) => any;
44
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
45
+ beforeCreate?: (() => void) | (() => void)[];
46
+ created?: (() => void) | (() => void)[];
47
+ beforeMount?: (() => void) | (() => void)[];
48
+ mounted?: (() => void) | (() => void)[];
49
+ beforeUpdate?: (() => void) | (() => void)[];
50
+ updated?: (() => void) | (() => void)[];
51
+ activated?: (() => void) | (() => void)[];
52
+ deactivated?: (() => void) | (() => void)[];
53
+ beforeDestroy?: (() => void) | (() => void)[];
54
+ beforeUnmount?: (() => void) | (() => void)[];
55
+ destroyed?: (() => void) | (() => void)[];
56
+ unmounted?: (() => void) | (() => void)[];
57
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
58
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
59
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
60
+ };
61
+ $forceUpdate: () => void;
62
+ $nextTick: typeof import('vue').nextTick;
63
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
64
+ } & Readonly<{}> & Omit<Readonly<TDateRangePickerProps> & Readonly<{
65
+ onConfirm?: ((p: TDateRangePickerConfirmPayload) => any) | undefined;
66
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
67
+ }>, "setPickerRealtimeDate"> & import('vue').ShallowUnwrapRef<{
68
+ setPickerRealtimeDate(p: import('../DateRangePicker/DateRangePicker.vue').TSetDRPickerRealtimeDatePayload): void;
69
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
70
+ $slots: Partial<Record<number, (_: any) => any>> & Partial<Record<`${number}-start`, (_: any) => any>> & Partial<Record<`${number}-end`, (_: any) => any>> & {
71
+ trigger?(_: {
72
+ showValue: string;
73
+ triggerPopupShow: () => void;
74
+ pickerRealtimeOptions: string[][];
75
+ }): any;
76
+ };
77
+ }) | null;
78
+ };
79
+ rootEl: HTMLDivElement;
80
+ };
81
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
82
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
83
+ setPickerRealtimeDate: import('vue').ComputedRef<((p: import('../DateRangePicker/DateRangePicker.vue').TSetDRPickerRealtimeDatePayload) => void) | undefined>;
84
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
85
+ confirm: (p: TDateRangePickerConfirmPayload) => any;
86
+ "update:modelValue": (value: string[]) => any;
87
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
88
+ onConfirm?: ((p: TDateRangePickerConfirmPayload) => any) | undefined;
89
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
90
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
91
+ DateRangePickerRef: ({
92
+ $: import('vue').ComponentInternalInstance;
93
+ $data: {};
94
+ $props: {
95
+ readonly modelValue: string[];
96
+ readonly pickerProps?: Partial<import('vant').DatePickerProps> | undefined;
97
+ readonly pickerGroupProps?: Partial<import('vant').PickerGroupProps> | undefined;
98
+ readonly showValueFormatter?: ((p: import('../DateRangePicker/DateRangePicker.vue').TDRPickerShowValueFormatterPayload) => string | undefined) | undefined;
99
+ readonly beforeConfirm?: ((newValues: TDateRangePickerProps["modelValue"]) => boolean) | undefined;
100
+ readonly onConfirm?: ((p: TDateRangePickerConfirmPayload) => any) | undefined;
101
+ readonly "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
102
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
103
+ $attrs: {
104
+ [x: string]: unknown;
105
+ };
106
+ $refs: {
107
+ [x: string]: unknown;
108
+ };
109
+ $slots: Readonly<{
110
+ [name: string]: import('vue').Slot<any> | undefined;
111
+ }>;
112
+ $root: import('vue').ComponentPublicInstance | null;
113
+ $parent: import('vue').ComponentPublicInstance | null;
114
+ $host: Element | null;
115
+ $emit: ((event: "confirm", p: TDateRangePickerConfirmPayload) => void) & ((event: "update:modelValue", value: string[]) => void);
116
+ $el: HTMLDivElement;
117
+ $options: import('vue').ComponentOptionsBase<Readonly<TDateRangePickerProps> & Readonly<{
118
+ onConfirm?: ((p: TDateRangePickerConfirmPayload) => any) | undefined;
119
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
120
+ }>, {
121
+ setPickerRealtimeDate(p: import('../DateRangePicker/DateRangePicker.vue').TSetDRPickerRealtimeDatePayload): void;
122
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
123
+ confirm: (p: TDateRangePickerConfirmPayload) => any;
124
+ "update:modelValue": (value: string[]) => any;
125
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
126
+ beforeCreate?: (() => void) | (() => void)[];
127
+ created?: (() => void) | (() => void)[];
128
+ beforeMount?: (() => void) | (() => void)[];
129
+ mounted?: (() => void) | (() => void)[];
130
+ beforeUpdate?: (() => void) | (() => void)[];
131
+ updated?: (() => void) | (() => void)[];
132
+ activated?: (() => void) | (() => void)[];
133
+ deactivated?: (() => void) | (() => void)[];
134
+ beforeDestroy?: (() => void) | (() => void)[];
135
+ beforeUnmount?: (() => void) | (() => void)[];
136
+ destroyed?: (() => void) | (() => void)[];
137
+ unmounted?: (() => void) | (() => void)[];
138
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
139
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
140
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
141
+ };
142
+ $forceUpdate: () => void;
143
+ $nextTick: typeof import('vue').nextTick;
144
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
145
+ } & Readonly<{}> & Omit<Readonly<TDateRangePickerProps> & Readonly<{
146
+ onConfirm?: ((p: TDateRangePickerConfirmPayload) => any) | undefined;
147
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
148
+ }>, "setPickerRealtimeDate"> & import('vue').ShallowUnwrapRef<{
149
+ setPickerRealtimeDate(p: import('../DateRangePicker/DateRangePicker.vue').TSetDRPickerRealtimeDatePayload): void;
150
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
151
+ $slots: Partial<Record<number, (_: any) => any>> & Partial<Record<`${number}-start`, (_: any) => any>> & Partial<Record<`${number}-end`, (_: any) => any>> & {
152
+ trigger?(_: {
153
+ showValue: string;
154
+ triggerPopupShow: () => void;
155
+ pickerRealtimeOptions: string[][];
156
+ }): any;
157
+ };
158
+ }) | null;
159
+ }, HTMLDivElement>;
160
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
161
+ export default _default;
162
+ type __VLS_WithTemplateSlots<T, S> = T & {
163
+ new (): {
164
+ $slots: S;
165
+ };
166
+ };
@@ -0,0 +1,25 @@
1
+ import { IUseMaskedFieldOptions } from '../common';
2
+ import { FieldProps } from 'vant';
3
+ export type TFieldMaskTxtProps = {
4
+ maskId: string;
5
+ modelValue: any;
6
+ fieldProps: Partial<Omit<FieldProps, 'modelValue'>>;
7
+ genFieldRules?: (p: {
8
+ isPlaintextVisible: boolean;
9
+ }) => FieldProps['rules'];
10
+ realFieldProps?: Partial<Omit<FieldProps, 'modelValue'>>;
11
+ loading?: boolean;
12
+ preset: Omit<IUseMaskedFieldOptions, 'maskId' | 'modelValue' | 'onValueUpdate'>;
13
+ };
14
+ declare const _default: import('vue').DefineComponent<TFieldMaskTxtProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
+ "update:modelValue": (value: any) => any;
16
+ }, string, import('vue').PublicProps, Readonly<TFieldMaskTxtProps> & Readonly<{
17
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
18
+ }>, {
19
+ loading: boolean;
20
+ genFieldRules: (p: {
21
+ isPlaintextVisible: boolean;
22
+ }) => FieldProps["rules"];
23
+ realFieldProps: Partial<Omit<FieldProps, "modelValue">>;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
25
+ export default _default;
@@ -0,0 +1,126 @@
1
+ import { TConfirmEventPayload, TMultiPickerProps } from '../MultiPicker/MultiPicker.vue';
2
+ import { FieldProps } from 'vant';
3
+ type __VLS_Props = TMultiPickerProps & {
4
+ fieldProps: Partial<Omit<FieldProps, 'modelValue'>>;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
7
+ getOptionsIdMapData: import('vue').ComputedRef<(() => {
8
+ [x: string]: any;
9
+ }) | undefined>;
10
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ search: (value: string) => any;
12
+ confirm: (p: TConfirmEventPayload) => any;
13
+ "update:modelValue": (value: any[]) => any;
14
+ toggleCheckbox: (value: any[]) => any;
15
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ onSearch?: ((value: string) => any) | undefined;
17
+ onConfirm?: ((p: TConfirmEventPayload) => any) | undefined;
18
+ "onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
19
+ onToggleCheckbox?: ((value: any[]) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
21
+ MultiPickerRef: ({
22
+ $: import('vue').ComponentInternalInstance;
23
+ $data: {};
24
+ $props: {
25
+ readonly modelValue: any[];
26
+ readonly options: any[];
27
+ readonly fieldNames?: {
28
+ label: string;
29
+ value: string;
30
+ } | undefined;
31
+ readonly title?: string | undefined;
32
+ readonly tipTxt?: string | undefined;
33
+ readonly showSearch?: boolean | undefined;
34
+ readonly searchDelay?: number | undefined;
35
+ readonly onSearch?: ((value: string) => any) | undefined;
36
+ readonly onConfirm?: ((p: TConfirmEventPayload) => any) | undefined;
37
+ readonly "onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
38
+ readonly onToggleCheckbox?: ((value: any[]) => any) | undefined;
39
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
40
+ $attrs: {
41
+ [x: string]: unknown;
42
+ };
43
+ $refs: {
44
+ [x: string]: unknown;
45
+ };
46
+ $slots: Readonly<{
47
+ [name: string]: import('vue').Slot<any> | undefined;
48
+ }>;
49
+ $root: import('vue').ComponentPublicInstance | null;
50
+ $parent: import('vue').ComponentPublicInstance | null;
51
+ $host: Element | null;
52
+ $emit: ((event: "search", value: string) => void) & ((event: "confirm", p: TConfirmEventPayload) => void) & ((event: "update:modelValue", value: any[]) => void) & ((event: "toggleCheckbox", value: any[]) => void);
53
+ $el: HTMLDivElement;
54
+ $options: import('vue').ComponentOptionsBase<Readonly<TMultiPickerProps> & Readonly<{
55
+ onSearch?: ((value: string) => any) | undefined;
56
+ onConfirm?: ((p: TConfirmEventPayload) => any) | undefined;
57
+ "onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
58
+ onToggleCheckbox?: ((value: any[]) => any) | undefined;
59
+ }>, {
60
+ getOptionsIdMapData(): {
61
+ [x: string]: any;
62
+ };
63
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
64
+ search: (value: string) => any;
65
+ confirm: (p: TConfirmEventPayload) => any;
66
+ "update:modelValue": (value: any[]) => any;
67
+ toggleCheckbox: (value: any[]) => any;
68
+ }, string, {
69
+ title: string;
70
+ showSearch: boolean;
71
+ searchDelay: number;
72
+ fieldNames: {
73
+ label: string;
74
+ value: string;
75
+ };
76
+ tipTxt: string;
77
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
78
+ beforeCreate?: (() => void) | (() => void)[];
79
+ created?: (() => void) | (() => void)[];
80
+ beforeMount?: (() => void) | (() => void)[];
81
+ mounted?: (() => void) | (() => void)[];
82
+ beforeUpdate?: (() => void) | (() => void)[];
83
+ updated?: (() => void) | (() => void)[];
84
+ activated?: (() => void) | (() => void)[];
85
+ deactivated?: (() => void) | (() => void)[];
86
+ beforeDestroy?: (() => void) | (() => void)[];
87
+ beforeUnmount?: (() => void) | (() => void)[];
88
+ destroyed?: (() => void) | (() => void)[];
89
+ unmounted?: (() => void) | (() => void)[];
90
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
91
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
92
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
93
+ };
94
+ $forceUpdate: () => void;
95
+ $nextTick: typeof import('vue').nextTick;
96
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
97
+ } & Readonly<{
98
+ title: string;
99
+ showSearch: boolean;
100
+ searchDelay: number;
101
+ fieldNames: {
102
+ label: string;
103
+ value: string;
104
+ };
105
+ tipTxt: string;
106
+ }> & Omit<Readonly<TMultiPickerProps> & Readonly<{
107
+ onSearch?: ((value: string) => any) | undefined;
108
+ onConfirm?: ((p: TConfirmEventPayload) => any) | undefined;
109
+ "onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
110
+ onToggleCheckbox?: ((value: any[]) => any) | undefined;
111
+ }>, "getOptionsIdMapData" | ("title" | "showSearch" | "searchDelay" | "fieldNames" | "tipTxt")> & import('vue').ShallowUnwrapRef<{
112
+ getOptionsIdMapData(): {
113
+ [x: string]: any;
114
+ };
115
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
116
+ $slots: {
117
+ trigger?(_: {
118
+ triggerPopupShow: () => void;
119
+ showValue: string;
120
+ selectedOptions: any[];
121
+ }): any;
122
+ title?(_: {}): any;
123
+ };
124
+ }) | null;
125
+ }, HTMLDivElement>;
126
+ export default _default;
@@ -0,0 +1,32 @@
1
+ import { TSinglePickerProps, TSPConfirmDisabledOptionPayload } from '../SinglePicker/SinglePicker.vue';
2
+ import { FieldProps } from 'vant';
3
+ type __VLS_Props = TSinglePickerProps & {
4
+ fieldProps: Partial<Omit<FieldProps, 'modelValue'>>;
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: any;
9
+ refs: {};
10
+ rootEl: HTMLDivElement;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
14
+ search: (value: string) => any;
15
+ confirm: (option: any) => any;
16
+ confirmDisabledOption: (p: TSPConfirmDisabledOptionPayload) => any;
17
+ "update:modelValue": (value: any) => any;
18
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
19
+ onSearch?: ((value: string) => any) | undefined;
20
+ onConfirm?: ((option: any) => any) | undefined;
21
+ onConfirmDisabledOption?: ((p: TSPConfirmDisabledOptionPayload) => any) | undefined;
22
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
23
+ }>, {
24
+ showSearch: boolean;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
+ export default _default;
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,19 @@
1
+ import { FieldProps } from 'vant';
2
+ export type TSwitchOption = {
3
+ label: string;
4
+ value: any;
5
+ };
6
+ export type TSwitchOptions = [TSwitchOption, TSwitchOption];
7
+ export type TFieldSwitchBtnProps = {
8
+ modelValue: any;
9
+ fieldProps: Partial<Omit<FieldProps, 'modelValue'>>;
10
+ options?: TSwitchOptions;
11
+ };
12
+ declare const _default: import('vue').DefineComponent<TFieldSwitchBtnProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
13
+ "update:modelValue": (value: any) => any;
14
+ change: (option: TSwitchOption) => any;
15
+ }, string, import('vue').PublicProps, Readonly<TFieldSwitchBtnProps> & Readonly<{
16
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
17
+ onChange?: ((option: TSwitchOption) => any) | undefined;
18
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
19
+ export default _default;