@ctzy-web-client/plugin-component-vue 1.0.31 → 1.0.33

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.
@@ -4,7 +4,7 @@ import { useNamespace } from '@ctzy-web-client/web-base-client-vue';
4
4
  import { useEvent } from './events-helpers.mjs';
5
5
  import { useAdvanceOption } from './use-advance-option.mjs';
6
6
  import { pinyin } from 'pinyin-pro';
7
- import './advance-option.vue_vue_type_style_index_0_scoped_4c0fde1d_lang.mjs';
7
+ import './advance-option.vue_vue_type_style_index_0_scoped_1e505c71_lang.mjs';
8
8
  import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
9
9
 
10
10
  // Inject __name helper
@@ -129,12 +129,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
129
129
  !$setup.showLetterAvatarStatus ? (openBlock(), createElementBlock("div", {
130
130
  key: 0,
131
131
  class: normalizeClass($setup.ns.be("option", "content-label")),
132
- style: { "width": "178px" }
132
+ style: { "width": "100%", "min-width": "178px" }
133
133
  }, toDisplayString($setup.currentLabel), 3)) : createCommentVNode("v-if", true),
134
134
  $setup.showLetterAvatarStatus ? (openBlock(), createElementBlock("div", {
135
135
  key: 1,
136
136
  class: normalizeClass($setup.ns.be("option", "content-label")),
137
- style: { "width": "178px", "display": "flex", "align-items": "center" }
137
+ style: { "width": "100%", "min-width": "178px", "display": "flex", "align-items": "center" }
138
138
  }, [
139
139
  createElementVNode("div", {
140
140
  class: "letter-circle",
@@ -159,6 +159,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
159
159
  }, 8, ["class"])) : createCommentVNode("v-if", true)
160
160
  ], 2);
161
161
  }
162
- var BwaAdvanceOption = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4c0fde1d"], ["__file", "advance-option.vue"]]);
162
+ var BwaAdvanceOption = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1e505c71"], ["__file", "advance-option.vue"]]);
163
163
 
164
164
  export { BwaAdvanceOption as default };
@@ -106,8 +106,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
106
106
  const resetColumns = () => {
107
107
  const _dataTable = props.dataTable;
108
108
  _dataTable.resetColumnSort();
109
- const tableColumns = [...displaySearchedColumns.value, ...hiddenSearchedColumns.value];
110
- emit("column-visible-change", tableColumns);
109
+ emit("reset-columns");
111
110
  };
112
111
  const allSearchedColumns = computed(() => {
113
112
  const _search = unref(search);
package/es/index.css ADDED
@@ -0,0 +1 @@
1
+ .letter-circle[data-v-1e505c71]{align-items:center;border-radius:50%;color:#fff;display:flex;font-size:14px;height:24px;justify-content:center;margin-right:8px;width:24px}
@@ -1,11 +1,10 @@
1
- import { defineComponent, ref, onMounted, nextTick, useAttrs, computed, inject, unref, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createVNode, withCtx, createTextVNode, createElementVNode, Fragment, renderList, createBlock, withDirectives, withModifiers, vModelText, renderSlot } from 'vue';
2
- import { ElTooltip, ElTag, ElIcon } from 'element-plus';
1
+ import { defineComponent, ref, onMounted, nextTick, useAttrs, computed, inject, unref, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createVNode, withCtx, createTextVNode, createElementVNode, Fragment, renderList, createBlock, withModifiers, renderSlot } from 'vue';
2
+ import { ElTooltip, ElTag, ElIcon, ElInput } from 'element-plus';
3
3
  import { ArrowUp, ArrowDown } from '@element-plus/icons';
4
4
  import { useService, HttpRequest, useNamespace, filterPanelItemKey } from '@ctzy-web-client/web-base-client-vue';
5
5
  import { dataProps } from '../../hooks/use-data/index.mjs';
6
6
  import BwaAdvanceSelect from '../../advance-select/advance-select.mjs';
7
7
  import BwaAdvanceOption from '../../advance-select/advance-option.mjs';
8
- import './pct-multiple-menu-condition.vue_vue_type_style_index_0_scoped_ca1affd9_lang.mjs';
9
8
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
10
9
 
11
10
  // Inject __name helper
@@ -17,51 +16,7 @@ if (typeof __name === 'undefined') {
17
16
  });
18
17
  }
19
18
  }
