@ctzy-web-client/plugin-component-vue 1.0.23 → 1.0.24
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-operation.mjs +51 -37
- package/es/advance-select/advance-option.mjs +167 -97
- package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.mjs +7 -0
- package/es/advance-select/advance-select.mjs +368 -310
- package/es/advance-select/index.mjs +5 -5
- package/es/application-slot/breadcrumb-item.mjs +20 -17
- package/es/application-slot/header-tools-item.mjs +20 -17
- package/es/breadcrumb-select/breadcrumb-select.mjs +134 -112
- package/es/contextmenu/contextmenu-item.mjs +19 -15
- package/es/contextmenu/contextmenu.mjs +72 -56
- package/es/data-form/data-form-item.mjs +48 -30
- package/es/data-form/data-form.mjs +213 -166
- package/es/data-form/form-components/bwa-date-picker.mjs +51 -39
- package/es/data-form/form-components/bwa-date-time-picker.mjs +56 -44
- package/es/data-form/form-components/bwa-input-float.mjs +48 -37
- package/es/data-form/form-components/bwa-input-integer.mjs +68 -50
- package/es/data-form/form-components/bwa-input.mjs +43 -32
- package/es/data-form/form-components/bwa-multi-select.mjs +40 -29
- package/es/data-form/form-components/bwa-rich-text-tinymce.mjs +554 -218
- package/es/data-form/form-components/bwa-rich-text.mjs +404 -316
- package/es/data-form/form-components/bwa-select.mjs +84 -70
- package/es/data-form/form-components/bwa-textarea.mjs +38 -27
- package/es/data-form/form-components/bwa-upload.mjs +172 -148
- package/es/data-form/form-components/bwa-user-multi-select.mjs +35 -24
- package/es/data-form/form-components/bwa-user-select.mjs +86 -61
- package/es/data-table/data-column-view.mjs +146 -115
- package/es/data-table/data-table-card.mjs +48 -40
- package/es/data-table/data-table-column.mjs +58 -45
- package/es/data-table/data-table.mjs +402 -316
- package/es/datatable-settings/datatable-settings.mjs +329 -254
- package/es/date-range/date-picker.mjs +130 -116
- package/es/date-range/date-range.mjs +215 -161
- package/es/drag-list/drag-item.mjs +56 -42
- package/es/drag-list/drag-list.mjs +60 -47
- package/es/dragable/dragable-item.mjs +23 -18
- package/es/dragable/dragable-operation.mjs +32 -24
- package/es/dragable/dragable.mjs +32 -23
- package/es/filter-panel/conditions/date-range-condition.mjs +50 -40
- package/es/filter-panel/conditions/department-condition/department-condition.mjs +99 -72
- package/es/filter-panel/conditions/department-condition/department-node.mjs +73 -59
- package/es/filter-panel/conditions/input-condition.mjs +90 -76
- package/es/filter-panel/conditions/multi-user-condition.mjs +67 -57
- package/es/filter-panel/conditions/multiple-menu-condition.mjs +54 -35
- package/es/filter-panel/conditions/single-menu-condition.mjs +65 -60
- package/es/filter-panel/conditions/single-user-condition.mjs +67 -57
- package/es/filter-panel/filter-panel-item.mjs +54 -39
- package/es/filter-panel/filter-panel.mjs +153 -135
- package/es/layout/layout.mjs +85 -78
- package/es/menu/menu-item.mjs +67 -52
- package/es/menu/menu.mjs +70 -53
- package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +28 -0
- package/es/panel/panel.mjs +53 -40
- package/es/pct-filter-panel/pct-compents/pct-Input-condition.mjs +74 -63
- package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +76 -67
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +406 -178
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.mjs +153 -138
- package/es/pct-filter-panel/pct-filter-panel-item.mjs +55 -40
- package/es/pct-filter-panel/pct-filter-panel.mjs +247 -227
- package/es/progress/progress-item.mjs +81 -61
- package/es/progress/progress.mjs +78 -64
- package/es/where-filter-panel/where-filter-panel.mjs +15 -12
- package/lib/advance-select/advance-operation.js +50 -36
- package/lib/advance-select/advance-option.js +166 -96
- package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.js +12 -0
- package/lib/advance-select/advance-select.js +366 -308
- package/lib/application-slot/breadcrumb-item.js +19 -16
- package/lib/application-slot/header-tools-item.js +19 -16
- package/lib/breadcrumb-select/breadcrumb-select.js +133 -111
- package/lib/contextmenu/contextmenu-item.js +18 -14
- package/lib/contextmenu/contextmenu.js +71 -55
- package/lib/data-form/data-form-item.js +47 -29
- package/lib/data-form/data-form.js +212 -165
- package/lib/data-form/form-components/bwa-date-picker.js +50 -38
- package/lib/data-form/form-components/bwa-date-time-picker.js +55 -43
- package/lib/data-form/form-components/bwa-input-float.js +47 -36
- package/lib/data-form/form-components/bwa-input-integer.js +67 -49
- package/lib/data-form/form-components/bwa-input.js +42 -31
- package/lib/data-form/form-components/bwa-multi-select.js +39 -28
- package/lib/data-form/form-components/bwa-rich-text-tinymce.js +553 -217
- package/lib/data-form/form-components/bwa-rich-text.js +403 -315
- package/lib/data-form/form-components/bwa-select.js +83 -69
- package/lib/data-form/form-components/bwa-textarea.js +37 -26
- package/lib/data-form/form-components/bwa-upload.js +171 -147
- package/lib/data-form/form-components/bwa-user-multi-select.js +34 -23
- package/lib/data-form/form-components/bwa-user-select.js +85 -60
- package/lib/data-table/data-column-view.js +146 -115
- package/lib/data-table/data-table-card.js +48 -40
- package/lib/data-table/data-table-column.js +57 -44
- package/lib/data-table/data-table.js +401 -315
- package/lib/datatable-settings/datatable-settings.js +328 -253
- package/lib/date-range/date-picker.js +129 -115
- package/lib/date-range/date-range.js +214 -160
- package/lib/drag-list/drag-item.js +55 -41
- package/lib/drag-list/drag-list.js +59 -46
- package/lib/dragable/dragable-item.js +22 -17
- package/lib/dragable/dragable-operation.js +31 -23
- package/lib/dragable/dragable.js +31 -22
- package/lib/filter-panel/conditions/date-range-condition.js +49 -39
- package/lib/filter-panel/conditions/department-condition/department-condition.js +98 -71
- package/lib/filter-panel/conditions/department-condition/department-node.js +72 -58
- package/lib/filter-panel/conditions/input-condition.js +89 -75
- package/lib/filter-panel/conditions/multi-user-condition.js +66 -56
- package/lib/filter-panel/conditions/multiple-menu-condition.js +53 -34
- package/lib/filter-panel/conditions/single-menu-condition.js +64 -59
- package/lib/filter-panel/conditions/single-user-condition.js +66 -56
- package/lib/filter-panel/filter-panel-item.js +53 -38
- package/lib/filter-panel/filter-panel.js +152 -134
- package/lib/layout/layout.js +84 -77
- package/lib/menu/menu-item.js +66 -51
- package/lib/menu/menu.js +69 -52
- package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +32 -0
- package/lib/panel/panel.js +52 -39
- package/lib/pct-filter-panel/pct-compents/pct-Input-condition.js +73 -62
- package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +75 -66
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +405 -177
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.js +152 -137
- package/lib/pct-filter-panel/pct-filter-panel-item.js +54 -39
- package/lib/pct-filter-panel/pct-filter-panel.js +246 -226
- package/lib/progress/progress-item.js +80 -60
- package/lib/progress/progress.js +77 -63
- package/lib/where-filter-panel/where-filter-panel.js +14 -11
- package/package.json +2 -1
- package/src/advance-select/advance-option.vue +64 -13
- package/src/data-form/form-components/bwa-rich-text-tinymce.vue +1 -1
- package/src/datatable-settings/datatable-settings.vue +33 -3
- package/src/date-range/date-picker.vue +1 -1
- package/src/filter-panel/filter-panel.vue +2 -2
- package/src/pct-filter-panel/pct-compents/pct-Input-condition.vue +64 -64
- package/src/pct-filter-panel/pct-compents/pct-date-range-condition.vue +61 -61
- package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +302 -178
- package/src/pct-filter-panel/pct-filter-panel.vue +4 -4
|
@@ -1,43 +1,57 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { inject, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
|
|
2
2
|
import { advanceSelectKey, useNamespace } from '@ctzy-web-client/web-base-client-vue';
|
|
3
3
|
import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
emits: ["click"],
|
|
5
|
+
const _sfc_main = {
|
|
6
|
+
__name: 'advance-operation',
|
|
7
|
+
props: {
|
|
8
|
+
border: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: false,
|
|
11
|
+
},
|
|
12
|
+
type: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: 'button',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
emits: ['click'],
|
|
20
18
|
setup(__props, { emit }) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
19
|
+
|
|
20
|
+
const props = __props;
|
|
21
|
+
|
|
22
|
+
defineOptions({
|
|
23
|
+
name: 'BwaAdvanceOperation',
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
const advanceSelect = inject(advanceSelectKey);
|
|
31
|
+
|
|
32
|
+
const clickHandle = () => {
|
|
33
|
+
if (props.type !== 'button') {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
advanceSelect.hidePoppper();
|
|
38
|
+
|
|
39
|
+
emit('click');
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const ns = useNamespace('advance');
|
|
43
|
+
|
|
44
|
+
return (_ctx, _cache) => {
|
|
45
|
+
return (openBlock(), createElementBlock("div", {
|
|
46
|
+
class: normalizeClass([unref(ns).be('select', 'operation'), unref(ns).is('border', __props.border)]),
|
|
47
|
+
onClick: clickHandle
|
|
48
|
+
}, [
|
|
49
|
+
renderSlot(_ctx.$slots, "default")
|
|
50
|
+
], 2 /* CLASS */))
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
};
|
|
55
|
+
var AdvanceOperation = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"advance-operation.vue"]]);
|
|
42
56
|
|
|
43
57
|
export { AdvanceOperation as default };
|
|
@@ -1,74 +1,141 @@
|
|
|
1
1
|
import 'element-plus';
|
|
2
|
-
import { getCurrentInstance, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, withModifiers, createCommentVNode, createElementVNode, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString, createBlock } from 'vue';
|
|
2
|
+
import { getCurrentInstance, ref, pushScopeId, popScopeId, resolveComponent, openBlock, createElementBlock, normalizeClass, withModifiers, createCommentVNode, createElementVNode, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString, normalizeStyle, createBlock } from 'vue';
|
|
3
3
|
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
|
+
import { pinyin } from 'pinyin-pro';
|
|
7
|
+
import './advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.mjs';
|
|
6
8
|
import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
|
|
7
9
|
|
|
8
|
-
const _sfc_main = {
|
|
9
|
-
name:
|
|
10
|
-
props: {
|
|
11
|
-
label: {
|
|
12
|
-
type: [String, Number, Boolean]
|
|
13
|
-
},
|
|
14
|
-
value: {
|
|
15
|
-
type: null
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
expose: [
|
|
19
|
-
setup(props, { expose }) {
|
|
20
|
-
const instance = getCurrentInstance();
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
10
|
+
const _sfc_main = {
|
|
11
|
+
name: 'BwaAdvanceOption',
|
|
12
|
+
props: {
|
|
13
|
+
label: {
|
|
14
|
+
type: [String, Number, Boolean],
|
|
15
|
+
},
|
|
16
|
+
value: {
|
|
17
|
+
type: null,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
expose: ['currentLabel'],
|
|
21
|
+
setup(props, { expose }) {
|
|
22
|
+
const instance = getCurrentInstance();
|
|
23
|
+
|
|
24
|
+
const ns = useNamespace('advance');
|
|
25
|
+
|
|
26
|
+
const { handleOptionMouseEnter } = useEvent(ns);
|
|
27
|
+
|
|
28
|
+
const { advanceSelect, currentLabel, itemSelected, showSelectIcon, source } =
|
|
29
|
+
useAdvanceOption(props);
|
|
30
|
+
|
|
31
|
+
const show = ref(true);
|
|
32
|
+
const clickFlag = ref(true);
|
|
33
|
+
const showUserName = ref(true);
|
|
34
|
+
|
|
35
|
+
const contentText = ref();
|
|
36
|
+
|
|
37
|
+
expose({ currentLabel });
|
|
38
|
+
|
|
39
|
+
const filterOptionClick = () => {
|
|
40
|
+
advanceSelect.handleOptionSelect(instance.proxy);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
// 判断是否需要展示tooltip
|
|
44
|
+
const isShow = async () => {
|
|
45
|
+
const dom = document.querySelector(`.content-label-${props.value} .bwa-advance-option__content-label`);
|
|
46
|
+
if (dom) {
|
|
47
|
+
const scrollWidth = document.querySelector(`.content-label-${props.value} .bwa-advance-option__content-label`).scrollWidth;
|
|
48
|
+
const offsetWidth = document.querySelector(`.content-label-${props.value} .bwa-advance-option__content-label`).offsetWidth;
|
|
49
|
+
if (scrollWidth > offsetWidth) {
|
|
50
|
+
show.value = false;
|
|
51
|
+
} else {
|
|
52
|
+
show.value = true;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const COLOR_POOL = ['#2DC86D', '#19BBFF', '#FFA901'];
|
|
57
|
+
/**
|
|
58
|
+
* 接收完整label,提取姓名首字母(大写)并匹配颜色
|
|
59
|
+
* @param {string} label - 完整label(如:石玉涵(dw_shiyuhan))
|
|
60
|
+
* @returns {object} { firstLetter: 大写首字母, color: 圆点颜色, valid: 是否符合规则 }
|
|
61
|
+
*/
|
|
62
|
+
function processLabel(label) {
|
|
63
|
+
// 1. 第一步:拆分label,提取姓名(核心修复点)
|
|
64
|
+
const labelMatch = label.match(/^(.*)\((.*)\)$/);
|
|
65
|
+
if (!labelMatch) {
|
|
66
|
+
return { valid: false, firstLetter: '#', color: COLOR_POOL[0] };
|
|
67
|
+
}
|
|
68
|
+
const [, name] = labelMatch; // 提取纯姓名:如"石玉涵"
|
|
69
|
+
const firstChar = name.charAt(0); // 取姓名第一个字
|
|
70
|
+
|
|
71
|
+
// 2. 第二步:获取首字母(强制大写,彻底解决小写问题)
|
|
72
|
+
let firstLetter = '#';
|
|
73
|
+
if (/^[\u4e00-\u9fa5]$/.test(firstChar)) {
|
|
74
|
+
// 拼音库取首字母 + 手动toUpperCase(无视库版本差异)
|
|
75
|
+
firstLetter = pinyin(firstChar, { pattern: 'first' }).toUpperCase();
|
|
76
|
+
} else if (/^[a-zA-Z]$/.test(firstChar)) {
|
|
77
|
+
firstLetter = firstChar.toUpperCase();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// 3. 第三步:计算颜色(按你指定的规则)
|
|
81
|
+
let color = COLOR_POOL[0];
|
|
82
|
+
if (/^[A-Z]$/.test(firstLetter)) {
|
|
83
|
+
const letterCode = firstLetter.charCodeAt(0) - 'A'.charCodeAt(0);
|
|
84
|
+
color = COLOR_POOL[letterCode % 3];
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
firstLetter: firstLetter, // 确保是大写
|
|
90
|
+
color: color
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
const listenerClickFunction = () => {
|
|
94
|
+
setTimeout(() => {
|
|
95
|
+
isShow();
|
|
96
|
+
}, 100);
|
|
97
|
+
};
|
|
98
|
+
// onMounted(async () => {
|
|
99
|
+
// if (clickFlag) {
|
|
100
|
+
// document.querySelector('.bwa-advance-select button')?.addEventListener('click', listenerClickFunction)
|
|
101
|
+
// clickFlag.value = false
|
|
102
|
+
// }
|
|
103
|
+
// })
|
|
104
|
+
|
|
105
|
+
// onUnmounted(() => {
|
|
106
|
+
// document.querySelector('.bwa-advance-select button').removeEventListener('click', listenerClickFunction)
|
|
107
|
+
// })
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
show,
|
|
111
|
+
ns,
|
|
112
|
+
currentLabel,
|
|
113
|
+
showUserName,
|
|
114
|
+
itemSelected,
|
|
115
|
+
showSelectIcon,
|
|
116
|
+
filterOptionClick,
|
|
117
|
+
handleOptionMouseEnter,
|
|
118
|
+
source,
|
|
119
|
+
processLabel
|
|
120
|
+
};
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const _withScopeId = n => (pushScopeId("data-v-bc8f5626"),n=n(),popScopeId(),n);
|
|
125
|
+
const _hoisted_1 = { style: {"overflow":"hidden","text-overflow":"ellipsis","flex":"3"} };
|
|
126
|
+
|
|
60
127
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
61
|
-
const _component_ElCheckbox = resolveComponent("ElCheckbox");
|
|
62
128
|
const _component_ElTooltip = resolveComponent("ElTooltip");
|
|
63
129
|
const _component_Select = resolveComponent("Select");
|
|
64
130
|
const _component_ElIcon = resolveComponent("ElIcon");
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
131
|
+
|
|
132
|
+
return (openBlock(), createElementBlock("div", {
|
|
133
|
+
class: normalizeClass($setup.ns.b('option')),
|
|
134
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => ($setup.filterOptionClick && $setup.filterOptionClick(...args)), ["stop"]))
|
|
68
135
|
}, [
|
|
69
|
-
createCommentVNode(
|
|
136
|
+
createCommentVNode(" @mouseenter=\"handleOptionMouseEnter\" "),
|
|
70
137
|
createElementVNode("div", {
|
|
71
|
-
class: normalizeClass(`${$setup.ns.be(
|
|
138
|
+
class: normalizeClass(`${$setup.ns.be('option', 'content')} content-label-${$props.value}`)
|
|
72
139
|
}, [
|
|
73
140
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
74
141
|
createVNode(_component_ElTooltip, {
|
|
@@ -77,49 +144,52 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
77
144
|
disabled: $setup.currentLabel.length < 16
|
|
78
145
|
}, {
|
|
79
146
|
content: withCtx(() => [
|
|
80
|
-
createTextVNode(toDisplayString($setup.currentLabel), 1)
|
|
147
|
+
createTextVNode(toDisplayString($setup.currentLabel), 1 /* TEXT */)
|
|
81
148
|
]),
|
|
82
149
|
default: withCtx(() => [
|
|
83
150
|
createElementVNode("div", {
|
|
84
|
-
class: normalizeClass($setup.ns.be(
|
|
151
|
+
class: normalizeClass($setup.ns.be('option', 'content-label')),
|
|
85
152
|
ref: "contentText"
|
|
86
153
|
}, [
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
class: normalizeClass($setup.ns.be(
|
|
98
|
-
style: {
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
154
|
+
(!$setup.showUserName)
|
|
155
|
+
? (openBlock(), createElementBlock("div", {
|
|
156
|
+
key: 0,
|
|
157
|
+
class: normalizeClass($setup.ns.be('option', 'content-label')),
|
|
158
|
+
style: {"width":"178px"}
|
|
159
|
+
}, toDisplayString($setup.currentLabel), 3 /* TEXT, CLASS */))
|
|
160
|
+
: createCommentVNode("v-if", true),
|
|
161
|
+
($setup.showUserName)
|
|
162
|
+
? (openBlock(), createElementBlock("div", {
|
|
163
|
+
key: 1,
|
|
164
|
+
class: normalizeClass($setup.ns.be('option', 'content-label')),
|
|
165
|
+
style: {"width":"178px","display":"flex","align-items":"center"}
|
|
166
|
+
}, [
|
|
167
|
+
createElementVNode("div", {
|
|
168
|
+
class: "letter-circle",
|
|
169
|
+
style: normalizeStyle({ backgroundColor: ($setup.processLabel($setup.currentLabel).color) })
|
|
170
|
+
}, toDisplayString($setup.processLabel($setup.currentLabel).firstLetter), 5 /* TEXT, STYLE */),
|
|
171
|
+
createElementVNode("div", _hoisted_1, toDisplayString($setup.currentLabel), 1 /* TEXT */)
|
|
172
|
+
], 2 /* CLASS */))
|
|
173
|
+
: createCommentVNode("v-if", true)
|
|
174
|
+
], 2 /* CLASS */)
|
|
175
|
+
]),
|
|
176
|
+
_: 1 /* STABLE */
|
|
177
|
+
}, 8 /* PROPS */, ["disabled"])
|
|
178
|
+
], true)
|
|
179
|
+
], 2 /* CLASS */),
|
|
180
|
+
($setup.itemSelected )
|
|
181
|
+
? (openBlock(), createBlock(_component_ElIcon, {
|
|
182
|
+
key: 0,
|
|
183
|
+
class: normalizeClass($setup.ns.be('option', 'selected'))
|
|
184
|
+
}, {
|
|
185
|
+
default: withCtx(() => [
|
|
186
|
+
createVNode(_component_Select)
|
|
107
187
|
]),
|
|
108
|
-
_: 1
|
|
109
|
-
}, 8
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
$setup.itemSelected && $setup.showSelectIcon ? (openBlock(), createBlock(_component_ElIcon, {
|
|
113
|
-
key: 0,
|
|
114
|
-
class: normalizeClass($setup.ns.be("option", "selected"))
|
|
115
|
-
}, {
|
|
116
|
-
default: withCtx(() => [
|
|
117
|
-
createVNode(_component_Select)
|
|
118
|
-
]),
|
|
119
|
-
_: 1
|
|
120
|
-
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
|
121
|
-
], 2);
|
|
188
|
+
_: 1 /* STABLE */
|
|
189
|
+
}, 8 /* PROPS */, ["class"]))
|
|
190
|
+
: createCommentVNode("v-if", true)
|
|
191
|
+
], 2 /* CLASS */))
|
|
122
192
|
}
|
|
123
|
-
var
|
|
193
|
+
var BwaAdvanceOption = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render],['__scopeId',"data-v-bc8f5626"],['__file',"advance-option.vue"]]);
|
|
124
194
|
|
|
125
|
-
export {
|
|
195
|
+
export { BwaAdvanceOption as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import styleInject from '../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs';
|
|
2
|
+
|
|
3
|
+
var css_248z = "\n.letter-circle[data-v-bc8f5626] {\r\n\r\n width: 24px;\r\n height: 24px;\r\n border-radius: 50%;\r\n color: #fff;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n font-size: 14px;\r\n margin-right: 8px;\n}\r\n";
|
|
4
|
+
var stylesheet="\n.letter-circle[data-v-bc8f5626] {\r\n\r\n width: 24px;\r\n height: 24px;\r\n border-radius: 50%;\r\n color: #fff;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n font-size: 14px;\r\n margin-right: 8px;\n}\r\n";
|
|
5
|
+
styleInject(css_248z);
|
|
6
|
+
|
|
7
|
+
export { css_248z as default, stylesheet };
|