bm-admin-ui 1.0.90-alpha → 1.0.91-alpha

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 (73) hide show
  1. package/es/components/attachment/index.d.ts +3 -3
  2. package/es/components/attachment/src/attachment.vue.d.ts +3 -3
  3. package/es/components/breadcrumb/index.d.ts +7 -7
  4. package/es/components/breadcrumb/src/breadcrumb.vue.d.ts +7 -7
  5. package/es/components/button/index.d.ts +6 -6
  6. package/es/components/button/src/button.vue.d.ts +6 -6
  7. package/es/components/edit-form/index.d.ts +4 -4
  8. package/es/components/edit-form/index.js +1 -1
  9. package/es/components/edit-form/src/edit-form.vue.d.ts +4 -4
  10. package/es/components/feedback/index.d.ts +12 -12
  11. package/es/components/feedback/src/bmAlert.vue.d.ts +6 -6
  12. package/es/components/feedback/src/bmModal.vue.d.ts +6 -6
  13. package/es/components/float-table/index.js +54 -62
  14. package/es/components/flow-designer/index.js +1 -1
  15. package/es/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +8 -8
  16. package/es/components/form-create/index.js +1 -1
  17. package/es/components/search-filter/index.js +35 -14
  18. package/es/components/search-filter/src/form-select-all.vue.d.ts +21 -6
  19. package/es/components/search-filter/src/search-reset-btn.vue.d.ts +3 -3
  20. package/es/components/select-all/index.d.ts +6 -6
  21. package/es/components/select-all/index.js +1 -0
  22. package/es/components/select-all/src/selectAll.vue.d.ts +6 -6
  23. package/es/components/staffs-selector/index.d.ts +8 -8
  24. package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +8 -8
  25. package/es/components/videoView/index.d.ts +1 -1
  26. package/es/components/videoView/src/videoView.vue.d.ts +1 -1
  27. package/lib/components/attachment/index.d.ts +3 -3
  28. package/lib/components/attachment/src/attachment.vue.d.ts +3 -3
  29. package/lib/components/breadcrumb/index.d.ts +7 -7
  30. package/lib/components/breadcrumb/src/breadcrumb.vue.d.ts +7 -7
  31. package/lib/components/button/index.d.ts +6 -6
  32. package/lib/components/button/src/button.vue.d.ts +6 -6
  33. package/lib/components/edit-form/index.d.ts +4 -4
  34. package/lib/components/edit-form/index.js +1 -1
  35. package/lib/components/edit-form/src/edit-form.vue.d.ts +4 -4
  36. package/lib/components/feedback/index.d.ts +12 -12
  37. package/lib/components/feedback/src/bmAlert.vue.d.ts +6 -6
  38. package/lib/components/feedback/src/bmModal.vue.d.ts +6 -6
  39. package/lib/components/float-table/index.js +54 -62
  40. package/lib/components/flow-designer/index.js +1 -1
  41. package/lib/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +8 -8
  42. package/lib/components/form-create/index.js +1 -1
  43. package/lib/components/search-filter/index.js +35 -14
  44. package/lib/components/search-filter/src/form-select-all.vue.d.ts +21 -6
  45. package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +3 -3
  46. package/lib/components/select-all/index.d.ts +6 -6
  47. package/lib/components/select-all/index.js +1 -0
  48. package/lib/components/select-all/src/selectAll.vue.d.ts +6 -6
  49. package/lib/components/staffs-selector/index.d.ts +8 -8
  50. package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +8 -8
  51. package/lib/components/videoView/index.d.ts +1 -1
  52. package/lib/components/videoView/src/videoView.vue.d.ts +1 -1
  53. package/package.json +34 -34
  54. package/types/components/attachment/index.d.ts +3 -3
  55. package/types/components/attachment/src/attachment.vue.d.ts +3 -3
  56. package/types/components/breadcrumb/index.d.ts +7 -7
  57. package/types/components/breadcrumb/src/breadcrumb.vue.d.ts +7 -7
  58. package/types/components/button/index.d.ts +6 -6
  59. package/types/components/button/src/button.vue.d.ts +6 -6
  60. package/types/components/edit-form/index.d.ts +4 -4
  61. package/types/components/edit-form/src/edit-form.vue.d.ts +4 -4
  62. package/types/components/feedback/index.d.ts +12 -12
  63. package/types/components/feedback/src/bmAlert.vue.d.ts +6 -6
  64. package/types/components/feedback/src/bmModal.vue.d.ts +6 -6
  65. package/types/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +8 -8
  66. package/types/components/search-filter/src/form-select-all.vue.d.ts +21 -6
  67. package/types/components/search-filter/src/search-reset-btn.vue.d.ts +3 -3
  68. package/types/components/select-all/index.d.ts +6 -6
  69. package/types/components/select-all/src/selectAll.vue.d.ts +6 -6
  70. package/types/components/staffs-selector/index.d.ts +8 -8
  71. package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +8 -8
  72. package/types/components/videoView/index.d.ts +1 -1
  73. package/types/components/videoView/src/videoView.vue.d.ts +1 -1