20
- const _hoisted_1 = {
21
- key: 0,
22
- style: { "display": "flex", "align-items": "center", "flex-wrap": "wrap", "gap": "4px" }
23
- };
24
- const _hoisted_2 = {
25
- key: 0,
26
- style: { "flex": "1", "min-width": "80px", "position": "relative" }
27
- };
28
- const _hoisted_3 = {
29
- key: 0,
30
- style: { "color": "#999", "cursor": "text" }
31
- };
32
- const _hoisted_4 = {
33
- key: 1,
34
- style: { "color": "#333" }
35
- };
36
- const _hoisted_5 = {
37
- key: 2,
38
- class: "cursor-blink"
39
- };
40
- const _hoisted_6 = {
41
- key: 1,
42
- style: { "display": "flex", "align-items": "center", "justify-content": "space-between", "width": "100%" }
43
- };
44
- const _hoisted_7 = {
45
- key: 1,
46
- style: { "color": "#333" }
47
- };
48
- const _hoisted_8 = {
49
- key: 2,
50
- class: "cursor-blink"
51
- };
52
- const _hoisted_9 = { style: { "flex": "1", "position": "relative", "cursor": "text" } };
53
- const _hoisted_10 = {
54
- key: 1,
55
- style: { "display": "flex", "align-items": "center", "width": "100%" }
56
- };
57
- const _hoisted_11 = {
58
- key: 1,
59
- style: { "color": "#333" }
60
- };
61
- const _hoisted_12 = {
62
- key: 2,
63
- class: "cursor-blink"
64
- };
19
+ const _hoisted_1 = { key: 0 };
65
20
  const __default__ = defineComponent({
66
21
  name: "BwaPctMultipleMenuCondition",
67
22
  __conditionTitle__: "\u591A\u9009\u5217\u8868",
@@ -141,8 +96,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
141
96
  const ns = useNamespace("pctfilterpanel-item");
142
97
  const isShowPopper = ref(false);
143
98
  const isHoverIcon = ref(false);
144
- const isSearchActive = ref(false);
145
- const inputRef = ref(null);
146
99
  const attrs = useAttrs();
147
100
  const showTitle = computed(() => attrs.showTitle);
148
101
  const data = ref([]);
@@ -193,32 +146,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
193
146
  }
194
147
  isShowPopper.value = !isShowPopper.value;
195
148
  };
196
- const handleContentClick = (event) => {
197
- var _a2, _b;
198
- event.stopPropagation();
199
- isShowPopper.value = true;
200
- if (props.showSearch && !((_b = (_a2 = column.value) == null ? void 0 : _a2.componentProps) == null ? void 0 : _b.options)) {
201
- nextTick(() => {
202
- if (inputRef.value) {
203
- inputRef.value.focus();
204
- isSearchActive.value = true;
205
- }
206
- });
207
- }
208
- };
209
- const handleInputFocus = () => {
210
- isSearchActive.value = true;
211
- isShowPopper.value = true;
212
- };
213
- const handleInputBlur = (event) => {
214
- const target = event.relatedTarget;
215
- if (target && target.closest(".bwa-advance-select__popper")) {
216
- return;
217
- }
218
- setTimeout(() => {
219
- isSearchActive.value = false;
220
- }, 200);
221
- };
222
149
  const getData = async (query) => {
223
150
  var _a2;
224
151
  loading.value = true;
@@ -252,21 +179,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
252
179
  }
253
180
  };
254
181
  const search = ref("");
255
- let searchTimeout = null;
256
182
  watch(() => search.value, (val) => {
257
183
  handleFieldSearch(val);
258
- if (searchTimeout) {
259
- clearTimeout(searchTimeout);
260
- }
261
- searchTimeout = setTimeout(() => {
262
- var _a2, _b;
263
- if (val && props.showSearch && !((_b = (_a2 = column.value) == null ? void 0 : _a2.componentProps) == null ? void 0 : _b.options)) {
264
- isShowPopper.value = true;
265
- if (column.value.componentProps) {
266
- getData(val);
267
- }
268
- }
269
- }, 500);
270
184
  });
