@solar-taro/ui-vant 1.3.1 → 1.3.3

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 (150) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/cascader/index.scss +7 -2
  3. package/cascader/index.vue.d.ts +102 -0
  4. package/cascader-picker/index.vue.d.ts +6 -6
  5. package/date-range-picker/index.vue.d.ts +3 -3
  6. package/index.d.ts +1 -0
  7. package/index.js +24 -22
  8. package/index10.js +50 -243
  9. package/index100.js +17 -5
  10. package/index101.js +10 -4
  11. package/index102.js +5 -4
  12. package/index103.js +4 -5
  13. package/index104.js +4 -6
  14. package/index105.js +6 -10
  15. package/index106.js +6 -6
  16. package/index107.js +10 -18
  17. package/index108.js +6 -4
  18. package/index109.js +793 -4
  19. package/index11.js +247 -38
  20. package/index110.js +6 -3
  21. package/index111.js +16 -2
  22. package/index112.js +4 -14
  23. package/index113.js +5 -8
  24. package/index114.js +3 -5
  25. package/index115.js +2 -4
  26. package/index116.js +14 -5
  27. package/index117.js +8 -6
  28. package/index118.js +5 -5
  29. package/index119.js +6 -3
  30. package/index12.js +44 -17
  31. package/index120.js +5 -17
  32. package/index121.js +5 -5
  33. package/index122.js +5 -3
  34. package/index123.js +3 -10
  35. package/index124.js +17 -5
  36. package/index125.js +5 -4
  37. package/index126.js +31 -5
  38. package/index128.js +4 -3
  39. package/index129.js +9 -4
  40. package/index13.js +15 -25
  41. package/index130.js +5 -4
  42. package/index131.js +4 -10
  43. package/index132.js +5 -6
  44. package/index133.js +3 -7
  45. package/index134.js +3 -3
  46. package/index135.js +4 -7
  47. package/index136.js +11 -3
  48. package/index137.js +9 -0
  49. package/index138.js +9 -0
  50. package/index139.js +7 -0
  51. package/index14.js +28 -4
  52. package/index140.js +10 -0
  53. package/index141.js +5 -0
  54. package/index15.js +5 -64
  55. package/index16.js +64 -2
  56. package/index17.js +1 -1
  57. package/index18.js +1 -1
  58. package/index19.js +1 -1
  59. package/index2.js +1 -1
  60. package/index20.js +1 -1
  61. package/index21.js +1 -1
  62. package/index22.js +1 -1
  63. package/index23.js +1 -1
  64. package/index24.js +1 -1
  65. package/index25.js +3 -9
  66. package/index26.js +2 -9
  67. package/index27.js +2 -6
  68. package/index28.js +5 -3
  69. package/index29.js +9 -6
  70. package/index3.js +165 -118
  71. package/index30.js +8 -62
  72. package/index31.js +13 -3
  73. package/index32.js +63 -8
  74. package/index33.js +3 -6
  75. package/index34.js +8 -4
  76. package/index35.js +7 -2
  77. package/index36.js +2 -4
  78. package/index37.js +2 -10
  79. package/index38.js +5 -4
  80. package/index39.js +10 -4
  81. package/index4.js +113 -157
  82. package/index40.js +4 -2
  83. package/index41.js +4 -4
  84. package/index42.js +3 -8
  85. package/index43.js +3 -4
  86. package/index44.js +7 -4
  87. package/index45.js +4 -6
  88. package/index46.js +5 -6
  89. package/index47.js +7 -9
  90. package/index48.js +6 -5
  91. package/index49.js +9 -7
  92. package/index5.js +166 -27
  93. package/index50.js +5 -5
  94. package/index51.js +6 -9
  95. package/index52.js +4 -6
  96. package/index53.js +9 -17
  97. package/index54.js +4 -9
  98. package/index55.js +17 -6
  99. package/index56.js +9 -10
  100. package/index57.js +6 -3
  101. package/index58.js +12 -7
  102. package/index59.js +3 -9
  103. package/index6.js +29 -95
  104. package/index60.js +2 -2
  105. package/index61.js +7 -5
  106. package/index62.js +9 -5
  107. package/index63.js +6 -9
  108. package/index64.js +5 -15
  109. package/index65.js +9 -6
  110. package/index66.js +15 -5
  111. package/index67.js +5 -8
  112. package/index68.js +5 -6
  113. package/index69.js +8 -5
  114. package/index7.js +93 -39
  115. package/index70.js +6 -5
  116. package/index71.js +4 -5
  117. package/index72.js +5 -6
  118. package/index73.js +7 -26
  119. package/index74.js +6 -5
  120. package/index75.js +26 -40
  121. package/index76.js +3 -4
  122. package/index77.js +39 -5
  123. package/index78.js +7 -15
  124. package/index79.js +5 -7
  125. package/index8.js +40 -263
  126. package/index80.js +15 -2
  127. package/index81.js +8 -3
  128. package/index82.js +2 -4
  129. package/index83.js +3 -4
  130. package/index84.js +13 -4
  131. package/index85.js +5 -4
  132. package/index86.js +3 -4
  133. package/index87.js +3 -14
  134. package/index88.js +4 -3
  135. package/index89.js +4 -13
  136. package/index9.js +262 -54
  137. package/index90.js +4 -5
  138. package/index91.js +4 -14
  139. package/index92.js +14 -8
  140. package/index93.js +14 -3
  141. package/index94.js +8 -5
  142. package/index95.js +3 -6
  143. package/index96.js +5 -5
  144. package/index97.js +5 -7
  145. package/index98.js +5 -17
  146. package/index99.js +7 -10
  147. package/opper-controller/index.scss +12 -0
  148. package/package.json +1 -1
  149. package/select-picker/index.vue.d.ts +4 -4
  150. package/selector/index.vue.d.ts +10 -10
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 1.3.2 (2025-09-18)
2
+
3
+ This was a version bump only for ui-vant to align it with other projects, there were no code changes.
4
+
5
+ ## 1.3.1 (2025-09-18)
6
+
7
+ ### 🚀 Features
8
+
9
+ - **ui-sun:** new color system
10
+
11
+ ### ❤️ Thank You
12
+
13
+ - HyperLife1119
14
+
1
15
  ## 1.3.0 (2025-09-18)
