@solar-taro/ui-vant 1.6.5 → 2.1.0

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 (163) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/cascader/index.vue.d.ts +35 -99
  3. package/cascader-picker/index.vue.d.ts +11 -51
  4. package/date-range-picker/index.vue.d.ts +9 -36
  5. package/directives/bind-function.d.ts +0 -1
  6. package/directives/datetime-picker.d.ts +0 -1
  7. package/directives/readonly.d.ts +0 -1
  8. package/index.d.ts +0 -2
  9. package/index.js +21 -25
  10. package/index.scss +6 -0
  11. package/index10.js +292 -50
  12. package/index100.js +3 -16
  13. package/index101.js +5 -10
  14. package/index102.js +6 -5
  15. package/index103.js +10 -5
  16. package/index104.js +6 -4
  17. package/index105.js +793 -5
  18. package/index106.js +6 -6
  19. package/index107.js +18 -10
  20. package/index108.js +4 -6
  21. package/index109.js +4 -17
  22. package/index11.js +17 -303
  23. package/index110.js +3 -4
  24. package/index111.js +3 -4
  25. package/index112.js +14 -3
  26. package/index113.js +8 -4
  27. package/index114.js +5 -14
  28. package/index115.js +6 -8
  29. package/index116.js +5 -5
  30. package/index117.js +5 -5
  31. package/index118.js +5 -5
  32. package/index119.js +3 -6
  33. package/index12.js +28 -45
  34. package/index120.js +17 -5
  35. package/index121.js +5 -6
  36. package/index122.js +28 -790
  37. package/index123.js +4 -3
  38. package/index124.js +2 -16
  39. package/index125.js +8 -4
  40. package/index126.js +5 -3
  41. package/index127.js +4 -3
  42. package/index128.js +5 -9
  43. package/index129.js +3 -6
  44. package/index13.js +4 -18
  45. package/index130.js +3 -3
  46. package/index131.js +4 -5
  47. package/index132.js +11 -3
  48. package/index133.js +5 -30
  49. package/index134.js +6 -4
  50. package/index135.js +4 -4
  51. package/index136.js +7 -10
  52. package/index137.js +3 -7
  53. package/index14.js +62 -27
  54. package/index15.js +2 -5
  55. package/index16.js +2 -64
  56. package/index17.js +1 -1
  57. package/index18.js +2 -6
  58. package/index19.js +1 -1
  59. package/index2.js +1 -1
  60. package/index20.js +1 -1
  61. package/index22.js +1 -1
  62. package/index23.js +6 -2
  63. package/index24.js +10 -2
  64. package/index25.js +9 -2
  65. package/index26.js +14 -2
  66. package/index27.js +4 -2
  67. package/index28.js +62 -3
  68. package/index29.js +3 -13
  69. package/index3.js +3 -3
  70. package/index30.js +8 -10
  71. package/index31.js +6 -8
  72. package/index32.js +3 -62
  73. package/index33.js +2 -4
  74. package/index34.js +6 -8
  75. package/index35.js +9 -6
  76. package/index36.js +4 -3
  77. package/index37.js +4 -2
  78. package/index38.js +3 -6
  79. package/index39.js +3 -9
  80. package/index4.js +1 -1
  81. package/index40.js +7 -4
  82. package/index41.js +5 -4
  83. package/index42.js +5 -3
  84. package/index43.js +6 -3
  85. package/index44.js +5 -7
  86. package/index45.js +9 -5
  87. package/index46.js +4 -4
  88. package/index47.js +6 -6
  89. package/index48.js +5 -6
  90. package/index49.js +10 -9
  91. package/index5.js +1 -1
  92. package/index50.js +7 -5
  93. package/index51.js +17 -6
  94. package/index52.js +12 -5
  95. package/index53.js +6 -9
  96. package/index54.js +12 -6
  97. package/index55.js +3 -17
  98. package/index56.js +7 -11
  99. package/index57.js +9 -6
  100. package/index58.js +10 -11
  101. package/index59.js +5 -3
  102. package/index6.js +92 -29
  103. package/index60.js +5 -7
  104. package/index61.js +9 -10
  105. package/index62.js +15 -11
  106. package/index63.js +5 -5
  107. package/index64.js +5 -5
  108. package/index65.js +9 -9
  109. package/index66.js +6 -15
  110. package/index67.js +5 -5
  111. package/index68.js +5 -5
  112. package/index69.js +6 -8
  113. package/index7.js +39 -90
  114. package/index70.js +6 -6
  115. package/index71.js +26 -6
  116. package/index72.js +5 -5
  117. package/index73.js +39 -6
  118. package/index74.js +6 -6
  119. package/index75.js +6 -26
  120. package/index76.js +15 -6
  121. package/index77.js +6 -38
  122. package/index78.js +2 -7
  123. package/index79.js +3 -6
  124. package/index8.js +264 -40
  125. package/index80.js +12 -14
  126. package/index81.js +4 -7
  127. package/index82.js +3 -2
  128. package/index83.js +4 -3
  129. package/index84.js +3 -12
  130. package/index85.js +4 -5
  131. package/index86.js +4 -3
  132. package/index87.js +3 -3
  133. package/index88.js +15 -4
  134. package/index89.js +14 -4
  135. package/index9.js +54 -262
  136. package/index90.js +9 -4
  137. package/index91.js +3 -4
  138. package/index92.js +4 -13
  139. package/index93.js +5 -13
  140. package/index94.js +5 -8
  141. package/index95.js +8 -3
  142. package/index96.js +16 -4
  143. package/index97.js +10 -5
  144. package/index98.js +5 -5
  145. package/index99.js +4 -7
  146. package/list/index.vue.d.ts +14 -9
  147. package/modal/index.vue.d.ts +19 -41
  148. package/opper-controller/index.vue.d.ts +8 -36
  149. package/overlay/overlay.d.ts +0 -1
  150. package/package.json +2 -2
  151. package/plugin.d.ts +0 -1
  152. package/select-picker/index.vue.d.ts +11 -45
  153. package/selector/index.vue.d.ts +86 -147
  154. package/index138.js +0 -9
  155. package/index139.js +0 -7
  156. package/index140.js +0 -10
  157. package/index141.js +0 -5
  158. package/item/index.d.ts +0 -1
  159. package/item/index.scss +0 -37
  160. package/item/index.vue.d.ts +0 -44
  161. package/tabbar/index.d.ts +0 -1
  162. package/tabbar/index.scss +0 -78
  163. package/tabbar/index.vue.d.ts +0 -58