271
185
  const modelValue = computed({
272
186
  get: () => {
@@ -300,7 +214,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
300
214
  showLetterAvatar: showLetterAvatarStatus.value,
301
215
  multiple: __props.multiple,
302
216
  modelValue: modelValue.value,
303
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => modelValue.value = $event),
217
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => modelValue.value = $event),
304
218
  onSearch: handleFieldSearch,
305
219
  class: normalizeClass(unref(ns).e("options")),
306
220
  onVisibleChange: visibleChange,
@@ -314,197 +228,142 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
314
228
  ref_key: "advanceSelectRef",
315
229
  ref: advanceSelectRef
316
230
  }, {
317
- "reference-content": withCtx(({ selected }) => {
318
- var _a2, _b, _c, _d;
319
- return [
320
- createCommentVNode(" \u591A\u9009\u6A21\u5F0F "),
321
- __props.multiple ? (openBlock(), createElementBlock("div", {
322
- key: 0,
323
- class: normalizeClass(unref(ns).e("content")),
324
- onClick: handleContentClick
325
- }, [
326
- selected && selected.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1, [
327
- createVNode(unref(ElTooltip), {
328
- content: selected[0].label,
329
- placement: "top",
330
- effect: "light",
331
- "append-to": ".bwa-application"
332
- }, {
333
- default: withCtx(() => [
334
- createVNode(unref(ElTag), {
335
- class: normalizeClass(unref(ns).e("tag")),
336
- closable: "",
337
- onClose: ($event) => handleClose(selected[0]),
338
- type: "info"
339
- }, {
340
- default: withCtx(() => [
341
- createTextVNode(toDisplayString(selected[0].label), 1)
342
- ]),
343
- _: 2
344
- }, 1032, ["class", "onClose"])
345
- ]),
346
- _: 2
347
- }, 1032, ["content"]),
348
- createVNode(unref(ElTooltip), {
349
- content: "Bottom center",
350
- placement: "top",
351
- effect: "light",
352
- "append-to": ".bwa-application"
353
- }, {
354
- content: withCtx(() => [
355
- createElementVNode("div", {
356
- class: normalizeClass(unref(ns).e("tag_box"))
357
- }, [
358
- (openBlock(true), createElementBlock(Fragment, null, renderList(selected, (item, index) => {
359
- return openBlock(), createElementBlock(Fragment, null, [
360
- index !== 0 ? (openBlock(), createBlock(unref(ElTag), {
361
- key: 0,
362
- class: normalizeClass(unref(ns).e("tag_details")),
363
- type: "info",
364
- closable: "",
365
- onClose: ($event) => handleClose(item)
366
- }, {
367
- default: withCtx(() => [
368
- createTextVNode(toDisplayString(item.label), 1)
369
- ]),
370
- _: 2
371
- }, 1032, ["class", "onClose"])) : createCommentVNode("v-if", true)
372
- ], 64);
373
- }), 256))
374
- ], 2)
375
- ]),
376
- default: withCtx(() => [
377
- selected.length > 1 ? (openBlock(), createBlock(unref(ElTag), {
378
- key: 0,
379
- class: normalizeClass(unref(ns).e("tag")),
380
- type: "info"
381
- }, {
382
- default: withCtx(() => [
383
- createTextVNode("+" + toDisplayString(selected.length - 1), 1)
384
- ]),
385
- _: 2
386
- }, 1032, ["class"])) : createCommentVNode("v-if", true)
387
- ]),
388
- _: 2
389
- }, 1024),
390
- createCommentVNode(" \u641C\u7D22\u8F93\u5165\u533A\u57DF "),
391
- props.showSearch && !((_a2 = column.value.componentProps) == null ? void 0 : _a2.options) ? (openBlock(), createElementBlock("div", _hoisted_2, [
392
- !isSearchActive.value && !search.value ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(searchPlaceholderStr.value || "\u641C\u7D22"), 1)) : (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(search.value), 1)),
393
- createCommentVNode(" \u95EA\u70C1\u5149\u6807 "),
394
- isSearchActive.value ? (openBlock(), createElementBlock("span", _hoisted_5)) : createCommentVNode("v-if", true),
395
- createCommentVNode(" \u9690\u85CF\u7684\u8F93\u5165\u6846 "),
396
- props.showSearch && !((_b = column.value.componentProps) == null ? void 0 : _b.options) ? withDirectives((openBlock(), createElementBlock("input", {
397
- key: 3,
398
- ref_key: "inputRef",
399
- ref: inputRef,
400
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => search.value = $event),
401
- type: "text",
402
- style: { "position": "absolute", "top": "0", "left": "0", "width": "100%", "height": "100%", "opacity": "0", "cursor": "text" },
403
- onFocus: handleInputFocus,
404
- onBlur: handleInputBlur,
405
- onClick: _cache[1] || (_cache[1] = withModifiers(() => {
406
- }, ["stop"]))
407
- }, null, 544)), [
408
- [vModelText, search.value]
409
- ]) : createCommentVNode("v-if", true)
410
- ])) : createCommentVNode("v-if", true)
411
- ])) : (openBlock(), createElementBlock("div", _hoisted_6, [
412
- createElementVNode("div", {
413
- style: { "flex": "1", "position": "relative", "cursor": "text" },
414
- onClick: handleContentClick
415
- }, [
416
- !isSearchActive.value && !search.value ? (openBlock(), createElementBlock("span", {
417
- key: 0,
418
- class: normalizeClass(unref(ns).e("contentBox_placeholder"))
419
- }, toDisplayString(placeholderStr.value), 3)) : (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(search.value), 1)),
420
- createCommentVNode(" \u95EA\u70C1\u5149\u6807 "),
421
- isSearchActive.value ? (openBlock(), createElementBlock("span", _hoisted_8)) : createCommentVNode("v-if", true),
422
- createCommentVNode(" \u9690\u85CF\u7684\u8F93\u5165\u6846 "),
423
- props.showSearch && !((_c = column.value.componentProps) == null ? void 0 : _c.options) ? withDirectives((openBlock(), createElementBlock("input", {
424
- key: 3,
425
- ref_key: "inputRef",
426
- ref: inputRef,
427
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => search.value = $event),
428
- type: "text",
429
- style: { "position": "absolute", "top": "0", "left": "0", "width": "100%", "height": "100%", "opacity": "0", "cursor": "text" },
430
- onFocus: handleInputFocus,
431
- onBlur: handleInputBlur,
432
- onClick: _cache[3] || (_cache[3] = withModifiers(() => {
433
- }, ["stop"]))
434
- }, null, 544)), [
435
- [vModelText, search.value]
436
- ]) : createCommentVNode("v-if", true)
437
- ])
438
- ])),
439
- createVNode(unref(ElIcon), {
440
- onMouseenter: _cache[4] || (_cache[4] = ($event) => isHoverIcon.value = true),
441
- onMouseleave: _cache[5] || (_cache[5] = ($event) => isHoverIcon.value = false),
442
- onClick: withModifiers(handleIconClick, ["stop"]),
443
- class: normalizeClass(unref(ns).be("option", "selected"))
231
+ "reference-content": withCtx(({ selected }) => [
232
+ __props.multiple ? (openBlock(), createElementBlock("div", {
233
+ key: 0,
234
+ class: normalizeClass(unref(ns).e("content"))
235
+ }, [
236
+ selected && selected.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1, [
237
+ createVNode(unref(ElTooltip), {
238
+ content: selected[0].label,
239
+ placement: "top",
240
+ effect: "light",
241
+ "append-to": ".bwa-application"
444
242
  }, {
445
243
  default: withCtx(() => [
446
- isHoverIcon.value && selected.length > 0 ? (openBlock(), createBlock(_component_CircleClose, {
447
- key: 0,
448
- class: "delete-icon"
449
- })) : isShowPopper.value ? (openBlock(), createBlock(unref(ArrowUp), { key: 1 })) : (openBlock(), createBlock(unref(ArrowDown), { key: 2 }))
244
+ createVNode(unref(ElTag), {
245
+ class: normalizeClass(unref(ns).e("tag")),
246
+ closable: "",
247
+ onClose: ($event) => handleClose(selected[0]),
248
+ type: "info"
249
+ }, {
250
+ default: withCtx(() => [
251
+ createTextVNode(toDisplayString(selected[0].label), 1)
252
+ ]),
253
+ _: 2
254
+ }, 1032, ["class", "onClose"])
450
255
  ]),
451
256
  _: 2
452
- }, 1032, ["class"])
453
- ], 2)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
454
- createCommentVNode(" \u5355\u9009\u6A21\u5F0F "),
455
- createElementVNode("div", {
456
- class: normalizeClass(unref(ns).e("content")),
457
- onClick: handleContentClick
458
- }, [
459
- createElementVNode("div", _hoisted_9, [
460
- createVNode(unref(ElTooltip), {
461
- disabled: !selected.label,
462
- content: selected.label,
463
- placement: "top",
464
- effect: "light",
465
- "append-to": ".bwa-application"
257
+ }, 1032, ["content"]),
258
+ createVNode(unref(ElTooltip), {
259
+ content: "Bottom center",
260
+ placement: "top",
261
+ effect: "light",
262
+ "append-to": ".bwa-application"
263
+ }, {
264
+ content: withCtx(() => [
265
+ createElementVNode("div", {
266
+ class: normalizeClass(unref(ns).e("tag_box"))
267
+ }, [
268
+ (openBlock(true), createElementBlock(Fragment, null, renderList(selected, (item, index) => {
269
+ return openBlock(), createElementBlock(Fragment, null, [
270
+ index !== 0 ? (openBlock(), createBlock(unref(ElTag), {
271
+ key: 0,
272
+ class: normalizeClass(unref(ns).e("tag_details")),
273
+ type: "info",
274
+ closable: "",
275
+ onClose: ($event) => handleClose(item)
276
+ }, {
277
+ default: withCtx(() => [
278
+ createTextVNode(toDisplayString(item.label), 1)
279
+ ]),
280
+ _: 2
281
+ }, 1032, ["class", "onClose"])) : createCommentVNode("v-if", true)
282
+ ], 64);
283
+ }), 256))
284
+ ], 2)
285
+ ]),
286
+ default: withCtx(() => [
287
+ selected.length > 1 ? (openBlock(), createBlock(unref(ElTag), {
288
+ key: 0,
289
+ class: normalizeClass(unref(ns).e("tag")),
290
+ type: "info"
466
291
  }, {
467
292
  default: withCtx(() => [
468
- selected.label ? (openBlock(), createElementBlock("div", {
469
- key: 0,
470
- class: normalizeClass([unref(ns).e("contentBox"), unref(ns).e("contentBox_label")])
471
- }, toDisplayString(selected.label || placeholderStr.value), 3)) : (openBlock(), createElementBlock("div", _hoisted_10, [
472
- !isSearchActive.value && !search.value ? (openBlock(), createElementBlock("span", {
473
- key: 0,
474
- class: normalizeClass(unref(ns).e("contentBox_placeholder"))
475
- }, toDisplayString(placeholderStr.value), 3)) : (openBlock(), createElementBlock("span", _hoisted_11, toDisplayString(search.value), 1)),
476
- createCommentVNode(" \u95EA\u70C1\u5149\u6807 "),
477
- isSearchActive.value ? (openBlock(), createElementBlock("span", _hoisted_12)) : createCommentVNode("v-if", true)
478
- ]))
293
+ createTextVNode("+" + toDisplayString(selected.length - 1), 1)
479
294
  ]),
480
295
  _: 2
481
- }, 1032, ["disabled", "content"]),
482
- createCommentVNode(" \u9690\u85CF\u7684\u8F93\u5165\u6846 "),
483
- props.showSearch && !((_d = column.value.componentProps) == null ? void 0 : _d.options) ? withDirectives((openBlock(), createElementBlock("input", {
484
- key: 0,
485
- ref_key: "inputRef",
486
- ref: inputRef,
487
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => search.value = $event),
488
- type: "text",
489
- style: { "position": "absolute", "top": "0", "left": "0", "width": "100%", "height": "100%", "opacity": "0", "cursor": "text" },
490
- onFocus: handleInputFocus,
491
- onBlur: handleInputBlur,
492
- onClick: _cache[7] || (_cache[7] = withModifiers(() => {
493
- }, ["stop"]))
494
- }, null, 544)), [
495
- [vModelText, search.value]
496
- ]) : createCommentVNode("v-if", true)
296
+ }, 1032, ["class"])) : createCommentVNode("v-if", true)
497
297
  ]),
498
- createVNode(unref(ElIcon), {
499
- class: normalizeClass(unref(ns).be("option", "selected"))
500
- }, {
501
- default: withCtx(() => [
502
- isShowPopper.value ? (openBlock(), createBlock(unref(ArrowUp), { key: 0 })) : (openBlock(), createBlock(unref(ArrowDown), { key: 1 }))
503
- ]),
504
- _: 1
505
- }, 8, ["class"])
506
- ], 2)
507
- ], 2112))
298
+ _: 2
299
+ }, 1024)
300
+ ])) : (openBlock(), createElementBlock("div", {
301
+ key: 1,
302
+ class: normalizeClass(unref(ns).e("contentBox_placeholder"))
303
+ }, toDisplayString(placeholderStr.value), 3)),
304
+ createVNode(unref(ElIcon), {
305
+ onMouseenter: _cache[0] || (_cache[0] = ($event) => isHoverIcon.value = true),
306
+ onMouseleave: _cache[1] || (_cache[1] = ($event) => isHoverIcon.value = false),
307
+ onClick: withModifiers(handleIconClick, ["stop"]),
308
+ class: normalizeClass(unref(ns).be("option", "selected"))
309
+ }, {
310
+ default: withCtx(() => [
311
+ isHoverIcon.value && selected.length > 0 ? (openBlock(), createBlock(_component_CircleClose, {
312
+ key: 0,
313
+ class: "delete-icon"
314
+ })) : isShowPopper.value ? (openBlock(), createBlock(unref(ArrowUp), { key: 1 })) : (openBlock(), createBlock(unref(ArrowDown), { key: 2 }))
315
+ ]),
316
+ _: 2
317
+ }, 1032, ["class"])
318
+ ], 2)) : (openBlock(), createElementBlock("div", {
319
+ key: 1,
320
+ class: normalizeClass(unref(ns).e("content"))
321
+ }, [
322
+ createVNode(unref(ElTooltip), {
323
+ disabled: !selected.label,
324
+ content: selected.label,
325
+ placement: "top",
326
+ effect: "light",
327
+ "append-to": ".bwa-application"
328
+ }, {
329
+ default: withCtx(() => [
330
+ selected.label ? (openBlock(), createElementBlock("div", {
331
+ key: 0,
332
+ class: normalizeClass([unref(ns).e("contentBox"), unref(ns).e("contentBox_label")])
333
+ }, toDisplayString(selected.label || placeholderStr.value), 3)) : (openBlock(), createElementBlock("div", {
334
+ key: 1,
335
+ class: normalizeClass([unref(ns).e("contentBox"), unref(ns).e("contentBox_placeholder")])
336
+ }, toDisplayString(placeholderStr.value), 3))
337
+ ]),
338
+ _: 2
339
+ }, 1032, ["disabled", "content"]),
340
+ createVNode(unref(ElIcon), {
341
+ class: normalizeClass(unref(ns).be("option", "selected"))
342
+ }, {
343
+ default: withCtx(() => [
344
+ isShowPopper.value ? (openBlock(), createBlock(unref(ArrowUp), { key: 0 })) : (openBlock(), createBlock(unref(ArrowDown), { key: 1 }))
345
+ ]),
346
+ _: 1
347
+ }, 8, ["class"])
348
+ ], 2))
349
+ ]),
350
+ contentTop: withCtx(() => {
351
+ var _a2;
352
+ return [
353
+ __props.showSearch && !((_a2 = column.value.componentProps) == null ? void 0 : _a2.options) ? (openBlock(), createElementBlock("div", {
354
+ key: 0,
355
+ class: normalizeClass(unref(ns).e("contentTop"))
356
+ }, [
357
+ createVNode(unref(ElInput), {
358
+ modelValue: search.value,
359
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => search.value = $event),
360
+ class: normalizeClass(unref(ns).e("select")),
361
+ placeholder: searchPlaceholderStr.value,
362
+ type: "text",
363
+ "prefix-icon": "Search",
364
+ clearable: ""
365
+ }, null, 8, ["modelValue", "class", "placeholder"])
366
+ ], 2)) : createCommentVNode("v-if", true)
508
367
  ];
509
368
  }),
