@aplus-frontend/ui 6.26.3 → 6.26.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 (78) hide show
  1. package/es/src/ag-grid/hooks/use-virtual-config.d.ts +5 -0
  2. package/es/src/ag-grid/hooks/use-virtual-config.mjs +25 -0
  3. package/es/src/ag-grid/index.vue.mjs +225 -206
  4. package/es/src/ag-grid/interface.d.ts +22 -1
  5. package/es/src/ag-grid/theme.mjs +4 -3
  6. package/es/src/ap-field/select/index.vue.d.ts +51 -21
  7. package/es/src/ap-field/select/index.vue.mjs +51 -49
  8. package/es/src/ap-field/select/read.vue2.mjs +4 -1
  9. package/es/src/ap-field/tree-select/index.vue.d.ts +29 -21
  10. package/es/src/ap-field/tree-select/index.vue.mjs +11 -9
  11. package/es/src/ap-field/tree-select/read.vue2.mjs +7 -5
  12. package/es/src/ap-form/ap-form.vue.d.ts +28 -2
  13. package/es/src/ap-form/ap-form.vue2.mjs +8 -7
  14. package/es/src/ap-form/drawer-form/index.vue.d.ts +22 -0
  15. package/es/src/ap-form/drawer-form/index.vue.mjs +1 -0
  16. package/es/src/ap-form/items/select/index.vue.d.ts +64 -28
  17. package/es/src/ap-form/items/tree-select/index.vue.d.ts +40 -28
  18. package/es/src/ap-form/modal-form/index.vue.d.ts +22 -0
  19. package/es/src/ap-form/modal-form/index.vue.mjs +31 -30
  20. package/es/src/ap-form/search-form/index.vue.d.ts +24 -2
  21. package/es/src/ap-form/search-form/index.vue.mjs +72 -68
  22. package/es/src/ap-modal/interface.d.ts +10 -3
  23. package/es/src/ap-modal/utils/createModalStream.mjs +67 -58
  24. package/es/src/ap-table/constants.d.ts +52 -28
  25. package/es/src/business/ap-value-select-card/index.vue2.mjs +81 -90
  26. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +11 -0
  27. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +11 -0
  28. package/es/src/config-provider/config-provider-props.d.ts +14 -1
  29. package/es/src/config-provider/config-provider.d.ts +31 -1
  30. package/es/src/config-provider/hooks/use-global-config.d.ts +14 -1
  31. package/es/src/config-provider/index.d.ts +52 -1
  32. package/es/src/utils/config-provider-preset.d.ts +11 -1
  33. package/es/src/version.d.ts +1 -1
  34. package/es/src/version.mjs +1 -1
  35. package/es/src/work-order-modal/work-order-modal.vue.d.ts +11 -0
  36. package/lib/src/ag-grid/hooks/use-virtual-config.d.ts +5 -0
  37. package/lib/src/ag-grid/hooks/use-virtual-config.js +1 -0
  38. package/lib/src/ag-grid/index.vue.js +1 -1
  39. package/lib/src/ag-grid/interface.d.ts +22 -1
  40. package/lib/src/ag-grid/theme.js +1 -1
  41. package/lib/src/ap-field/select/index.vue.d.ts +51 -21
  42. package/lib/src/ap-field/select/index.vue.js +1 -1
  43. package/lib/src/ap-field/select/read.vue2.js +1 -1
  44. package/lib/src/ap-field/tree-select/index.vue.d.ts +29 -21
  45. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  46. package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
  47. package/lib/src/ap-form/ap-form.vue.d.ts +28 -2
  48. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  49. package/lib/src/ap-form/drawer-form/index.vue.d.ts +22 -0
  50. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  51. package/lib/src/ap-form/items/select/index.vue.d.ts +64 -28
  52. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +40 -28
  53. package/lib/src/ap-form/modal-form/index.vue.d.ts +22 -0
  54. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  55. package/lib/src/ap-form/search-form/index.vue.d.ts +24 -2
  56. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  57. package/lib/src/ap-modal/interface.d.ts +10 -3
  58. package/lib/src/ap-modal/utils/createModalStream.js +1 -1
  59. package/lib/src/ap-table/constants.d.ts +52 -28
  60. package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
  61. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +11 -0
  62. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +11 -0
  63. package/lib/src/config-provider/config-provider-props.d.ts +14 -1
  64. package/lib/src/config-provider/config-provider.d.ts +31 -1
  65. package/lib/src/config-provider/hooks/use-global-config.d.ts +14 -1
  66. package/lib/src/config-provider/index.d.ts +52 -1
  67. package/lib/src/utils/config-provider-preset.d.ts +11 -1
  68. package/lib/src/version.d.ts +1 -1
  69. package/lib/src/version.js +1 -1
  70. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +11 -0
  71. package/package.json +3 -3
  72. package/theme/ag-grid/index.css +5 -0
  73. package/theme/ag-grid/index.less +12 -0
  74. package/theme/ap-pro-card/index.css +5 -5
  75. package/theme/ap-pro-card/index.less +5 -5
  76. package/theme/ap-value-select-card/index.css +1 -1
  77. package/theme/ap-value-select-card/index.less +2 -1
  78. package/theme/index.css +11 -6