@@ -4,7 +4,7 @@ import { Empty } from 'ant-design-vue';
4
4
  import { VXETable } from 'vxe-table';
5
5
 
6
6
  /**!
7
- * Sortable 1.15.0
7
+ * Sortable 1.14.0
8
8
  * @author RubaXa <trash@rubaxa.org>
9
9
  * @author owenm <owen23355@gmail.com>
10
10
  * @license MIT
@@ -132,7 +132,7 @@ function _objectWithoutProperties(source, excluded) {
132
132
  return target;
133
133
  }
134
134
 
135
- var version = "1.15.0";
135
+ var version = "1.14.0";
136
136
 
137
137
  function userAgent(pattern) {
138
138
  if (typeof window !== 'undefined' && window.navigator) {
@@ -1053,11 +1053,11 @@ supportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in
1053
1053
  return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;
1054
1054
  },
1055
1055
 
1056
- /**
1057
- * Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.
1058
- * @param {Number} x X position
1059
- * @param {Number} y Y position
1060
- * @return {HTMLElement} Element of the first found nearest Sortable
1056
+ /**
1057
+ * Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.
1058
+ * @param {Number} x X position
1059
+ * @param {Number} y Y position
1060
+ * @return {HTMLElement} Element of the first found nearest Sortable
1061
1061
  */
1062
1062
  _detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
1063
1063
  var ret;
@@ -1123,7 +1123,7 @@ _detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
1123
1123
  }; // #1184 fix - Prevent click event on fallback if dragged but item not changed position
1124
1124
 
1125
1125
 