510
369
  contentBottom: withCtx(() => [
@@ -524,7 +383,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
524
383
  class: normalizeClass(unref(ns).be("filter", "option"))
525
384
  }, null, 8, ["value", "label", "showLetterAvatar", "class"]);
526
385
  }), 128))
527
- ], true)
386
+ ])
528
387
  ]),
529
388
  _: 3
530
389
  }, 8, ["showLetterAvatar", "multiple", "modelValue", "class", "showSelectIcon", "loading", "width"])
@@ -532,6 +391,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
532
391
  };
533
392
  }
534
393
  });
535
- var PctMultipleMenuCondition = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ca1affd9"], ["__file", "pct-multiple-menu-condition.vue"]]);
394
+ var PctMultipleMenuCondition = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "pct-multiple-menu-condition.vue"]]);
536
395
 
537
396
  export { PctMultipleMenuCondition as default };
@@ -8,7 +8,7 @@ var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
8
8
  var eventsHelpers = require('./events-helpers.js');
9
9
  var useAdvanceOption = require('./use-advance-option.js');
10
10
  var pinyinPro = require('pinyin-pro');
11
- require('./advance-option.vue_vue_type_style_index_0_scoped_4c0fde1d_lang.js');
11
+ require('./advance-option.vue_vue_type_style_index_0_scoped_1e505c71_lang.js');
12
12
  var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