@@ -1,7 +1,7 @@
1
1
  import { useToken as a } from "@aplus-frontend/antdv/es/theme/internal";
2
2
  import { themeQuartz as n } from "ag-grid-community";
3
3
  import { computed as d } from "vue";
4
- const p = (r, e) => {
4
+ const m = (r, e) => {
5
5
  const [, t] = a();
6
6
  return d(() => {
7
7
  const c = r.value === "mini", o = t.value;
@@ -16,10 +16,11 @@ const p = (r, e) => {
16
16
  rowBorder: { color: o.colorBorderSecondary },
17
17
  headerRowBorder: { color: o.colorBorderSecondary },
18
18
  selectedRowBackgroundColor: o.controlItemBgActive,
19
- checkboxCheckedBackgroundColor: o.colorPrimary
19
+ checkboxCheckedBackgroundColor: o.colorPrimary,
20
+ rowHoverColor: "var(--ap-color-bg-2)"
20
21
  });
21
22
  });
22
23
  };
23
24
  export {
24
- p as useTheme
25
+ m as useTheme
25
26
  };
@@ -50,6 +50,15 @@ declare function __VLS_template(): {
50
50
  type: BooleanConstructor;
51
51
  default: boolean;
52
52
  };
53
+ showArrow: {
54
+ type: BooleanConstructor;
55
+ default: boolean;
56
+ };
57
+ variant: {
58
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
59
+ default: "filled" | "outlined" | "borderless" | "underlined";
60
+ };
61
+ maxCount: NumberConstructor;
53
62
  transitionName: StringConstructor;