1126
- if (documentExists && !ChromeForAndroid) {
1126
+ if (documentExists) {
1127
1127
  document.addEventListener('click', function (evt) {
1128
1128
  if (ignoreNextClick) {
1129
1129
  evt.preventDefault();
@@ -1165,10 +1165,10 @@ var _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {
1165
1165
  dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
1166
1166
  }
1167
1167
  };
1168
- /**
1169
- * @class Sortable
1170
- * @param {HTMLElement} el
1171
- * @param {Object} [options]
1168
+ /**
1169
+ * @class Sortable
1170
+ * @param {HTMLElement} el
1171
+ * @param {Object} [options]
1172
1172
  */
1173
1173
 
1174
1174
 
@@ -1742,7 +1742,6 @@ Sortable.prototype =
1742
1742
 
1743
1743
  if (!Sortable.eventCanceled) {
1744
1744
  cloneEl = clone(dragEl);
1745
- cloneEl.removeAttribute("id");
1746
1745
  cloneEl.draggable = false;
1747
1746
  cloneEl.style['will-change'] = '';
1748
1747
 
@@ -1984,14 +1983,7 @@ Sortable.prototype =
1984
1983
 
1985
1984
  if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
1986
1985
  capture();
1987
-
1988
- if (elLastChild && elLastChild.nextSibling) {
1989
- // the last draggable element is not the last node
1990
- el.insertBefore(dragEl, elLastChild.nextSibling);
1991
- } else {
1992
- el.appendChild(dragEl);
1993
- }
1994
-
1986
+ el.appendChild(dragEl);
1995
1987
  parentEl = el; // actualization
1996
1988
 
1997
1989
  changed();
@@ -2314,9 +2306,9 @@ Sortable.prototype =
2314
2306
  }
2315
2307
  },
2316
2308
 
2317
- /**
2318
- * Serializes the item into an array of string.
2319
- * @returns {String[]}
2309
+ /**
2310
+ * Serializes the item into an array of string.
2311
+ * @returns {String[]}
2320
2312
  */
2321
2313
  toArray: function toArray() {
2322
2314
  var order = [],
@@ -2337,9 +2329,9 @@ Sortable.prototype =
2337
2329
  return order;
2338
2330
  },
2339
2331
 
2340
- /**
2341
- * Sorts the elements according to the array.
2342
- * @param {String[]} order order of the items
2332
+ /**
2333
+ * Sorts the elements according to the array.
2334
+ * @param {String[]} order order of the items
2343
2335
  */
2344
2336
  sort: function sort(order, useAnimation) {
2345
2337
  var items = {},
@@ -2361,29 +2353,29 @@ Sortable.prototype =
2361
2353
  useAnimation && this.animateAll();
2362
2354
  },
2363
2355
 
2364
- /**
2365
- * Save the current sorting
2356
+ /**
2357
+ * Save the current sorting
2366
2358
  */
2367
2359
  save: function save() {
2368
2360
  var store = this.options.store;
2369
2361
  store && store.set && store.set(this);
2370
2362
  },
2371
2363
 
2372
- /**
2373
- * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
2374
- * @param {HTMLElement} el
2375
- * @param {String} [selector] default: `options.draggable`
2376
- * @returns {HTMLElement|null}
2364
+ /**
2365
+ * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
2366
+ * @param {HTMLElement} el
2367
+ * @param {String} [selector] default: `options.draggable`
2368
+ * @returns {HTMLElement|null}
2377
2369
  */
2378
2370
  closest: function closest$1(el, selector) {
2379
2371
  return closest(el, selector || this.options.draggable, this.el, false);
2380
2372
  },
2381
2373
 
2382
- /**
2383
- * Set/get option
2384
- * @param {string} name
2385
- * @param {*} [value]
2386
- * @returns {*}
2374
+ /**
2375
+ * Set/get option
2376
+ * @param {string} name
2377
+ * @param {*} [value]
2378
+ * @returns {*}
2387
2379
  */
2388
2380
  option: function option(name, value) {
2389
2381
  var options = this.options;
@@ -2405,8 +2397,8 @@ Sortable.prototype =
2405
2397
  }
2406
2398
  },
2407
2399
 
2408
- /**
2409
- * Destroy
2400
+ /**
2401
+ * Destroy
2410
2402
  */
2411
2403
  destroy: function destroy() {
2412
2404
  pluginEvent('destroy', this);
@@ -2583,11 +2575,11 @@ function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, inv
2583
2575
 
2584
2576
  return 0;
2585
2577
  }
2586
- /**
2587
- * Gets the direction dragEl must be swapped relative to target in order to make it
2588
- * seem that dragEl has been "inserted" into that element's position
2589
- * @param {HTMLElement} target The target whose position dragEl is being inserted at
2590
- * @return {Number} Direction dragEl must be swapped
2578
+ /**
2579
+ * Gets the direction dragEl must be swapped relative to target in order to make it
2580
+ * seem that dragEl has been "inserted" into that element's position
2581
+ * @param {HTMLElement} target The target whose position dragEl is being inserted at
2582
+ * @return {Number} Direction dragEl must be swapped
2591
2583
  */
2592
2584
 
2593
2585
 
@@ -2598,11 +2590,11 @@ function _getInsertDirection(target) {
2598
2590
  return -1;
2599
2591
  }
2600
2592
  }
2601
- /**
2602
- * Generate id
2603
- * @param {HTMLElement} el
2604
- * @returns {String}
2605
- * @private
2593
+ /**
2594
+ * Generate id
2595
+ * @param {HTMLElement} el
2596
+ * @returns {String}
2597
+ * @private
2606
2598
  */
2607
2599
 
2608
2600
 
@@ -2666,18 +2658,18 @@ Sortable.utils = {
2666
2658
  detectDirection: _detectDirection,
2667
2659
  getChild: getChild
2668
2660
  };
2669
- /**
2670
- * Get the Sortable instance of an element
2671
- * @param {HTMLElement} element The element
2672
- * @return {Sortable|undefined} The instance of Sortable
2661
+ /**
2662
+ * Get the Sortable instance of an element
2663
+ * @param {HTMLElement} element The element
2664
+ * @return {Sortable|undefined} The instance of Sortable
2673
2665
  */
2674
2666
 
2675
2667
  Sortable.get = function (element) {
2676
2668
  return element[expando];
2677
2669
  };
2678
- /**
2679
- * Mount a plugin to Sortable
2680
- * @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
2670
+ /**
2671
+ * Mount a plugin to Sortable
2672
+ * @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
2681
2673
  */
2682
2674
 
2683
2675
 
@@ -2696,10 +2688,10 @@ Sortable.mount = function () {
2696
2688
  PluginManager.mount(plugin);
2697
2689
  });