13
13
 
14
14
  // Inject __name helper
@@ -133,12 +133,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
133
133
  !$setup.showLetterAvatarStatus ? (vue.openBlock(), vue.createElementBlock("div", {
134
134
  key: 0,
135
135
  class: vue.normalizeClass($setup.ns.be("option", "content-label")),
136
- style: { "width": "178px" }
136
+ style: { "width": "100%", "min-width": "178px" }
137
137
  }, vue.toDisplayString($setup.currentLabel), 3)) : vue.createCommentVNode("v-if", true),
138
138
  $setup.showLetterAvatarStatus ? (vue.openBlock(), vue.createElementBlock("div", {
139
139
  key: 1,
140
140
  class: vue.normalizeClass($setup.ns.be("option", "content-label")),
141
- style: { "width": "178px", "display": "flex", "align-items": "center" }
141
+ style: { "width": "100%", "min-width": "178px", "display": "flex", "align-items": "center" }
142
142
  }, [
143
143
  vue.createElementVNode("div", {
144
144
  class: "letter-circle",
@@ -163,6 +163,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
163
163
  }, 8, ["class"])) : vue.createCommentVNode("v-if", true)
164
164
  ], 2);
165
165
  }
166
- var BwaAdvanceOption = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4c0fde1d"], ["__file", "advance-option.vue"]]);
166
+ var BwaAdvanceOption = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1e505c71"], ["__file", "advance-option.vue"]]);
167
167
 
168
168
  exports["default"] = BwaAdvanceOption;
@@ -110,8 +110,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
110
110
  const resetColumns = () => {
111
111
  const _dataTable = props.dataTable;
112
112
  _dataTable.resetColumnSort();
113
- const tableColumns = [...displaySearchedColumns.value, ...hiddenSearchedColumns.value];
114
- emit("column-visible-change", tableColumns);
113
+ emit("reset-columns");
115
114
  };
116
115
  const allSearchedColumns = vue.computed(() => {
117
116
  const _search = vue.unref(search);
package/lib/index.css ADDED
@@ -0,0 +1 @@
1
+ .letter-circle[data-v-1e505c71]{align-items:center;border-radius:50%;color:#fff;display:flex;font-size:14px;height:24px;justify-content:center;margin-right:8px;width:24px}