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