@@ -1,49 +1,21 @@
1
1
  import { Opper } from '@opper/core';
2
-
3
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ type __VLS_Props = {
4
3
  show?: boolean;
5
4
  /** NFC 直连 */
6
5
  mac?: string;
7
6
  /** 自动连 */
8
7
  deviceId?: string;
9
8
  opper: Opper;
10
- }>, {
11
- show: boolean;
12
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
- "update:show": (args_0: boolean) => void;
14
- connect: (deviceId: string) => void;
15
- disconnect: (deviceId: string) => void;
16
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
17
- show?: boolean;
18
- /** NFC 直连 */
19
- mac?: string;
20
- /** 自动连 */
21
- deviceId?: string;
22
- opper: Opper;
23
- }>, {
24
- show: boolean;
25
- }>>> & Readonly<{
9
+ };
10
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ "update:show": (args_0: boolean) => any;
12
+ connect: (deviceId: string) => any;
13
+ disconnect: (deviceId: string) => any;
14
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
26
15
  "onUpdate:show"?: ((args_0: boolean) => any) | undefined;
27
16
  onConnect?: ((deviceId: string) => any) | undefined;
28
17
  onDisconnect?: ((deviceId: string) => any) | undefined;
29
18
  }>, {
30
19
  show: boolean;
31
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, SVGViewElement>;
32
21
  export default _default;
33
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
- type __VLS_TypePropsToRuntimeProps<T> = {
35
- [K in keyof T]-?: {} extends Pick<T, K> ? {
36
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
- } : {
38
- type: import('vue').PropType<T[K]>;
39
- required: true;
40
- };
41
- };
42
- type __VLS_WithDefaults<P, D> = {
43
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
44
- default: D[K];
45
- }> : P[K];
46
- };
47
- type __VLS_Prettify<T> = {
48
- [K in keyof T]: T[K];
49
- } & {};
@@ -1,5 +1,4 @@
1
1
  import { VanDialog, VanDialogOptions, VanNotify } from '../vant.interface';
2
-
3
2
  export interface OverlayConfig {
4
3
  dialog: VanDialog;
5
4
  notify: VanNotify;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-taro/ui-vant",
3
- "version": "1.6.5",
3
+ "version": "2.1.0",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -18,6 +18,6 @@
18
18
  "peerDependencies": {
19
19
  "@opper/core": ">=0.5.0",
20
20
  "@opper/wx": ">=0.5.0",
21
- "vue": "^3.0.0"
21
+ "vue": "^3.5.0"
22
22
  }
23
23
  }