2
16
 
3
17
  This was a version bump only for ui-vant to align it with other projects, there were no code changes.
@@ -3,7 +3,7 @@
3
3
  overflow-y: auto;
4
4
  }
5
5
 
6
- &-cascader-tabs {
6
+ &-tabs {
7
7
  --tab-font-size: 16px;
8
8
 
9
9
  .van-tabs__wrap {
@@ -20,9 +20,14 @@
20
20
  }
21
21
  }
22
22
 
23
- &-cascader-option {
23
+ &-option {
24
24
  &-active {
25
+ font-weight: bold;
25
26
  --background: rgba(var(--color-primary-rgb), 0.1);
26
27
  }
28
+
29
+ &-icon {
30
+ color: var(--color-primary);
31
+ }
27
32
  }
28
33
  }
@@ -0,0 +1,102 @@
1
+ import { TreeNode } from '@solar-kit/core';
2
+
3
+ type CascaderOption = TreeNode<Record<string, any>>;
4
+ declare function present(): void;
5
+ declare function __VLS_template(): {
6
+ default?(_: {
7
+ present: typeof present;
8
+ label: string;
9
+ }): any;
10
+ };
11
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
12
+ modelValue: import('vue').PropType<unknown>;
13
+ disabled: {
14
+ type: import('vue').PropType<boolean>;
15
+ };
16
+ label: {
17
+ type: import('vue').PropType<string>;
18
+ };
19
+ required: {
20
+ type: import('vue').PropType<boolean>;
21
+ };
22
+ height: {
23
+ type: import('vue').PropType<string>;
24
+ default: string;
25
+ };
26
+ placeholder: {
27
+ type: import('vue').PropType<string>;
28
+ default: string;
29
+ };
30
+ options: {
31
+ type: import('vue').PropType<CascaderOption[]>;
32
+ required: true;
33
+ };
34
+ labelKey: {
35
+ type: import('vue').PropType<string>;
36
+ default: string;
37
+ };
38
+ valueKey: {
39
+ type: import('vue').PropType<string>;
40
+ default: string;
41
+ };
42
+ delimiter: {
43
+ type: import('vue').PropType<string>;
44
+ default: string;
45
+ };
46
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
47
+ select: (args_0: TreeNode<Record<string, any>>) => void;
48
+ clear: (args_0: unknown) => void;
49
+ close: () => void;
50
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
51
+ modelValue: import('vue').PropType<unknown>;
52
+ disabled: {
53
+ type: import('vue').PropType<boolean>;
54
+ };
55
+ label: {
56
+ type: import('vue').PropType<string>;
57
+ };
58
+ required: {
59
+ type: import('vue').PropType<boolean>;
60
+ };
61
+ height: {
62
+ type: import('vue').PropType<string>;
63
+ default: string;
64
+ };
65
+ placeholder: {
66
+ type: import('vue').PropType<string>;
67
+ default: string;
68
+ };
69
+ options: {
70
+ type: import('vue').PropType<CascaderOption[]>;
71
+ required: true;
72
+ };
73
+ labelKey: {
74
+ type: import('vue').PropType<string>;
75
+ default: string;
76
+ };
77
+ valueKey: {
78
+ type: import('vue').PropType<string>;
79
+ default: string;
80
+ };
81
+ delimiter: {
82
+ type: import('vue').PropType<string>;
83
+ default: string;
84
+ };
85
+ }>> & Readonly<{
86
+ onSelect?: ((args_0: TreeNode<Record<string, any>>) => any) | undefined;
87
+ onClear?: ((args_0: unknown) => any) | undefined;
88
+ onClose?: (() => any) | undefined;
89
+ }>, {
90
+ height: string;
91
+ placeholder: string;
92
+ labelKey: string;
93
+ valueKey: string;
94
+ delimiter: string;
95
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
96
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
97
+ export default _default;
98
+ type __VLS_WithTemplateSlots<T, S> = T & {
99
+ new (): {
100
+ $slots: S;
101
+ };
102
+ };
@@ -18,10 +18,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
18
18
  options: () => never[];
19
19
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
20
  confirm: (args_0: any) => void;
21
- cancel: (args_0: any) => void;
21
+ "update:modelValue": (args_0: any) => void;
22
22
  close: () => void;
23
23
  "update:show": (args_0: boolean) => void;
24
- "update:modelValue": (args_0: any) => void;
24
+ cancel: (args_0: any) => void;
25
25
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
26
26
  show: boolean;
27
27
  labelKey?: string;
@@ -42,16 +42,16 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
42
42
  options: () => never[];
43
43
  }>>> & Readonly<{
44
44
  onConfirm?: ((args_0: any) => any) | undefined;
45
- onCancel?: ((args_0: any) => any) | undefined;
45
+ "onUpdate:modelValue"?: ((args_0: any) => any) | undefined;
46
46
  onClose?: (() => any) | undefined;
47
47
  "onUpdate:show"?: ((args_0: boolean) => any) | undefined;
48
- "onUpdate:modelValue"?: ((args_0: any) => any) | undefined;
48
+ onCancel?: ((args_0: any) => any) | undefined;
49
49
  }>, {
50
+ options: any[][];
50
51
  labelKey: string;
51
52
  valueKey: string;
52
- pidKey: string;
53
53
  searchable: boolean;
54
- options: any[][];
54
+ pidKey: string;
55
55
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
56
56
  export default _default;
57
57
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -36,13 +36,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
36
36
  minDate: () => number;
37
37
  maxDate: () => number;
38
38
  }>>> & Readonly<{
39
+ onClear?: ((v: [(number | undefined)?, (number | undefined)?]) => any) | undefined;
39
40
  onConfirm?: ((v: [number, number]) => any) | undefined;
40
- onClose?: (() => any) | undefined;
41
41
  "onUpdate:modelValue"?: ((v: [(number | undefined)?, (number | undefined)?]) => any) | undefined;
42
- onClear?: ((v: [(number | undefined)?, (number | undefined)?]) => any) | undefined;
42
+ onClose?: (() => any) | undefined;
43
43
  }>, {
44
- id: string;
45
44
  type: "date" | "datetime";
45
+ id: string;
46
46
  minDate: number;
47
47
  maxDate: number;
48
48
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
package/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './cascader';
1
2
  export * from './cascader-picker';
2
3
  export * from './date-range-picker';
3
4
  export * from './directives';
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { SolarVant as o } from "./index2.js";
2
2
  import { default as a } from "./index3.js";
3
- import { default as l } from "./index4.js";
3
+ import { default as u } from "./index4.js";
4
4
  import { default as p } from "./index5.js";
5
5
  import { default as n } from "./index6.js";
6
6
  import { default as x } from "./index7.js";
@@ -8,27 +8,29 @@ import { default as S } from "./index8.js";
8
8
  import { default as c } from "./index9.js";
9
9
  import { default as v } from "./index10.js";
10
10
  import { default as P } from "./index11.js";
11
- import { vBindFn as D } from "./index12.js";
12
- import { vDatetimePicker as C } from "./index13.js";
13
- import { vReadonly as R } from "./index14.js";
14
- import { Dialog as F, Notify as I, dialog as L, notify as M, setupOverlay as N } from "./index15.js";
11
+ import { default as C } from "./index12.js";
12
+ import { vBindFn as b } from "./index13.js";
13
+ import { vDatetimePicker as R } from "./index14.js";
14
+ import { vReadonly as F } from "./index15.js";
15
+ import { Dialog as L, Notify as M, dialog as N, notify as T, setupOverlay as V } from "./index16.js";
15
16
  export {
16
- F as Dialog,
17
- I as Notify,
17
+ L as Dialog,
18
+ M as Notify,
18
19
  o as SolarVant,
19
- a as SunCascaderPicker,
20
- l as SunDateRangePicker,
21
- p as SunItem,
22
- n as SunList,
23
- x as SunModal,
24
- S as SunOpperController,
25
- c as SunSelectPicker,
26
- v as SunSelector,
27
- P as SunTabbar,
28
- L as dialog,
29
- M as notify,
30
- N as setupOverlay,
31
- D as vBindFn,
32
- C as vDatetimePicker,
33
- R as vReadonly
20
+ a as SunCascader,
21
+ u as SunCascaderPicker,
22
+ p as SunDateRangePicker,
23
+ n as SunItem,
24
+ x as SunList,
25
+ S as SunModal,
26
+ c as SunOpperController,
27
+ v as SunSelectPicker,
28
+ P as SunSelector,
29
+ C as SunTabbar,
30
+ N as dialog,
31
+ T as notify,
32
+ V as setupOverlay,
33
+ b as vBindFn,
34
+ R as vDatetimePicker,
35
+ F as vReadonly
34
36
  };
package/index10.js CHANGED
@@ -1,257 +1,64 @@
1
- import { defineComponent as M, ref as D, computed as h, renderSlot as _, openBlock as A, createElementBlock as G, createCommentVNode as H, mergeProps as J, resolveDirective as Q, withDirectives as U, unref as X, toDisplayString as Y, createElementVNode as Z, normalizeClass as x, normalizeStyle as ee, withCtx as le, createBlock as te, Fragment as oe, renderList as ne, createVNode as ae } from "vue";
2
- import { useFilterList as se } from "@solar-taro/core";
3
- import { SunLazyRender as re, SunVirtualScroll as ie } from "@solar-taro/ui-sun";
4
- import C from "./index28.js";
5
- import ue from "./index6.js";
6
- const y = _, a = A, s = G, u = H, L = J, de = Q, E = U, d = X, F = Y, c = Z, O = x, w = ee, N = le, R = te, T = oe, ce = ne, pe = ae, ve = ["label", "value", "placeholder", "required", "disabled"], fe = ["label", "value", "placeholder", "use-right-icon-slot", "disabled"], me = ["show", "title"], he = ["value"], ye = ["onTap"], ge = {
7
- class: "sun-selector-option-label",
8
- name: "title"
9
- }, be = {
10
- key: 0,
11
- class: "sun-selector-option-icon",
12
- slot: "right-icon",
13
- name: "success"
14
- }, ke = ["onTap"], Ve = {
15
- class: "sun-selector-option-label",
16
- name: "title"
17
- }, $e = {
18
- key: 0,
19
- class: "sun-selector-option-icon",
20
- slot: "right-icon",
21
- name: "success"
22
- }, Ke = {
23
- key: 0,
24
- class: "van-button-container"
25
- }, Ne = /* @__PURE__ */ M({
1
+ import { defineComponent as v, computed as y, unref as h, mergeProps as w, createElementVNode as k, openBlock as C, createElementBlock as V, createCommentVNode as g } from "vue";
2
+ import { useFilterList as B } from "@solar-taro/core";
3
+ const b = h, K = w, N = k, u = C, r = V, E = g, L = ["show"], $ = ["title", "value-key", "columns", "loading", "default-index"], A = /* @__PURE__ */ v({
4
+ inheritAttrs: !1,
26
5
  __name: "index",
27
6
  props: {
28
- type: { default: "field" },
29
- mode: { default: "single" },
30
- label: {},
31
- placeholder: { default: "请选择" },
32
- modelValue: {},
33
- options: {},
7
+ show: { type: Boolean },
34
8
  labelKey: { default: "fullName" },
35
9
  valueKey: { default: "id" },
36
- loading: { type: Boolean },
37
- height: { default: "70vh" },
38
- required: { type: Boolean },
39
- disabled: { type: Boolean },
40
- delimiter: { default: "," },
41
10
  searchable: { type: Boolean, default: !0 },
42
- virtual: { type: [Boolean, Object] },
43
- refresher: { type: Boolean },
44
- refreshing: { type: Boolean },
45
- compareWith: { type: Function, default: (g, b) => g === b }
11
+ title: {},
12
+ loading: { type: Boolean },
13
+ options: {},
14
+ modelValue: {},
15
+ required: { type: Boolean }
46
16
  },
47
- emits: ["update:modelValue", "select", "unselect", "clear", "close", "confirm", "refresh"],
48
- setup(g, { expose: b, emit: P }) {
49
- const t = g, r = P, k = D(!1), V = D(!1), { keyword: W, filteredList: $ } = se(
50
- () => t.options,
51
- (e, l) => e[t.labelKey].includes(l.value)
52
- ), K = h(() => {
17
+ emits: ["close", "cancel", "confirm", "update:show", "update:modelValue"],
18
+ setup(s, { emit: i }) {
19
+ const n = i, l = s, d = y(() => {
53
20
  var e;
54
- if (p.value) {
55
- const l = C(t.modelValue) ? null : t.options.find(
56
- (n) => t.compareWith(n[t.valueKey], t.modelValue)
57
- );
58
- return (l == null ? void 0 : l[t.labelKey]) || "";
59
- }
60
- return (e = t.modelValue) == null ? void 0 : e.map(
61
- (l) => {
62
- var n;
63
- return ((n = t.options.find((o) => t.compareWith(o[t.valueKey], l))) == null ? void 0 : n[t.labelKey]) || "";
64
- }
65
- ).join(t.delimiter);
66
- }), S = h(() => !C(t.modelValue) && !t.required), p = h(() => t.mode === "single"), j = h(() => {
67
- var n, o;
68
- let e, l = 48;
69
- return typeof t.virtual != "boolean" && (n = t.virtual) != null && n.itemSize && (l = (o = t.virtual) == null ? void 0 : o.itemSize), { id: e, itemSize: l };
70
- });
71
- function i(e) {
72
- var n;
73
- const l = e[t.valueKey];
74
- return p.value ? C(t.modelValue) ? !1 : t.compareWith(t.modelValue, l) : ((n = t.modelValue) == null ? void 0 : n.some((o) => t.compareWith(o, l))) || !1;
75
- }
76
- function v() {
77
- t.disabled || (k.value = !0, V.value || setTimeout(() => {
78
- V.value = !0;
79
- }, 300));
80
- }
81
- function f() {
82
- k.value = !1, r("close");
83
- }
84
- function q() {
85
- var l;
86
- const e = ((l = t.modelValue) == null ? void 0 : l.map(
87
- (n) => t.options.find(
88
- (o) => t.compareWith(o[t.valueKey], n)
89
- )
90
- )) || [];
91
- r("confirm", e), f();
21
+ return (e = l.options.findIndex((o) => o[l.valueKey] === l.modelValue)) != null ? e : 0;
22
+ }), { keyword: p, filteredList: m } = B(
23
+ () => l.options,
24
+ (e, o) => e[l.labelKey].toLowerCase().includes(o.value.toLowerCase())
25
+ );
26
+ function c() {
27
+ l.required || n("update:modelValue", null), n("cancel", l.modelValue), a();
92
28
  }
93
- function m(e) {
94
- const l = e[t.valueKey];
95
- let n = t.modelValue;
96
- p.value ? (i(e) ? t.required || (r("unselect", e), n = null) : (r("select", e), n = l), f()) : i(e) ? (r("unselect", e), n = t.modelValue.filter(
97
- (o) => !t.compareWith(o, l)
98
- )) : (r("select", e), n = (t.modelValue || []).concat(
99
- e[t.valueKey]
100
- )), r("update:modelValue", n);
29
+ function a() {
30
+ n("update:show", !1), n("close");
101
31
  }
102
- function z() {
103
- r("clear", t.modelValue), r("update:modelValue", null);
32
+ function f({ detail: e }) {
33
+ n("update:modelValue", e.value[l.valueKey]), n("confirm", e.value), n("update:show", !1);
104
34
  }
105
- return b({
106
- present: v,
107
- clear: z
108
- }), (e, l) => {
109
- const n = de("readonly");
110
- return a(), s(T, null, [
111
- y(e.$slots, "default", {
112
- present: v,
113
- label: K.value
114
- }, () => [
115
- e.type === "field" ? E((a(), s("van-field", L({ key: 0 }, e.$attrs, {
116
- class: "sun-selector",
117
- label: e.label,
118
- value: K.value,
119
- placeholder: e.placeholder,
120
- required: e.required,
121
- disabled: e.disabled,
122
- onClickInput: l[1] || (l[1] = (o) => v())
123
- }), [
124
- S.value ? (a(), s("van-icon", {
125
- key: 0,
126
- slot: "right-icon",
127
- name: "clear",
128
- onTap: l[0] || (l[0] = (o) => z())
129
- }, null, 32)) : u("", !0)
130
- ], 16, ve)), [
131
- [n]
132
- ]) : e.type === "search" ? E((a(), s("van-search", L({ key: 1 }, e.$attrs, {
133
- class: "sun-selector",
134
- label: e.label,
135
- value: K.value,
136
- placeholder: e.placeholder,
137
- "use-right-icon-slot": S.value,
138
- shape: "round",
139
- clearable: !1,
140
- disabled: e.disabled,
141
- onClickInput: l[3] || (l[3] = (o) => v())
142
- }), [
143
- S.value ? (a(), s("van-icon", {
144
- key: 0,
145
- slot: "right-icon",
146
- name: "clear",
147
- onTap: l[2] || (l[2] = (o) => z())
148
- }, null, 32)) : u("", !0)
149
- ], 16, fe)), [
150
- [n]
151
- ]) : u("", !0)
152
- ]),
153
- pe(d(re), { hook: "created" }, {
154
- default: N(() => [
155
- c("van-action-sheet", {
156
- show: k.value,
157
- title: e.placeholder,
158
- "close-on-click-overlay": !0,
159
- onClose: l[8] || (l[8] = (o) => f()),
160
- onCancel: l[9] || (l[9] = (o) => f())
161
- }, [
162
- e.searchable ? (a(), s("van-search", {
163
- key: 0,
164
- shape: "round",
165
- "input-align": "center",
166
- value: d(W),
167
- placeholder: "输入关键字搜索",
168
- onChange: l[4] || (l[4] = (o) => W.value = o.detail.trim())
169
- }, null, 40, he)) : u("", !0),
170
- e.virtual ? (a(), s(T, { key: 1 }, [
171
- V.value ? (a(), R(d(ie), {
172
- key: 0,
173
- class: "sun-selector-options",
174
- refresher: e.refresher,
175
- refreshing: e.refreshing,
176
- items: d($),
177
- "item-size": j.value.itemSize,
178
- "item-key": e.valueKey,
179
- style: w({ height: e.height }),
180
- onRefresh: l[5] || (l[5] = (o) => r("refresh"))
181
- }, {
182
- default: N(({ item: o, index: B }) => [
183
- y(e.$slots, "option", {
184
- option: o,
185
- index: B,
186
- active: i(o),
187
- select: () => m(o)
188
- }, () => [
189
- c("van-cell", {
190
- class: O(["sun-selector-option", { "sun-selector-option-active": i(o) }]),
191
- clickable: !0,
192
- size: "large",
193
- onTap: (I) => m(o)
194
- }, [
195
- c("slot-view", ge, F(o[e.labelKey]), 1),
196
- i(o) ? (a(), s("van-icon", be)) : u("", !0)
197
- ], 42, ye)
198
- ])
199
- ]),
200
- _: 3
201
- }, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (a(), s("view", {
202
- key: 1,
203
- style: w({ height: e.height })
204
- }, null, 4))
205
- ], 64)) : (a(), R(d(ue), {
206
- key: 2,
207
- class: "sun-selector-options",
208
- refresher: e.refresher,
209
- refreshing: e.refreshing,
210
- data: d($),
211
- loading: e.loading,
212
- "empty-type": "search",
213
- style: w({ height: e.height }),
214
- onRefresh: l[6] || (l[6] = (o) => r("refresh"))
215
- }, {
216
- default: N(() => [
217
- (a(!0), s(T, null, ce(d($), (o, B) => y(e.$slots, "option", {
218
- key: o[e.valueKey],
219
- option: o,
220
- index: B,
221
- active: i(o),
222
- select: () => m(o)
223
- }, () => [
224
- c("van-cell", {
225
- class: O(["sun-selector-option", { "sun-selector-option-active": i(o) }]),
226
- clickable: !0,
227
- size: "large",
228
- onTap: (I) => m(o)
229
- }, [
230
- c("slot-view", Ve, F(o[e.labelKey]), 1),
231
- i(o) ? (a(), s("van-icon", $e)) : u("", !0)
232
- ], 42, ke)
233
- ])), 128))
234
- ]),
235
- _: 3
236
- }, 8, ["refresher", "refreshing", "data", "loading", "style"])),
237
- y(e.$slots, "footer", { confirm: q }, () => [
238
- p.value ? u("", !0) : (a(), s("view", Ke, [
239
- c("van-button", {
240
- type: "primary",
241
- round: "true",
242
- block: "true",
243
- onTap: l[7] || (l[7] = (o) => q())
244
- }, "确定", 32)
245
- ]))
246
- ])
247
- ], 40, me)
248
- ]),
249
- _: 3
250
- })
251
- ], 64);
252
- };
35
+ return (e, o) => (u(), r("van-popup", {
36
+ show: e.show,
37
+ position: "bottom",
38
+ round: !0,
39
+ "close-on-click-overlay": !0,
40
+ onClose: o[3] || (o[3] = (t) => a())
41
+ }, [
42
+ N("van-picker", K(e.$attrs, {
43
+ title: e.title,
44
+ "show-toolbar": !0,
45
+ "value-key": e.labelKey,
46
+ columns: b(m),
47
+ loading: e.loading,
48
+ "default-index": d.value,
49
+ onCancel: o[0] || (o[0] = (t) => c()),
50
+ onConfirm: o[1] || (o[1] = (t) => f(t))
51
+ }), null, 16, $),
52
+ e.searchable && e.options.length ? (u(), r("van-search", {
53
+ key: 0,
54
+ shape: "round",
55
+ "input-align": "center",
56
+ placeholder: "请输入搜索关键词",
57
+ onChange: o[2] || (o[2] = (t) => p.value = t.detail)
58
+ }, null, 32)) : E("", !0)
59
+ ], 40, L));
253
60
  }
254
61
  });
255
62
  export {
256
- Ne as default
63
+ A as default
257
64
  };
package/index100.js CHANGED
@@ -1,8 +1,20 @@
1
- import a from "./index121.js";
2
- function i(e) {
3
- var t = a(this, e).delete(e);
4
- return this.size -= t ? 1 : 0, t;
1
+ import r from "./index101.js";
2
+ import m from "./index102.js";
3
+ import h from "./index103.js";
4
+ import l from "./index104.js";
5
+ import c from "./index105.js";
6
+ function e(t) {
7
+ var o = -1, a = t == null ? 0 : t.length;
8
+ for (this.clear(); ++o < a; ) {
9
+ var p = t[o];
10
+ this.set(p[0], p[1]);
11
+ }
5
12
  }
13
+ e.prototype.clear = r;
14
+ e.prototype.delete = m;
15
+ e.prototype.get = h;
16
+ e.prototype.has = l;
17
+ e.prototype.set = c;
6
18
  export {
7
- i as default
19
+ e as default
8
20
  };
package/index101.js CHANGED
@@ -1,7 +1,13 @@
1
- import a from "./index121.js";
2
- function r(t) {
3
- return a(this, t).get(t);
1
+ import a from "./index124.js";
2
+ import t from "./index111.js";
3
+ import e from "./index88.js";
4
+ function o() {
5
+ this.size = 0, this.__data__ = {
6
+ hash: new a(),
7
+ map: new (e || t)(),
8
+ string: new a()
9
+ };
4
10
  }
5
11
  export {
6
- r as default
12
+ o as default
7
13
  };
package/index102.js CHANGED
@@ -1,7 +1,8 @@
1
- import t from "./index121.js";
2
- function e(a) {
3
- return t(this, a).has(a);
1
+ import a from "./index125.js";
2
+ function i(e) {
3
+ var t = a(this, e).delete(e);
4
+ return this.size -= t ? 1 : 0, t;
4
5
  }
5
6
  export {
6
- e as default
7
+ i as default
7
8
  };
package/index103.js CHANGED
@@ -1,8 +1,7 @@
1
- import s from "./index121.js";
2
- function h(a, e) {
3
- var t = s(this, a), i = t.size;
4
- return t.set(a, e), this.size += t.size == i ? 0 : 1, this;
1
+ import a from "./index125.js";
2
+ function r(t) {
3
+ return a(this, t).get(t);
5
4
  }
6
5
  export {
7
- h as default
6
+ r as default
8
7
  };
package/index104.js CHANGED
@@ -1,9 +1,7 @@
1
- import e from "./index77.js";
2
- import u from "./index35.js";
3
- function l(r, s, t) {
4
- var a = s(r);
5
- return u(r) ? a : e(a, t(r));
1
+ import t from "./index125.js";
2
+ function e(a) {
3
+ return t(this, a).has(a);
6
4
  }
7
5
  export {
8
- l as default
6
+ e as default
9
7
  };