2698
2690
  };
2699
- /**
2700
- * Create sortable instance
2701
- * @param {HTMLElement} el
2702
- * @param {Object} [options]
2691
+ /**
2692
+ * Create sortable instance
2693
+ * @param {HTMLElement} el
2694
+ * @param {Object} [options]
2703
2695
  */
2704
2696
 
2705
2697
 
@@ -257,7 +257,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
257
257
  createElementVNode("span", {
258
258
  class: normalizeClass(["opeator", { active: __props.isCustom }])
259
259
  }, [
260
- createCommentVNode(' <CopyOutlined\r\n @click.stop="\r\n () => {\r\n copyCallback()\r\n }\r\n " />&nbsp;\u6682\u65F6\u5173\u95ED\u590D\u5236\u8282\u70B9 '),
260
+ createCommentVNode(' <CopyOutlined\n @click.stop="\n () => {\n copyCallback()\n }\n " />&nbsp;\u6682\u65F6\u5173\u95ED\u590D\u5236\u8282\u70B9 '),
261
261
  createVNode(unref(CloseOutlined), {
262
262
  onClick: _cache[0] || (_cache[0] = () => {
263
263
  __props.deleteCallback();
@@ -50,9 +50,9 @@ declare const _default: import("vue").DefineComponent<{
50
50
  default: () => void;
51
51
  };
52
52
  }>> & {}>>;
53
- readonly CloseOutlined: import("@ant-design/icons-vue/lib/icons/CloseOutlined").CloseOutlinedIconType;
54
- readonly RightOutlined: import("@ant-design/icons-vue/lib/icons/RightOutlined").RightOutlinedIconType;
55
- readonly Tag: {
53
+ CloseOutlined: import("@ant-design/icons-vue/lib/icons/CloseOutlined").CloseOutlinedIconType;
54
+ RightOutlined: import("@ant-design/icons-vue/lib/icons/RightOutlined").RightOutlinedIconType;
55
+ Tag: {
56
56
  new (...args: any[]): {
57
57
  $: import("vue").ComponentInternalInstance;
58
58
  $data: {};
@@ -88,8 +88,8 @@ declare const _default: import("vue").DefineComponent<{
88
88
  $slots: Readonly<{
89
89
  [name: string]: import("vue").Slot;
90
90
  }>;
91
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
92
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
91
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
92
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
93
93
  $emit: (event: string, ...args: any[]) => void;
94
94
  $el: any;
95
95
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
@@ -114,7 +114,7 @@ declare const _default: import("vue").DefineComponent<{
114
114
  }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
115
115
  visible: boolean;
116
116
  closable: boolean;
117
- }, {}, string> & {
117
+ }> & {
118
118
  beforeCreate?: (() => void) | (() => void)[] | undefined;
119
119
  created?: (() => void) | (() => void)[] | undefined;
120
120
  beforeMount?: (() => void) | (() => void)[] | undefined;
@@ -129,7 +129,7 @@ declare const _default: import("vue").DefineComponent<{
129
129
  unmounted?: (() => void) | (() => void)[] | undefined;
130
130
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
131
131
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
132
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[] | undefined;
132
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[] | undefined;
133
133
  };
134
134
  $forceUpdate: () => void;
135
135
  $nextTick: typeof import("vue").nextTick;
@@ -179,7 +179,7 @@ declare const _default: import("vue").DefineComponent<{
179
179
  }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
180
180
  visible: boolean;
181
181
  closable: boolean;
182
- }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
182
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
183
183
  readonly CheckableTag: import("vue").DefineComponent<{
184
184
  prefixCls: StringConstructor;
185
185
  checked: {
@@ -18693,7 +18693,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
18693
18693
  debounceFetch("");
18694
18694
  return (_ctx, _cache) => {
18695
18695
  return openBlock(), createElementBlock(Fragment, null, [
18696
- createCommentVNode(' <Input\r\n v-model:value="inputValue"\r\n placeholder="\u8BF7\u8F93\u5165"\r\n :disabled="disabled"\r\n @change="debounceFn($event.target.value)"\r\n ></Input> '),
18696
+ createCommentVNode(' <Input\n v-model:value="inputValue"\n placeholder="\u8BF7\u8F93\u5165"\n :disabled="disabled"\n @change="debounceFn($event.target.value)"\n ></Input> '),
18697
18697
  createVNode(unref(Select), {
18698
18698
  value: __props.value,
18699
18699
  placeholder: "\u8BF7\u9009\u62E9",
@@ -175,14 +175,19 @@ const _hoisted_3 = ["onClick"];
175
175
  const _hoisted_4 = /* @__PURE__ */ createElementVNode("span", { class: "checkbox-label" }, "\u5168\u9009", -1);
176
176
  const _hoisted_5 = ["onClick"];
177
177
  const _hoisted_6 = /* @__PURE__ */ createElementVNode("span", { class: "checkbox-label" }, "\u53CD\u9009", -1);
178
- const _hoisted_7 = { class: "blue" };
178
+ const _hoisted_7 = { key: 0 };
179
+ const _hoisted_8 = { class: "blue" };
179
180
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
180
181
  __name: "form-select-all",
181
182
  props: {
182
183
  modelValue: {
183
184
  type: Array || String || Number || void 0
184
185
  },
185
- disabled: Boolean
186
+ disabled: Boolean,
187
+ showSelectAll: {
188
+ type: Boolean,
189
+ default: true
190
+ }
186
191
  },
187
192
  emits: ["onSelectAll", "onChange", "update:modelValue"],
188
193
  setup(__props, { emit }) {
@@ -192,7 +197,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
192
197
  search: {
193
198
  indeterminate: false,
194
199
  checkedAll: false,
195
- checkedReverse: false
200
+ checkedReverse: false,
201
+ searchList: []
196
202
  }
197
203
  });
198
204
  let selectValue = ref([]);
@@ -204,7 +210,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
204
210
  state.search = {
205
211
  indeterminate: false,
206
212
  checkedAll: false,
207
- checkedReverse: false
213
+ checkedReverse: false,
214
+ searchList: []
208
215
  };
209
216
  }
210
217
  },
@@ -214,17 +221,20 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
214
221
  );
215
222
  const selectAll = (e) => {
216
223
  let key = "value";
224
+ let list = [];
217
225
  if (instance?.attrs.fieldNames || instance?.attrs["field-names"])
218
226
  key = (instance?.attrs).fieldNames?.value || (instance?.attrs)["field-names"].value;
219
227
  state.search.checkedAll = !state.search.checkedAll;
220
228
  state.search.indeterminate = false;
221
229
  state.search.checkedReverse = false;
230
+ if (state.search.searchList.length > 0)
231
+ list = state.search.searchList;
232
+ else
233
+ list = instance?.attrs.options;
222
234
  if (state.search.checkedAll) {
223
- selectValue.value = (instance?.attrs.options).map(
224
- (v) => {
225
- return v[key];
226
- }
227
- );
235
+ selectValue.value = list.map((v) => {
236
+ return v[key];
237
+ });
228
238
  } else {
229
239
  selectValue.value = [];
230
240
  }
@@ -267,6 +277,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
267
277
  option
268
278
  });
269
279
  };
280
+ const onSearch = (val) => {
281
+ if (val) {
282
+ const key = (instance?.attrs).optionFilterProp || (instance?.attrs)["option-filter-prop"] || "value";
283
+ const list = (instance?.attrs).options.filter((ele) => {
284
+ return String(ele[key]).indexOf(String(val)) > -1;
285
+ });
286
+ state.search.searchList = list;
287
+ }
288
+ };
270
289
  const VNodes = (_, { attrs }) => {
271
290
  return h(attrs.vnodes);
272
291
  };
@@ -279,10 +298,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
279
298
  class: "bm-select search"
280
299
  }, _ctx.$attrs, {
281
300
  mode: "multiple",
301
+ class: { w200: !props.showSelectAll },
282
302
  disabled: props.disabled,
283
303
  placeholder: unref(instance)?.attrs.placeholder ? unref(instance)?.attrs.placeholder : "\u8BF7\u9009\u62E9",
284
304
  "get-popup-container": (nodes) => nodes.parentNode,
285
- onChange
305
+ onChange,
306
+ onSearch
286
307
  }), {
287
308
  dropdownRender: withCtx(({ menuNode: menu }) => [
288
309
  createElementVNode("div", _hoisted_1, [
@@ -314,16 +335,16 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
314
335
  ]),
315
336
  _: 1
316
337
  }),
317
- createElementVNode("div", null, [
338
+ __props.showSelectAll ? (openBlock(), createElementBlock("div", _hoisted_7, [
318
339
  createTextVNode(" \u5DF2\u9009\u62E9 "),
319
- createElementVNode("span", _hoisted_7, toDisplayString(unref(selectValue)?.length || 0), 1),
340
+ createElementVNode("span", _hoisted_8, toDisplayString(unref(selectValue)?.length || 0), 1),
320
341
  createTextVNode(" \u9879 ")
321
- ])
342
+ ])) : createCommentVNode("v-if", true)
322
343
  ]),
323
344
  createVNode(VNodes, { vnodes: menu }, null, 8, ["vnodes"])
324
345
  ]),
325
346
  _: 1
326
- }, 16, ["value", "disabled", "placeholder", "get-popup-container"]);
347
+ }, 16, ["value", "class", "disabled", "placeholder", "get-popup-container"]);
327
348
  };
