@solar-taro/ui-vant 0.0.0 → 1.0.1

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 (57) hide show
  1. package/cascader-picker/index.vue.d.ts +73 -0
  2. package/date-range-picker/index.vue.d.ts +75 -0
  3. package/directives/bind-function.d.ts +5 -0
  4. package/directives/datetime-picker.d.ts +5 -0
  5. package/directives/readonly.d.ts +3 -0
  6. package/index.js +1764 -0
  7. package/item/index.vue.d.ts +44 -0
  8. package/list/index.vue.d.ts +105 -0
  9. package/modal/index.vue.d.ts +56 -0
  10. package/opper-controller/index.vue.d.ts +45 -0
  11. package/overlay/overlay.d.ts +37 -0
  12. package/package.json +1 -1
  13. package/plugin.d.ts +9 -0
  14. package/select-picker/index.vue.d.ts +66 -0
  15. package/selector/index.vue.d.ts +126 -0
  16. package/tabbar/index.vue.d.ts +58 -0
  17. package/vant.interface.d.ts +91 -0
  18. package/CHANGELOG.md +0 -3
  19. package/eslint.config.cjs +0 -22
  20. package/project.json +0 -29
  21. package/src/cascader-picker/index.vue +0 -210
  22. package/src/date-range-picker/index.vue +0 -201
  23. package/src/directives/bind-function.ts +0 -22
  24. package/src/directives/datetime-picker.ts +0 -33
  25. package/src/directives/readonly.ts +0 -5
  26. package/src/item/index.vue +0 -34
  27. package/src/list/index.vue +0 -86
  28. package/src/modal/index.vue +0 -55
  29. package/src/opper-controller/index.vue +0 -365
  30. package/src/overlay/overlay.ts +0 -76
  31. package/src/plugin.ts +0 -14
  32. package/src/select-picker/index.vue +0 -80
  33. package/src/selector/index.vue +0 -252
  34. package/src/tabbar/index.vue +0 -56
  35. package/src/vant.interface.ts +0 -96
  36. package/tsconfig.json +0 -21
  37. package/tsconfig.lib.json +0 -24
  38. package/tsconfig.spec.json +0 -28
  39. package/vite.config.ts +0 -130
  40. /package/{src/cascader-picker/index.ts → cascader-picker/index.d.ts} +0 -0
  41. /package/{src/date-range-picker/index.ts → date-range-picker/index.d.ts} +0 -0
  42. /package/{src/date-range-picker → date-range-picker}/index.scss +0 -0
  43. /package/{src/directives/index.ts → directives/index.d.ts} +0 -0
  44. /package/{src/index.ts → index.d.ts} +0 -0
  45. /package/{src/index.scss → index.scss} +0 -0
  46. /package/{src/item/index.ts → item/index.d.ts} +0 -0
  47. /package/{src/item → item}/index.scss +0 -0
  48. /package/{src/list/index.ts → list/index.d.ts} +0 -0
  49. /package/{src/modal/index.ts → modal/index.d.ts} +0 -0
  50. /package/{src/opper-controller/index.ts → opper-controller/index.d.ts} +0 -0
  51. /package/{src/opper-controller → opper-controller}/index.scss +0 -0
  52. /package/{src/overlay/index.ts → overlay/index.d.ts} +0 -0
  53. /package/{src/select-picker/index.ts → select-picker/index.d.ts} +0 -0
  54. /package/{src/selector/index.ts → selector/index.d.ts} +0 -0
  55. /package/{src/selector → selector}/index.scss +0 -0
  56. /package/{src/tabbar/index.ts → tabbar/index.d.ts} +0 -0
  57. /package/{src/tabbar → tabbar}/index.scss +0 -0
