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