328
349
  }
329
350
  });
@@ -3,6 +3,10 @@ declare const _default: import("vue").DefineComponent<{
3
3
  type: ArrayConstructor;
4
4
  };
5
5
  disabled: BooleanConstructor;
6
+ showSelectAll: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
6
10
  }, {
7
11
  instance: import("vue").ComponentInternalInstance | null;
8
12
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -10,6 +14,10 @@ declare const _default: import("vue").DefineComponent<{
10
14
  type: ArrayConstructor;
11
15
  };
12
16
  disabled: BooleanConstructor;
17
+ showSelectAll: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
13
21
  }>> & {
14
22
  onOnChange?: ((...args: any[]) => any) | undefined;
15
23
  onOnSelectAll?: ((...args: any[]) => any) | undefined;
@@ -20,6 +28,7 @@ declare const _default: import("vue").DefineComponent<{
20
28
  indeterminate: boolean;
21
29
  checkedAll: boolean;
22
30
  checkedReverse: boolean;
31
+ searchList: never[];
23
32
  };
24
33
  };
25
34
  emit: (event: "onChange" | "onSelectAll" | "update:modelValue", ...args: any[]) => void;
@@ -27,12 +36,13 @@ declare const _default: import("vue").DefineComponent<{
27
36
  selectAll: (e: any) => void;
28
37
  reverseAll: (e: any) => false | undefined;
29
38
  onChange: (value: any, option: any) => void;
39
+ onSearch: (val: string | number) => void;
30
40
  VNodes: (_: any, { attrs }: {
31
41
  attrs: any;
32
42
  }) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
33
43
  [key: string]: any;
34
44
  }>;