package/plugin.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Plugin } from 'vue';
2
-
3
2
  /**
4
3
  * solar vant ui vue plugin
5
4
  *
@@ -1,7 +1,7 @@
1
1
  interface Option {
2
2
  [key: string]: any;
3
3
  }
4
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ type __VLS_Props = {
5
5
  show: boolean;
6
6
  labelKey?: string;
7
7
  valueKey?: string;
@@ -11,56 +11,22 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
11
11
  options: Option[];
12
12
  modelValue: string | number | undefined;
13
13
  required?: boolean;
14
- }>, {
15
- labelKey: string;
16
- valueKey: string;
17
- searchable: boolean;
18
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
- cancel: (model: any) => void;
20
- close: () => void;
21
- confirm: (options: any) => void;
22
- "update:modelValue": (model: any) => void;
23
- "update:show": (args_0: boolean) => void;
24
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
25
- show: boolean;
26
- labelKey?: string;
27
- valueKey?: string;
28
- searchable?: boolean;
29
- title: string;
30
- loading?: boolean;
31
- options: Option[];
32
- modelValue: string | number | undefined;
33
- required?: boolean;
34
- }>, {
35
- labelKey: string;
36
- valueKey: string;
37
- searchable: boolean;
38
- }>>> & Readonly<{
14
+ };
15
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ cancel: (model: any) => any;
17
+ close: () => any;
18
+ confirm: (options: any) => any;
19
+ "update:show": (args_0: boolean) => any;
20
+ "update:modelValue": (model: any) => any;
21
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
39
22
  onCancel?: ((model: any) => any) | undefined;
40
23
  onClose?: (() => any) | undefined;
41
24
  onConfirm?: ((options: any) => any) | undefined;
42
- "onUpdate:modelValue"?: ((model: any) => any) | undefined;
43
25
  "onUpdate:show"?: ((args_0: boolean) => any) | undefined;
26
+ "onUpdate:modelValue"?: ((model: any) => any) | undefined;
44
27
  }>, {
45
28
  labelKey: string;
46
29
  valueKey: string;
47
30
  searchable: boolean;
48
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
49
32
  export default _default;
50
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
51
- type __VLS_TypePropsToRuntimeProps<T> = {
52
- [K in keyof T]-?: {} extends Pick<T, K> ? {
53
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
54
- } : {
55
- type: import('vue').PropType<T[K]>;
56
- required: true;
57
- };
58
- };
59
- type __VLS_WithDefaults<P, D> = {
60
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
61
- default: D[K];
62
- }> : P[K];
63
- };
64
- type __VLS_Prettify<T> = {
65
- [K in keyof T]: T[K];
66
- } & {};
@@ -1,152 +1,91 @@
1
- interface SelectorOption {
1
+ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
3
+ readonly onClose?: (() => any) | undefined;
4
+ readonly onSelect?: ((args_0: T) => any) | undefined;
5
+ readonly onClear?: ((args_0: unknown) => any) | undefined;
6
+ readonly onConfirm?: ((args_0: T[]) => any) | undefined;
7
+ readonly "onUpdate:modelValue"?: ((args_0: unknown) => any) | undefined;
8
+ readonly onRefresh?: (() => any) | undefined;
9
+ readonly onUnselect?: ((args_0: T) => any) | undefined;
10
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onUpdate:modelValue" | "onRefresh" | "onClose" | "onClear" | "onConfirm" | "onUnselect"> & {
11
+ type?: "field" | "search";
12
+ mode?: "single" | "multiple";
13
+ label?: string;
14
+ placeholder?: string;
15
+ modelValue: unknown;
16
+ options: T[];
17
+ labelKey?: keyof T;
18
+ valueKey?: keyof T;
19
+ loading?: boolean;
20
+ height?: string;
21
+ required?: boolean;
22
+ disabled?: boolean;
23
+ /** 多选模式下,分割符 */
24
+ delimiter?: string;
25
+ searchable?: boolean;
26
+ virtual?: boolean | {
27
+ itemSize?: number;
28
+ };
29
+ refresher?: boolean;
30
+ refreshing?: boolean;
31
+ compareWith?: (a: any, b: any) => boolean;
32
+ } & Partial<{}>> & import('vue').PublicProps;
33
+ expose(exposed: import('vue').ShallowUnwrapRef<{
34
+ present: () => void;
35
+ clear: () => void;
36
+ }>): void;
37
+ attrs: any;
38
+ slots: {
39
+ default?(_: {
40
+ present: () => void;
41
+ label: string | NonNullable<NonNullable<T>[NonNullable<keyof T extends undefined ? keyof T | undefined : keyof T extends infer T_1 ? T_1 extends keyof T ? T_1 extends undefined ? never : T_1 : never : never>]>;
42
+ }): any;
43
+ end?(_: {}): any;
44
+ end?(_: {}): any;
45
+ filter?(_: {
46
+ rendered: boolean;
47
+ }): any;
48
+ 'option-start'?(_: {
49
+ option: T;
50
+ index: number;
51
+ active: boolean;
52
+ }): any;
53
+ 'option-start'?(_: {
54
+ option: T;
55
+ index: number;
56
+ active: boolean;
57
+ }): any;
58
+ option?(_: {
59
+ option: T;
60
+ index: number;
61
+ active: boolean;
62
+ }): any;
63
+ option?(_: {
64
+ option: T;
65
+ index: number;
66
+ active: boolean;
67
+ }): any;
68
+ 'option-end'?(_: {
69
+ option: T;
70
+ index: number;
71
+ active: boolean;
72
+ }): any;
73
+ 'option-end'?(_: {
74
+ option: T;
75
+ index: number;
76
+ active: boolean;
77
+ }): any;
78
+ footer?(_: {
79
+ confirm: () => void;
80
+ }): any;
81
+ };
82
+ emit: ((evt: "close") => void) & ((evt: "select", args_0: T) => void) & ((evt: "clear", args_0: unknown) => void) & ((evt: "confirm", args_0: T[]) => void) & ((evt: "update:modelValue", args_0: unknown) => void) & ((evt: "refresh") => void) & ((evt: "unselect", args_0: T) => void);
83
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
2
84
  [key: string]: any;