54
63
  choiceTransitionName: {
55
64
  type: PropType<"">;
@@ -132,6 +141,7 @@ declare function __VLS_template(): {
132
141
  clearIcon: VueTypeValidableDef<any>;
133
142
  options: PropType<DefaultOptionType[]>;
134
143
  onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
144
+ prefix: VueTypeValidableDef<any>;
135
145
  onSearch: PropType<(value: string) => void>;
136
146
  fieldNames: PropType<FieldNames>;
137
147
  dropdownStyle: {
@@ -165,10 +175,6 @@ declare function __VLS_template(): {
165
175
  onDropdownVisibleChange: {
166
176
  type: PropType<(open: boolean) => void>;
167
177
  };
168
- showArrow: {
169
- type: BooleanConstructor;
170
- default: any;
171
- };
172
178
  onPopupScroll: PropType<(e: UIEvent) => void>;
173
179
  menuItemSelectedIcon: VueTypeValidableDef<any>;
174
180
  listItemHeight: NumberConstructor;
@@ -202,6 +208,7 @@ declare function __VLS_template(): {
202
208
  virtual: boolean;
203
209
  dropdownMatchSelectWidth: number | boolean;
204
210
  loading: boolean;
211
+ variant: "filled" | "outlined" | "borderless" | "underlined";
205
212
  bordered: boolean;
206
213
  defaultValue: SelectValue;
207
214
  status: "" | "error" | "warning";
@@ -212,11 +219,11 @@ declare function __VLS_template(): {
212
219
  placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
213
220
  showSearch: boolean;
214
221
  choiceTransitionName: "";
215
- showArrow: boolean;
216
222
  autoClearSearchValue: boolean;
217
223
  filterOption: boolean | FilterFunc<DefaultOptionType>;
218
224
  defaultActiveFirstOption: boolean;
219
225
  labelInValue: boolean;
226
+ showArrow: boolean;
220
227
  }, true, {}, CustomSlotsType<{
221
228
  notFoundContent: any;
222
229
  suffixIcon: any;
@@ -230,6 +237,7 @@ declare function __VLS_template(): {
230
237
  maxTagPlaceholder: any;
231
238
  optionLabel: any;
232
239
  default: any;
240
+ prefix: any;
233
241
  }>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
234
242
  P: {};
235
243
  B: {};
@@ -261,6 +269,15 @@ declare function __VLS_template(): {
261
269
  type: BooleanConstructor;
262
270
  default: boolean;
263
271
  };
272
+ showArrow: {
273
+ type: BooleanConstructor;
274
+ default: boolean;
275
+ };
276
+ variant: {
277
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
278
+ default: "filled" | "outlined" | "borderless" | "underlined";
279
+ };
280
+ maxCount: NumberConstructor;
264
281
  transitionName: StringConstructor;
265
282
  choiceTransitionName: {
266
283
  type: PropType<"">;
@@ -343,6 +360,7 @@ declare function __VLS_template(): {
343
360
  clearIcon: VueTypeValidableDef<any>;
344
361
  options: PropType<DefaultOptionType[]>;
345
362
  onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
363
+ prefix: VueTypeValidableDef<any>;
346
364
  onSearch: PropType<(value: string) => void>;
347
365
  fieldNames: PropType<FieldNames>;
348
366
  dropdownStyle: {
@@ -376,10 +394,6 @@ declare function __VLS_template(): {
376
394
  onDropdownVisibleChange: {
377
395
  type: PropType<(open: boolean) => void>;
378
396
  };
379
- showArrow: {
380
- type: BooleanConstructor;
381
- default: any;
382
- };
383
397
  onPopupScroll: PropType<(e: UIEvent) => void>;
384
398
  menuItemSelectedIcon: VueTypeValidableDef<any>;
385
399
  listItemHeight: NumberConstructor;
@@ -413,6 +427,7 @@ declare function __VLS_template(): {
413
427
  virtual: boolean;
414
428
  dropdownMatchSelectWidth: number | boolean;
415
429
  loading: boolean;
430
+ variant: "filled" | "outlined" | "borderless" | "underlined";
416
431
  bordered: boolean;
417
432
  defaultValue: SelectValue;
418
433
  status: "" | "error" | "warning";
@@ -423,11 +438,11 @@ declare function __VLS_template(): {
423
438
  placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
424
439
  showSearch: boolean;
425
440
  choiceTransitionName: "";
426
- showArrow: boolean;
427
441
  autoClearSearchValue: boolean;
428
442
  filterOption: boolean | FilterFunc<DefaultOptionType>;
429
443
  defaultActiveFirstOption: boolean;
430
444
  labelInValue: boolean;
445
+ showArrow: boolean;
431
446
  }> | null;
432
447
  };
433
448
  rootEl: any;
@@ -453,8 +468,8 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
453
468
  lazy: boolean;
454
469
  allowClear: boolean;
455
470
  defaultOpen: boolean;
456
- showSearch: boolean;
457
471
  showArrow: boolean;
472
+ showSearch: boolean;
458
473
  autoClearSearchValue: boolean;
459
474
  defaultActiveFirstOption: boolean;
460
475
  labelInValue: boolean;
@@ -487,6 +502,15 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
487
502
  type: BooleanConstructor;
488
503
  default: boolean;
489
504
  };
505
+ showArrow: {
506
+ type: BooleanConstructor;
507
+ default: boolean;
508
+ };
509
+ variant: {
510
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
511
+ default: "filled" | "outlined" | "borderless" | "underlined";
512
+ };
513
+ maxCount: NumberConstructor;
490
514
  transitionName: StringConstructor;
491
515
  choiceTransitionName: {
492
516
  type: PropType<"">;
@@ -569,6 +593,7 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
569
593
  clearIcon: VueTypeValidableDef<any>;
570
594
  options: PropType<DefaultOptionType[]>;
571
595
  onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
596
+ prefix: VueTypeValidableDef<any>;
572
597
  onSearch: PropType<(value: string) => void>;
573
598
  fieldNames: PropType<FieldNames>;
574
599
  dropdownStyle: {
@@ -602,10 +627,6 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
602
627
  onDropdownVisibleChange: {
603
628
  type: PropType<(open: boolean) => void>;
604
629
  };
605
- showArrow: {
606
- type: BooleanConstructor;
607
- default: any;
608
- };
609
630
  onPopupScroll: PropType<(e: UIEvent) => void>;
610
631
  menuItemSelectedIcon: VueTypeValidableDef<any>;
611
632
  listItemHeight: NumberConstructor;
@@ -639,6 +660,7 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
639
660
  virtual: boolean;
640
661
  dropdownMatchSelectWidth: number | boolean;
641
662
  loading: boolean;
663
+ variant: "filled" | "outlined" | "borderless" | "underlined";
642
664
  bordered: boolean;
643
665
  defaultValue: SelectValue;
644
666
  status: "" | "error" | "warning";
@@ -649,11 +671,11 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
649
671
  placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
650
672
  showSearch: boolean;
651
673
  choiceTransitionName: "";
652
- showArrow: boolean;
653
674
  autoClearSearchValue: boolean;
654
675
  filterOption: boolean | FilterFunc<DefaultOptionType>;
655
676
  defaultActiveFirstOption: boolean;
656
677
  labelInValue: boolean;
678
+ showArrow: boolean;
657
679
  }, true, {}, CustomSlotsType<{
658
680
  notFoundContent: any;
659
681
  suffixIcon: any;
@@ -667,6 +689,7 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
667
689
  maxTagPlaceholder: any;
668
690
  optionLabel: any;
669
691
  default: any;
692
+ prefix: any;
670
693
  }>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
671
694
  P: {};
672
695
  B: {};
@@ -698,6 +721,15 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
698
721
  type: BooleanConstructor;
699
722
  default: boolean;
700
723
  };
724
+ showArrow: {
725
+ type: BooleanConstructor;
726
+ default: boolean;
727
+ };
728
+ variant: {
729
+ type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
730
+ default: "filled" | "outlined" | "borderless" | "underlined";
731
+ };
732
+ maxCount: NumberConstructor;
701
733
  transitionName: StringConstructor;
702
734
  choiceTransitionName: {
703
735
  type: PropType<"">;
@@ -780,6 +812,7 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
780
812
  clearIcon: VueTypeValidableDef<any>;
781
813
  options: PropType<DefaultOptionType[]>;
782
814
  onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
815
+ prefix: VueTypeValidableDef<any>;
783
816
  onSearch: PropType<(value: string) => void>;
784
817
  fieldNames: PropType<FieldNames>;
785
818
  dropdownStyle: {
@@ -813,10 +846,6 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
813
846
  onDropdownVisibleChange: {
814
847
  type: PropType<(open: boolean) => void>;
815
848
  };
816
- showArrow: {
817
- type: BooleanConstructor;
818
- default: any;
819
- };
820
849
  onPopupScroll: PropType<(e: UIEvent) => void>;
821
850
  menuItemSelectedIcon: VueTypeValidableDef<any>;
822
851
  listItemHeight: NumberConstructor;
@@ -850,6 +879,7 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
850
879
  virtual: boolean;
851
880
  dropdownMatchSelectWidth: number | boolean;
852
881
  loading: boolean;
882
+ variant: "filled" | "outlined" | "borderless" | "underlined";
853
883
  bordered: boolean;
854
884
  defaultValue: SelectValue;
855
885
  status: "" | "error" | "warning";
@@ -860,11 +890,11 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
860
890
  placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
861
891
  showSearch: boolean;
862
892
  choiceTransitionName: "";
863
- showArrow: boolean;
864
893
  autoClearSearchValue: boolean;
865
894
  filterOption: boolean | FilterFunc<DefaultOptionType>;
866
895
  defaultActiveFirstOption: boolean;
867
896
  labelInValue: boolean;
897
+ showArrow: boolean;
868
898
  }> | null;
869
899
  }, any>;
870
900
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1,8 +1,8 @@
1
- import { defineComponent as M, ref as g, onMounted as D, watch as R, computed as p, unref as a, createElementBlock as z, createBlock as E, openBlock as S, toDisplayString as U, mergeProps as K, createSlots as H, renderList as $, withCtx as w, renderSlot as j, normalizeProps as W, guardReactiveProps as Y, createVNode as G } from "vue";
2
- import { debounce as J, isFunction as B, isArray as Q, isNil as X, omit as Z } from "lodash-unified";
3
- import { Select as ee, Spin as oe } from "@aplus-frontend/antdv";
1
+ import { defineComponent as M, ref as g, onMounted as D, watch as R, computed as p, unref as a, createElementBlock as z, createBlock as E, openBlock as S, toDisplayString as U, mergeProps as K, createSlots as H, renderList as $, withCtx as B, renderSlot as j, normalizeProps as W, guardReactiveProps as Y, createVNode as G } from "vue";
2
+ import { debounce as J, isFunction as C, isArray as Q, isNil as X, omit as Z } from "lodash-unified";
3
+ import { Select as ee, Spin as te } from "@aplus-frontend/antdv";
4
4
  import "../../hooks/index.mjs";
5
- import { useDefaultPlaceholder as te } from "../hooks/use-default-placeholder.mjs";
5
+ import { useDefaultPlaceholder as oe } from "../hooks/use-default-placeholder.mjs";
6
6
  import { useSelectOptions as le, SELECT_ALL_VALUE_KEY as f } from "./use-select-options.mjs";
7
7
  import { useControllableValue as ae } from "../../hooks/useControllableValue.mjs";
8
8
  const ne = { key: 0 }, fe = /* @__PURE__ */ M({
@@ -18,6 +18,9 @@ const ne = { key: 0 }, fe = /* @__PURE__ */ M({
18
18
  itemIcon: {},
19
19
  size: {},
20
20
  bordered: { type: Boolean, default: void 0 },
21
+ showArrow: { type: Boolean, default: void 0 },
22
+ variant: {},
23
+ maxCount: {},
21
24
  transitionName: {},
22
25
  choiceTransitionName: {},
23
26
  popupClassName: {},
@@ -56,6 +59,7 @@ const ne = { key: 0 }, fe = /* @__PURE__ */ M({
56
59
  clearIcon: {},
57
60
  options: {},
58
61
  onDeselect: {},
62
+ prefix: {},
59
63
  fieldNames: {},
60
64
  dropdownStyle: {},
61
65
  dropdownRender: {},
@@ -71,7 +75,6 @@ const ne = { key: 0 }, fe = /* @__PURE__ */ M({
71
75
  optionLabelRender: {},
72
76
  onClear: {},
73
77
  onDropdownVisibleChange: {},
74
- showArrow: { type: Boolean, default: void 0 },
75
78
  onPopupScroll: {},
76
79
  menuItemSelectedIcon: {},
77
80
  listItemHeight: {},
@@ -97,42 +100,42 @@ const ne = { key: 0 }, fe = /* @__PURE__ */ M({
97
100
  searchDelay: { default: 300 }
98
101
  },
99
102
  emits: ["update:value"],
100
- setup(C, { expose: F, emit: b }) {
103
+ setup(w, { expose: F, emit: b }) {
101
104
  let r = 0;
102
- const o = C, N = J((e) => {
103
- if (!B(o.request))
105
+ const t = w, N = J((e) => {
106
+ if (!C(t.request))
104
107
  return;
105
108
  r += 1;
106
109
  const l = r;
107
- s([]), n.value = !0, o.request(e).then((t) => {
108
- r === l && (s(t), n.value = !1);
110
+ s([]), n.value = !0, t.request(e).then((o) => {
111
+ r === l && (s(o), n.value = !1);
109
112
  });
110
- }, o.searchDelay), O = (e, l) => {
111
- const t = o.fieldNames?.label || "label";
112
- return typeof l?.[t] == "string" && l[t].toLowerCase().indexOf(e.toLowerCase()) > -1;
113
- }, { options: u, updateOptions: s } = le(o), m = g(), n = g(o?.loading || !1), A = b;
113
+ }, t.searchDelay), O = (e, l) => {
114
+ const o = t.fieldNames?.label || "label";
115
+ return typeof l?.[o] == "string" && l[o].toLowerCase().indexOf(e.toLowerCase()) > -1;
116
+ }, { options: u, updateOptions: s } = le(t), m = g(), n = g(t?.loading || !1), x = b;
114
117
  async function d(e = !0) {
115
- if (!B(o.request))
118
+ if (!C(t.request))
116
119
  return;
117
120
  n.value = !0, r += 1;
118
121
  const l = r;
119
122
  try {
120
123
  e && s([]);
121
- const t = await o.request(void 0, o.params);
124
+ const o = await t.request(void 0, t.params);
122
125
  if (l !== r)
123
126
  return;
124
- s(t);
127
+ s(o);
125
128
  } finally {
126
129
  n.value = !1;
127
130
  }
128
131
  }
129
- function V(e) {
130
- o.onFocus?.(e), o.refetchOnFocus && r > 0 && !n.value && d(!0);
132
+ function I(e) {
133
+ t.onFocus?.(e), t.refetchOnFocus && r > 0 && !n.value && d(!0);
131
134
  }
132
135
  D(() => {
133
- o.lazy || d();
136
+ t.lazy || d();
134
137
  }), R(
135
- () => o.params,
138
+ () => t.params,
136
139
  () => {
137
140
  d();
138
141
  },
@@ -140,30 +143,29 @@ const ne = { key: 0 }, fe = /* @__PURE__ */ M({
140
143
  deep: !0
141
144
  }
142
145
  );
143
- const { value: c, updateValue: v } = ae(o, A), x = te("Select", o), I = p(() => {
146
+ const { value: c, updateValue: v } = ae(t, x), V = oe("Select", t), A = p(() => {
144
147
  const e = a(c);
145
148
  if (!e)
146
- return o.emptyText;
147
- const l = o.fieldNames?.label || "label", t = o.fieldNames?.value || "value";
149
+ return t.emptyText;
150
+ const l = t.fieldNames?.label || "label", o = t.fieldNames?.value || "value";
148
151
  return Q(e) ? e.map(
149
- (i) => a(u).find((q) => q[t] === i)?.[l]
150
- ).filter(Boolean).join("、") || o.emptyText : a(u).find(
151
- (i) => i[t] === e
152
- )?.[l] || o.emptyText;
152
+ (i) => a(u).find((q) => q[o] === i)?.[l]
153
+ ).filter(Boolean).join("、") || t.emptyText : a(u).find(
154
+ (i) => i[o] === e
155
+ )?.[l] || t.emptyText;
153
156
  }), _ = p(() => {
154
- const e = !!o?.showSearch, l = o.searchMode;
155
- let t = {};
156
- return e && (t = l === "request" ? {
157
- showArrow: !1,
157
+ const e = !!t?.showSearch, l = t.searchMode;
158
+ let o = {};
159
+ return e && (o = l === "request" ? {
158
160
  defaultActiveFirstOption: !1,
159
161
  onSearch: N,
160
162
  notFoundContent: n.value ? void 0 : null,
161
- filterOption: !1
163
+ filterOption: !1,
164
+ suffixIcon: null
162
165
  } : {
163
- showArrow: !0,
164
- filterOption: X(o?.filterOption) ? O : o?.filterOption
166
+ filterOption: X(t?.filterOption) ? O : t?.filterOption
165
167
  }), {
166
- ...Z(o, [
168
+ ...Z(t, [
167
169
  "mode",
168
170
  "value",
169
171
  "onUpdate:value",
@@ -173,25 +175,25 @@ const ne = { key: 0 }, fe = /* @__PURE__ */ M({
173
175
  "onFocus",
174
176
  "onBeforeSelect"
175
177
  ]),
176
- placeholder: a(x),
177
- ...t
178
+ placeholder: a(V),
179
+ ...o
178
180
  };
179
181
  }), y = p(
180
- () => u.value.map((e) => e[o.fieldNames?.value || "value"]).filter((e) => e !== f)
182
+ () => u.value.map((e) => e[t.fieldNames?.value || "value"]).filter((e) => e !== f)
181
183
  ), P = p(() => {
182
- if (!o.multiple || !o.addAll)
184
+ if (!t.multiple || !t.addAll)
183
185
  return a(c);
184
186
  if (u.value.some(
185
- (e) => e[o.fieldNames?.value || "value"] === f
187
+ (e) => e[t.fieldNames?.value || "value"] === f
186
188
  )) {
187
189
  const e = a(y), l = a(c) || [];
188
- if (e.length && e.every((t) => l?.includes(t)))
190
+ if (e.length && e.every((o) => l?.includes(o)))
189
191
  return [f];
190
192
  }
191
193
  return a(c);
192
194
  });
193
195
  function k(e) {
194
- return o.multiple && e.includes(f) ? v(a(y)) : v(e);
196
+ return t.multiple && e.includes(f) ? v(a(y)) : v(e);
195
197
  }
196
198
  function L() {
197
199
  m.value?.focus();
@@ -203,7 +205,7 @@ const ne = { key: 0 }, fe = /* @__PURE__ */ M({
203
205
  focus: L,
204
206
  blur: T,
205
207
  request: d
206
- }), (e, l) => e.mode === "read" ? (S(), z("span", ne, U(I.value), 1)) : (S(), E(a(ee), K({
208
+ }), (e, l) => e.mode === "read" ? (S(), z("span", ne, U(A.value), 1)) : (S(), E(a(ee), K({
207
209
  key: 1,
208
210
  ref_key: "selectRef",
209
211
  ref: m,
@@ -214,18 +216,18 @@ const ne = { key: 0 }, fe = /* @__PURE__ */ M({
214
216
  options: a(u),
215
217
  loading: n.value,
216
218
  "onUpdate:value": k,
217
- onFocus: V
219
+ onFocus: I
218
220
  }), H({ _: 2 }, [
219
- $(e.$slots, (t, h) => ({
221
+ $(e.$slots, (o, h) => ({
220
222
  name: h,
221
- fn: w((i) => [
223
+ fn: B((i) => [
222
224
  j(e.$slots, h, W(Y(i || {})))
223
225
  ])
224
226
  })),
225
227
  n.value ? {
226
228
  name: "notFoundContent",
227
- fn: w(() => [
228
- G(a(oe), { size: "small" })
229
+ fn: B(() => [
230
+ G(a(te), { size: "small" })
229
231
  ]),
230
232
  key: "0"
231
233
  } : void 0
@@ -13,6 +13,9 @@ const f = { key: 0 }, C = /* @__PURE__ */ i({
13
13
  itemIcon: {},
14
14
  size: {},
15
15
  bordered: { type: Boolean },
16
+ showArrow: { type: Boolean },
17
+ variant: {},
18
+ maxCount: {},
16
19
  transitionName: {},
17
20
  choiceTransitionName: {},
18
21
  popupClassName: {},
@@ -51,6 +54,7 @@ const f = { key: 0 }, C = /* @__PURE__ */ i({
51
54
  clearIcon: {},
52
55
  options: {},
53
56
  onDeselect: {},
57
+ prefix: {},
54
58
  fieldNames: {},
55
59
  dropdownStyle: {},
56
60
  dropdownRender: {},
@@ -66,7 +70,6 @@ const f = { key: 0 }, C = /* @__PURE__ */ i({
66
70
  optionLabelRender: {},
67
71
  onClear: {},
68
72
  onDropdownVisibleChange: {},
69
- showArrow: { type: Boolean },
70
73
  onPopupScroll: {},
71
74
  menuItemSelectedIcon: {},
72
75
  listItemHeight: {},
@@ -159,7 +159,9 @@ declare function __VLS_template(): {
159
159
  id: StringConstructor;
160
160
  clearIcon: VueTypeValidableDef<any>;
161
161
  notFoundContent: VueTypeValidableDef<any>;
162
+ maxCount: NumberConstructor;
162
163
  onDeselect: PropType<SelectHandler<unknown, BaseOptionType>>;
164
+ prefix: VueTypeValidableDef<any>;
163
165
  onSearch: {
164
166
  type: PropType<(value: string) => void>;
165
167
  };
@@ -218,10 +220,6 @@ declare function __VLS_template(): {
218
220
  getRawInputElement: {
219
221
  type: PropType<() => any>;
220
222
  };
221
- showArrow: {
222
- type: BooleanConstructor;
223
- default: any;
224
- };
225
223
  onPopupScroll: PropType<(e: UIEvent) => void>;
226
224
  listItemHeight: NumberConstructor;
227
225
  inputValue: StringConstructor;
@@ -233,6 +231,10 @@ declare function __VLS_template(): {
233
231
  type: BooleanConstructor;
234
232
  default: any;
235
233
  };
234
+ showArrow: {
235
+ type: BooleanConstructor;
236
+ default: any;
237
+ };
236
238
  showCheckedStrategy: {
237
239
  type: PropType<CheckedStrategy>;
238
240
  };
@@ -287,9 +289,9 @@ declare function __VLS_template(): {
287
289
  replaceFields: FieldNames;
288
290
  treeCheckable: boolean;
289
291
  showSearch: boolean;
290
- showArrow: boolean;
291
292
  autoClearSearchValue: boolean;
292
293
  labelInValue: boolean;
294
+ showArrow: boolean;
293
295
  treeDefaultExpandAll: boolean;
294
296
  treeLine: boolean | {
295
297
  showLeafIcon: boolean;
@@ -436,7 +438,9 @@ declare function __VLS_template(): {
436
438
  id: StringConstructor;
437
439
  clearIcon: VueTypeValidableDef<any>;
438
440
  notFoundContent: VueTypeValidableDef<any>;
441
+ maxCount: NumberConstructor;
439
442
  onDeselect: PropType<SelectHandler<unknown, BaseOptionType>>;
443
+ prefix: VueTypeValidableDef<any>;
440
444
  onSearch: {
441
445
  type: PropType<(value: string) => void>;
442
446
  };
@@ -495,10 +499,6 @@ declare function __VLS_template(): {
495
499
  getRawInputElement: {
496
500
  type: PropType<() => any>;
497
501
  };
498
- showArrow: {
499
- type: BooleanConstructor;
500
- default: any;
501
- };
502
502
  onPopupScroll: PropType<(e: UIEvent) => void>;
503
503
  listItemHeight: NumberConstructor;
504
504
  inputValue: StringConstructor;
@@ -510,6 +510,10 @@ declare function __VLS_template(): {
510
510
  type: BooleanConstructor;
511
511
  default: any;
512
512
  };
513
+ showArrow: {
514
+ type: BooleanConstructor;
515
+ default: any;
516
+ };
513
517
  showCheckedStrategy: {
514
518
  type: PropType<CheckedStrategy>;
515
519
  };
@@ -564,9 +568,9 @@ declare function __VLS_template(): {
564
568
  replaceFields: FieldNames;
565
569
  treeCheckable: boolean;
566
570
  showSearch: boolean;
567
- showArrow: boolean;
568
571
  autoClearSearchValue: boolean;
569
572
  labelInValue: boolean;
573
+ showArrow: boolean;
570
574
  treeDefaultExpandAll: boolean;
571
575
  treeLine: boolean | {
572
576
  showLeafIcon: boolean;
@@ -600,8 +604,8 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
600
604
  dropdownMatchSelectWidth: number | boolean;
601
605
  allowClear: boolean;
602
606
  defaultOpen: boolean;
603
- showSearch: boolean;
604
607
  showArrow: boolean;
608
+ showSearch: boolean;
605
609
  autoClearSearchValue: boolean;
606
610
  labelInValue: boolean;
607
611
  treeCheckable: boolean;
@@ -728,7 +732,9 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
728
732
  id: StringConstructor;
729
733
  clearIcon: VueTypeValidableDef<any>;
730
734
  notFoundContent: VueTypeValidableDef<any>;
735
+ maxCount: NumberConstructor;
731
736
  onDeselect: PropType<SelectHandler<unknown, BaseOptionType>>;
737
+ prefix: VueTypeValidableDef<any>;
732
738
  onSearch: {
733
739
  type: PropType<(value: string) => void>;
734
740
  };
@@ -787,10 +793,6 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
787
793
  getRawInputElement: {
788
794
  type: PropType<() => any>;
789
795
  };
790
- showArrow: {
791
- type: BooleanConstructor;
792
- default: any;
793
- };
794
796
  onPopupScroll: PropType<(e: UIEvent) => void>;
795
797
  listItemHeight: NumberConstructor;
796
798
  inputValue: StringConstructor;
@@ -802,6 +804,10 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
802
804
  type: BooleanConstructor;
803
805
  default: any;
804
806
  };
807
+ showArrow: {
808
+ type: BooleanConstructor;
809
+ default: any;
810
+ };
805
811
  showCheckedStrategy: {
806
812
  type: PropType<CheckedStrategy>;
807
813
  };
@@ -856,9 +862,9 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
856
862
  replaceFields: FieldNames;
857
863
  treeCheckable: boolean;
858
864
  showSearch: boolean;
859
- showArrow: boolean;
860
865
  autoClearSearchValue: boolean;
861
866
  labelInValue: boolean;
867
+ showArrow: boolean;
862
868
  treeDefaultExpandAll: boolean;
863
869
  treeLine: boolean | {
864
870
  showLeafIcon: boolean;
@@ -1005,7 +1011,9 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
1005
1011
  id: StringConstructor;
1006
1012
  clearIcon: VueTypeValidableDef<any>;
1007
1013
  notFoundContent: VueTypeValidableDef<any>;
1014
+ maxCount: NumberConstructor;
1008
1015
  onDeselect: PropType<SelectHandler<unknown, BaseOptionType>>;
1016
+ prefix: VueTypeValidableDef<any>;
1009
1017
  onSearch: {
1010
1018
  type: PropType<(value: string) => void>;
1011
1019
  };
@@ -1064,10 +1072,6 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
1064
1072
  getRawInputElement: {
1065
1073
  type: PropType<() => any>;
1066
1074
  };
1067
- showArrow: {
1068
- type: BooleanConstructor;
1069
- default: any;
1070
- };
1071
1075
  onPopupScroll: PropType<(e: UIEvent) => void>;
1072
1076
  listItemHeight: NumberConstructor;
1073
1077
  inputValue: StringConstructor;
@@ -1079,6 +1083,10 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
1079
1083
  type: BooleanConstructor;
1080
1084
  default: any;
1081
1085
  };
1086
+ showArrow: {
1087
+ type: BooleanConstructor;
1088
+ default: any;
1089
+ };
1082
1090
  showCheckedStrategy: {
1083
1091
  type: PropType<CheckedStrategy>;
1084
1092
  };
@@ -1133,9 +1141,9 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
1133
1141
  replaceFields: FieldNames;
1134
1142
  treeCheckable: boolean;
1135
1143
  showSearch: boolean;
1136
- showArrow: boolean;
1137
1144
  autoClearSearchValue: boolean;
1138
1145
  labelInValue: boolean;
1146
+ showArrow: boolean;
1139
1147
  treeDefaultExpandAll: boolean;
1140
1148
  treeLine: boolean | {
1141
1149
  showLeafIcon: boolean;