@@ -0,0 +1,73 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ show: boolean;
3
+ labelKey?: string;
4
+ valueKey?: string;
5
+ pidKey?: string;
6
+ searchable?: boolean;
7
+ title: string;
8
+ loading?: boolean;
9
+ /** [[level1 list], [level2 list], [level3 list]] */
10
+ options: any[][];
11
+ modelValue: string | number | undefined;
12
+ required?: boolean;
13
+ }>, {
14
+ labelKey: string;
15
+ valueKey: string;
16
+ pidKey: string;
17
+ searchable: boolean;
18
+ options: () => never[];
19
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ confirm: (args_0: any) => void;
21
+ cancel: (args_0: any) => void;
22
+ close: () => void;
23
+ "update:show": (args_0: boolean) => void;
24
+ "update:modelValue": (args_0: any) => void;
25
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
26
+ show: boolean;
27
+ labelKey?: string;
28
+ valueKey?: string;
29
+ pidKey?: string;
30
+ searchable?: boolean;
31
+ title: string;
32
+ loading?: boolean;
33
+ /** [[level1 list], [level2 list], [level3 list]] */
34
+ options: any[][];
35
+ modelValue: string | number | undefined;
36
+ required?: boolean;
37
+ }>, {
38
+ labelKey: string;
39
+ valueKey: string;
40
+ pidKey: string;
41
+ searchable: boolean;
42
+ options: () => never[];
43
+ }>>> & Readonly<{
44
+ onConfirm?: ((args_0: any) => any) | undefined;
45
+ onCancel?: ((args_0: any) => any) | undefined;
46
+ onClose?: (() => any) | undefined;
47
+ "onUpdate:show"?: ((args_0: boolean) => any) | undefined;
48
+ "onUpdate:modelValue"?: ((args_0: any) => any) | undefined;
49
+ }>, {
50
+ labelKey: string;
51
+ valueKey: string;
52
+ pidKey: string;
53
+ searchable: boolean;
54
+ options: any[][];
55
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
56
+ export default _default;
57
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
58
+ type __VLS_TypePropsToRuntimeProps<T> = {
59
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
60
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
61
+ } : {
62
+ type: import('vue').PropType<T[K]>;
63
+ required: true;
64
+ };
65
+ };
66
+ type __VLS_WithDefaults<P, D> = {
67
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
68
+ default: D[K];
69
+ }> : P[K];
70
+ };
71
+ type __VLS_Prettify<T> = {
72
+ [K in keyof T]: T[K];
73
+ } & {};
@@ -0,0 +1,75 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ id?: string;
3
+ type?: "date" | "datetime";
4
+ label?: string;
5
+ title?: string;
6
+ placeholder?: [string, string];
7
+ modelValue: [number?, number?];
8
+ required?: boolean;
9
+ format?: string;
10
+ minDate?: number;
11
+ maxDate?: number;
12
+ }>, {
13
+ id: () => string;
14
+ type: string;
15
+ minDate: () => number;
16
+ maxDate: () => number;
17
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ "update:modelValue": (v: [(number | undefined)?, (number | undefined)?]) => void;
19
+ confirm: (v: [number, number]) => void;
20
+ clear: (v: [(number | undefined)?, (number | undefined)?]) => void;
21
+ close: () => void;
22
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
23
+ id?: string;
24
+ type?: "date" | "datetime";
25
+ label?: string;
26
+ title?: string;
27
+ placeholder?: [string, string];
28
+ modelValue: [number?, number?];
29
+ required?: boolean;
30
+ format?: string;
31
+ minDate?: number;
32
+ maxDate?: number;
33
+ }>, {
34
+ id: () => string;
35
+ type: string;
36
+ minDate: () => number;
37
+ maxDate: () => number;
38
+ }>>> & Readonly<{
39
+ onConfirm?: ((v: [number, number]) => any) | undefined;
40
+ onClose?: (() => any) | undefined;
41
+ "onUpdate:modelValue"?: ((v: [(number | undefined)?, (number | undefined)?]) => any) | undefined;
42
+ onClear?: ((v: [(number | undefined)?, (number | undefined)?]) => any) | undefined;
43
+ }>, {
44
+ id: string;
45
+ type: "date" | "datetime";
46
+ minDate: number;
47
+ maxDate: number;
48
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
49
+ default?(_: {
50
+ present: () => void;
51
+ }): any;
52
+ }>;
53
+ export default _default;
54
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
55
+ type __VLS_TypePropsToRuntimeProps<T> = {
56
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
57
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
58
+ } : {
59
+ type: import('vue').PropType<T[K]>;
60
+ required: true;
61
+ };
62
+ };
63
+ type __VLS_WithDefaults<P, D> = {
64
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
65
+ default: D[K];
66
+ }> : P[K];
67
+ };
68
+ type __VLS_Prettify<T> = {
69
+ [K in keyof T]: T[K];
70
+ } & {};
71
+ type __VLS_WithTemplateSlots<T, S> = T & {
72
+ new (): {
73
+ $slots: S;
74
+ };
75
+ };
@@ -0,0 +1,5 @@
1
+ import { Directive } from 'vue';
2
+
3
+ export declare const vBindFn: Directive<{
4
+ id: string;
5
+ }, (...args: any[]) => any>;
@@ -0,0 +1,5 @@
1
+ import { Directive } from 'vue';
2
+
3
+ export declare const vDatetimePicker: Directive<{
4
+ id: string;
5
+ }>;
@@ -0,0 +1,3 @@
1
+ import { Directive } from 'vue';
2
+
3
+ export declare const vReadonly: Directive<any, boolean | undefined>;