3
- }
4
- declare function present(): void;
5
- declare function confirm(): void;
6
- declare function clear(): void;
7
- declare function __VLS_template(): {
8
- default?(_: {
9
- present: typeof present;
10
- label: any;
11
- }): any;
12
- end?(_: {}): any;
13
- filter?(_: {
14
- rendered: boolean;
15
- }): any;
16
- "option-start"?(_: {
17
- option: SelectorOption;
18
- index: number;
19
- active: boolean;
20
- }): any;
21
- option?(_: {
22
- option: SelectorOption;
23
- index: number;
24
- active: boolean;
25
- }): any;
26
- "option-end"?(_: {
27
- option: SelectorOption;
28
- index: number;
29
- active: boolean;
30
- }): any;
31
- footer?(_: {
32
- confirm: typeof confirm;
33
- }): any;
85
+ }> & {
86
+ __ctx?: Awaited<typeof __VLS_setup>;
34
87
  };
35
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
36
- type?: "field" | "search";
37
- mode?: "single" | "multiple";
38
- label?: string;
39
- placeholder?: string;
40
- modelValue: unknown;
41
- options: SelectorOption[];
42
- labelKey?: string;
43
- valueKey?: string;
44
- loading?: boolean;
45
- height?: string;
46
- required?: boolean;
47
- disabled?: boolean;
48
- /** 多选模式下,分割符 */
49
- delimiter?: string;
50
- searchable?: boolean;
51
- virtual?: boolean | {
52
- itemSize?: number;
53
- };
54
- refresher?: boolean;
55
- refreshing?: boolean;
56
- compareWith?: (a: any, b: any) => boolean;
57
- }>, {
58
- type: string;
59
- mode: string;
60
- placeholder: string;
61
- labelKey: string;
62
- valueKey: string;
63
- height: string;
64
- delimiter: string;
65
- searchable: boolean;
66
- compareWith: (a: any, b: any) => boolean;
67
- }>>, {
68
- present: typeof present;
69
- clear: typeof clear;
70
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
71
- close: () => void;
72
- select: (args_0: SelectorOption) => void;
73
- clear: (args_0: unknown) => void;
74
- confirm: (args_0: SelectorOption[]) => void;
75
- "update:modelValue": (args_0: unknown) => void;
76
- refresh: () => void;
77
- unselect: (args_0: SelectorOption) => void;
78
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
79
- type?: "field" | "search";
80
- mode?: "single" | "multiple";
81
- label?: string;
82
- placeholder?: string;
83
- modelValue: unknown;
84
- options: SelectorOption[];
85
- labelKey?: string;
86
- valueKey?: string;
87
- loading?: boolean;
88
- height?: string;
89
- required?: boolean;
90
- disabled?: boolean;
91
- /** 多选模式下,分割符 */
92
- delimiter?: string;
93
- searchable?: boolean;
94
- virtual?: boolean | {
95
- itemSize?: number;
96
- };
97
- refresher?: boolean;
98
- refreshing?: boolean;
99
- compareWith?: (a: any, b: any) => boolean;
100
- }>, {
101
- type: string;
102
- mode: string;
103
- placeholder: string;
104
- labelKey: string;
105
- valueKey: string;
106
- height: string;
107
- delimiter: string;
108
- searchable: boolean;
109
- compareWith: (a: any, b: any) => boolean;
110
- }>>> & Readonly<{
111
- onClose?: (() => any) | undefined;
112
- onSelect?: ((args_0: SelectorOption) => any) | undefined;
113
- onClear?: ((args_0: unknown) => any) | undefined;
114
- onConfirm?: ((args_0: SelectorOption[]) => any) | undefined;
115
- "onUpdate:modelValue"?: ((args_0: unknown) => any) | undefined;
116
- onRefresh?: (() => any) | undefined;
117
- onUnselect?: ((args_0: SelectorOption) => any) | undefined;
118
- }>, {
119
- type: "field" | "search";
120
- height: string;
121
- mode: "single" | "multiple";
122
- placeholder: string;
123
- labelKey: string;
124
- valueKey: string;
125
- delimiter: string;
126
- searchable: boolean;
127
- compareWith: (a: any, b: any) => boolean;
128
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
129
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
130
88
  export default _default;
131
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
132
- type __VLS_TypePropsToRuntimeProps<T> = {
133
- [K in keyof T]-?: {} extends Pick<T, K> ? {
134
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
135
- } : {
136
- type: import('vue').PropType<T[K]>;
137
- required: true;
138
- };
139
- };
140
- type __VLS_WithDefaults<P, D> = {
141
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
142
- default: D[K];
143
- }> : P[K];
144
- };
145
- type __VLS_Prettify<T> = {
89
+ type __VLS_PrettifyLocal<T> = {
146
90
  [K in keyof T]: T[K];
147
91
  } & {};
148
- type __VLS_WithTemplateSlots<T, S> = T & {
149
- new (): {
150
- $slots: S;
151
- };
152
- };
package/index138.js DELETED
@@ -1,9 +0,0 @@
1
- import e from "./index141.js";
2
- var h = "__lodash_hash_undefined__";
3
- function s(t, a) {
4
- var _ = this.__data__;
5
- return this.size += this.has(t) ? 0 : 1, _[t] = e && a === void 0 ? h : a, this;
6
- }
7
- export {
8
- s as default
9
- };
package/index139.js DELETED
@@ -1,7 +0,0 @@
1
- function e(t) {
2
- var o = typeof t;
3
- return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? t !== "__proto__" : t === null;
4
- }
5
- export {
6
- e as default
7
- };
package/index140.js DELETED
@@ -1,10 +0,0 @@
1
- import r from "./index33.js";
2
- function o(t, n) {
3
- for (var e = t.length; e--; )
4
- if (r(t[e][0], n))
5
- return e;
6
- return -1;
7
- }
8
- export {
9
- o as default
10
- };
package/index141.js DELETED
@@ -1,5 +0,0 @@
1
- import e from "./index108.js";
2
- var a = e(Object, "create");
3
- export {
4
- a as default
5
- };
package/item/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export { default as SunItem } from './index.vue';
package/item/index.scss DELETED
@@ -1,37 +0,0 @@
1
- .sun-item {
2
- --background: var(--color-white);
3
- --background-hover: #f8fafc;
4
- --border-color: #e2e8f0;
5
- --arrow-color: #94a3b8;
6
- display: flex;
7
- align-items: center;
8
- gap: 12px;
9
- padding: 0 12px;
10
- background: var(--background);
11
- transition: background-color ease-in-out 0.25s;
12
-
13
- &-lines-none > &-inner {
14
- border-bottom: none;
15
- }
16
-
17
- &-clickable.hover {
18
- background: var(--background-hover);
19
- }
20
-
21
- &-inner {
22
- display: flex;
23
- flex: auto;
24
- align-items: center;
25
- min-height: 44px;
26
- border-bottom: 0.5px solid var(--border-color);
27
- }
28
-
29
- &-content-wrapper {
30
- flex: auto;
31
- padding: 12px 0;
32
- }
33
-
34
- &-detail-icon {
35
- margin-left: 12px;
36
- }
37
- }
@@ -1,44 +0,0 @@
1
- declare function __VLS_template(): {
2
- start?(_: {}): any;
3
- default?(_: {}): any;
4
- end?(_: {}): any;
5
- };
6
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
7
- detail?: boolean;
8
- lines?: boolean;
9
- clickable?: boolean;
10
- }>, {
11
- lines: boolean;
12
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
13
- detail?: boolean;
14
- lines?: boolean;
15
- clickable?: boolean;
16
- }>, {
17
- lines: boolean;
18
- }>>> & Readonly<{}>, {
19
- lines: boolean;
20
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
21
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
22
- export default _default;
23
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
- type __VLS_TypePropsToRuntimeProps<T> = {
25
- [K in keyof T]-?: {} extends Pick<T, K> ? {
26
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
27
- } : {
28
- type: import('vue').PropType<T[K]>;
29
- required: true;
30
- };
31
- };
32
- type __VLS_WithDefaults<P, D> = {
33
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
34
- default: D[K];
35
- }> : P[K];
36
- };
37
- type __VLS_Prettify<T> = {
38
- [K in keyof T]: T[K];
39
- } & {};
40
- type __VLS_WithTemplateSlots<T, S> = T & {
41
- new (): {
42
- $slots: S;
43
- };
44
- };
package/tabbar/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export { default as SunTabbar } from './index.vue';
package/tabbar/index.scss DELETED
@@ -1,78 +0,0 @@
1
- .sun-tabbar {
2
- --height: 60px;
3
- --background: #f8fafc;
4
- --color: #64748b;
5
- --border-color: #e2e8f0;
6
- position: fixed;
7
- left: 0;
8
- bottom: 0;
9
- display: flex;
10
- height: var(--height);
11
- width: 100vw;
12
- overflow-x: auto;
13
- overflow-y: hidden;
14
- padding-bottom: var(--safe-bottom);
15
- box-sizing: content-box;
16
- background: var(--background);
17
-
18
- &-item {
19
- position: relative;
20
- display: flex;
21
- flex-direction: column;
22
- justify-content: center;
23
- align-items: center;
24
- height: var(--height);
25
- color: var(--color);
26
- flex: auto;
27
- flex-shrink: 0;
28
- min-width: 150rpx;
29
- font-size: 12px;
30
- gap: 2px;
31
- border-top: 0.5px solid var(--border-color);
32
- transition: color ease-out 0.25s;
33
-
34
- > van-icon {
35
- position: relative;
36
- font-size: 24px;
37
- width: 50px;
38
- height: 26px;
39
-
40
- &::before {
41
- content: "";
42
- position: absolute;
43
- top: 0;
44
- left: 0;
45
- width: 100%;
46
- height: 100%;
47
- border-radius: 99px;
48
- z-index: -1;
49
- transform: scaleX(0.75);
50
- transition:
51
- background-color ease-out 0.25s,
52
- transform ease-out 0.25s;
53
- }
54
- }
55
-
56
- &-icon-only {
57
- > van-icon {
58
- font-size: 26px;
59
- }
60
- }
61
-
62
- &-text-only {
63
- font-size: 16px;
64
- }
65
-
66
- &-active {
67
- font-weight: bold;
68
- color: var(--color-primary);
69
-
70
- > van-icon {
71
- &::before {
72
- transform: scaleX(1);
73
- background-color: rgba(var(--color-primary-rgb), 0.1);
74
- }
75
- }
76
- }
77
- }
78
- }
@@ -1,58 +0,0 @@
1
- declare function __VLS_template(): {
2
- default?(_: {
3
- tab: {
4
- icon?: [string, string?];
5
- text?: string;
6
- };
7
- index: number;
8
- }): any;
9
- };
10
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
- tabs: {
12
- icon?: [string, string?];
13
- text?: string;
14
- }[];
15
- active?: number;
16
- }>, {
17
- active: number;
18
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
- "update:active": (v: number) => void;
20
- toggle: (v: number) => void;
21
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
22
- tabs: {
23
- icon?: [string, string?];
24
- text?: string;
25
- }[];
26
- active?: number;
27
- }>, {
28
- active: number;
29
- }>>> & Readonly<{
30
- onToggle?: ((v: number) => any) | undefined;
31
- "onUpdate:active"?: ((v: number) => any) | undefined;
32
- }>, {
33
- active: number;
34
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
35
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
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
- } & {};
54
- type __VLS_WithTemplateSlots<T, S> = T & {
55
- new (): {
56
- $slots: S;
57
- };
58
- };