35
- readonly ASelect: {
45
+ ASelect: {
36
46
  new (...args: any[]): {
37
47
  $: import("vue").ComponentInternalInstance;
38
48
  $data: {};
@@ -212,8 +222,8 @@ declare const _default: import("vue").DefineComponent<{
212
222
  $slots: Readonly<{
213
223
  [name: string]: import("vue").Slot;
214
224
  }>;
215
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
216
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
225
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
226
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
217
227
  $emit: (event: string, ...args: any[]) => void;
218
228
  $el: any;
219
229
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
@@ -382,7 +392,7 @@ declare const _default: import("vue").DefineComponent<{
382
392
  defaultActiveFirstOption: boolean;
383
393
  labelInValue: boolean;
384
394
  bordered: boolean;
385
- }, {}, string> & {
395
+ }> & {
386
396
  beforeCreate?: (() => void) | (() => void)[] | undefined;
387
397
  created?: (() => void) | (() => void)[] | undefined;
388
398
  beforeMount?: (() => void) | (() => void)[] | undefined;
@@ -397,7 +407,7 @@ declare const _default: import("vue").DefineComponent<{
397
407
  unmounted?: (() => void) | (() => void)[] | undefined;
398
408
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
399
409
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
400
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[] | undefined;
410
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[] | undefined;
401
411
  };
402
412
  $forceUpdate: () => void;
403
413
  $nextTick: typeof import("vue").nextTick;
@@ -721,7 +731,7 @@ declare const _default: import("vue").DefineComponent<{
721
731
  defaultActiveFirstOption: boolean;
722
732
  labelInValue: boolean;
723
733
  bordered: boolean;
724
- }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
734
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
725
735
  readonly Option: import("ant-design-vue/lib/vc-select/Option").OptionFC;
726
736
  readonly OptGroup: import("ant-design-vue/lib/vc-select/OptGroup").OptionGroupFC;
727
737
  readonly SECRET_COMBOBOX_MODE_DO_NOT_USE: "SECRET_COMBOBOX_MODE_DO_NOT_USE";
@@ -731,11 +741,16 @@ declare const _default: import("vue").DefineComponent<{
731
741
  type: ArrayConstructor;
732
742
  };
733
743
  disabled: BooleanConstructor;
744
+ showSelectAll: {
745
+ type: BooleanConstructor;
746
+ default: boolean;
747
+ };
734
748
  }>> & {
735
749
  onOnChange?: ((...args: any[]) => any) | undefined;
736
750
  onOnSelectAll?: ((...args: any[]) => any) | undefined;
737
751
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
738
752
  }, {
739
753
  disabled: boolean;
754
+ showSelectAll: boolean;
740
755
  }>;
741
756
  export default _default;
@@ -113,9 +113,9 @@ declare const _default: import("vue").DefineComponent<{
113
113
  handleSubmit: () => void;
114
114
  handleReset: () => void;
115
115
  handleSetDefault: () => void;
116
- readonly DownOutlined: import("@ant-design/icons-vue/lib/icons/DownOutlined").DownOutlinedIconType;
117
- readonly UpOutlined: import("@ant-design/icons-vue/lib/icons/UpOutlined").UpOutlinedIconType;
118
- readonly SearchOutlined: import("@ant-design/icons-vue/lib/icons/SearchOutlined").SearchOutlinedIconType;
116
+ DownOutlined: import("@ant-design/icons-vue/lib/icons/DownOutlined").DownOutlinedIconType;
117
+ UpOutlined: import("@ant-design/icons-vue/lib/icons/UpOutlined").UpOutlinedIconType;
118
+ SearchOutlined: import("@ant-design/icons-vue/lib/icons/SearchOutlined").SearchOutlinedIconType;
119
119
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("submit" | "reset" | "expand" | "setDefault")[], "submit" | "reset" | "expand" | "setDefault", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
120
120
  showExpandBtn: {
121
121
  type: BooleanConstructor;
@@ -42,7 +42,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
42
42
  }) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
43
43
  [key: string]: any;
44
44
  }>;
45
- readonly ASelect: {
45
+ ASelect: {
46
46
  new (...args: any[]): {
47
47
  $: import("vue").ComponentInternalInstance;
48
48
  $data: {};
@@ -222,8 +222,8 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
222
222
  $slots: Readonly<{
223
223
  [name: string]: import("vue").Slot;
224
224
  }>;
225
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
226
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
225
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
226
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
227
227
  $emit: (event: string, ...args: any[]) => void;
228
228
  $el: any;
229
229
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
@@ -392,7 +392,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
392
392
  defaultActiveFirstOption: boolean;
393
393
  labelInValue: boolean;
394
394
  bordered: boolean;
395
- }, {}, string> & {
395
+ }> & {
396
396
  beforeCreate?: (() => void) | (() => void)[] | undefined;
397
397
  created?: (() => void) | (() => void)[] | undefined;
398
398
  beforeMount?: (() => void) | (() => void)[] | undefined;
@@ -407,7 +407,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
407
407
  unmounted?: (() => void) | (() => void)[] | undefined;
408
408
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
409
409
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
410
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[] | undefined;
410
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[] | undefined;
411
411
  };
412
412
  $forceUpdate: () => void;
413
413
  $nextTick: typeof import("vue").nextTick;
@@ -731,7 +731,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
731
731
  defaultActiveFirstOption: boolean;
732
732
  labelInValue: boolean;
733
733
  bordered: boolean;
734
- }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
734
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
735
735
  readonly Option: import("ant-design-vue/lib/vc-select/Option").OptionFC;
736
736
  readonly OptGroup: import("ant-design-vue/lib/vc-select/OptGroup").OptionGroupFC;
737
737
  readonly SECRET_COMBOBOX_MODE_DO_NOT_USE: "SECRET_COMBOBOX_MODE_DO_NOT_USE";
@@ -121,6 +121,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
121
121
  const onSearch = (val) => {
122
122
  if (val) {
123
123
  const key = (instance?.attrs).optionFilterProp || (instance?.attrs)["option-filter-prop"] || "value";
124
+ console.log(key);
124
125
  const list = (instance?.attrs).options.filter((ele) => {
125
126
  return String(ele[key]).indexOf(String(val)) > -1;
126
127
  });
@@ -42,7 +42,7 @@ declare const _default: import("vue").DefineComponent<{
42
42
  }) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
43
43
  [key: string]: any;
44
44
  }>;
45
- readonly ASelect: {
45
+ ASelect: {
46
46
  new (...args: any[]): {
47
47
  $: import("vue").ComponentInternalInstance;
48
48
  $data: {};
@@ -222,8 +222,8 @@ declare const _default: import("vue").DefineComponent<{
222
222
  $slots: Readonly<{
223
223
  [name: string]: import("vue").Slot;
224
224
  }>;
225
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
226
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
225
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
226
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
227
227
  $emit: (event: string, ...args: any[]) => void;
228
228
  $el: any;
229
229
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
@@ -392,7 +392,7 @@ declare const _default: import("vue").DefineComponent<{
392
392
  defaultActiveFirstOption: boolean;
393
393
  labelInValue: boolean;
394
394
  bordered: boolean;
395
- }, {}, string> & {
395
+ }> & {
396
396
  beforeCreate?: (() => void) | (() => void)[] | undefined;
397
397
  created?: (() => void) | (() => void)[] | undefined;
398
398
  beforeMount?: (() => void) | (() => void)[] | undefined;
@@ -407,7 +407,7 @@ declare const _default: import("vue").DefineComponent<{
407
407
  unmounted?: (() => void) | (() => void)[] | undefined;
408
408
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
409
409
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
410
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[] | undefined;
410
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[] | undefined;
411
411
  };
412
412
  $forceUpdate: () => void;
413
413
  $nextTick: typeof import("vue").nextTick;
@@ -731,7 +731,7 @@ declare const _default: import("vue").DefineComponent<{
731
731
  defaultActiveFirstOption: boolean;
732
732
  labelInValue: boolean;
733
733
  bordered: boolean;
734
- }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
734
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
735
735
  readonly Option: import("ant-design-vue/lib/vc-select/Option").OptionFC;
736
736
  readonly OptGroup: import("ant-design-vue/lib/vc-select/OptGroup").OptionGroupFC;
737
737
  readonly SECRET_COMBOBOX_MODE_DO_NOT_USE: "SECRET_COMBOBOX_MODE_DO_NOT_USE";