@ctzy-web-client/plugin-component-vue 1.0.26 → 1.0.28
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/_virtual/_plugin-vue_export-helper.mjs +11 -0
- package/es/advance-select/advance-operation.mjs +48 -51
- package/es/advance-select/advance-option.mjs +134 -164
- package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_daae7edd_lang.mjs +13 -0
- package/es/advance-select/advance-select.mjs +327 -370
- package/es/advance-select/events-helpers.mjs +9 -0
- package/es/advance-select/index.mjs +9 -0
- package/es/advance-select/use-advance-option.mjs +9 -0
- package/es/advance-select/use-advance-select.mjs +9 -0
- package/es/application-slot/application-slot.mjs +9 -0
- package/es/application-slot/breadcrumb-item.mjs +26 -20
- package/es/application-slot/header-tools-item.mjs +26 -20
- package/es/application-slot/index.mjs +9 -0
- package/es/breadcrumb-select/breadcrumb-select.mjs +123 -137
- package/es/breadcrumb-select/index.mjs +9 -0
- package/es/components.mjs +9 -0
- package/es/contextmenu/contextmenu-item.mjs +24 -19
- package/es/contextmenu/contextmenu.mjs +68 -73
- package/es/contextmenu/index.mjs +9 -0
- package/es/contextmenu/use-contextmenu.mjs +10 -1
- package/es/data-form/data-form-item.mjs +41 -49
- package/es/data-form/data-form.mjs +176 -213
- package/es/data-form/dynamic-component.mjs +9 -0
- package/es/data-form/form-components/Blots/AtBlot.mjs +9 -0
- package/es/data-form/form-components/bwa-date-picker.mjs +50 -51
- package/es/data-form/form-components/bwa-date-time-picker.mjs +55 -56
- package/es/data-form/form-components/bwa-input-float.mjs +48 -48
- package/es/data-form/form-components/bwa-input-integer.mjs +61 -68
- package/es/data-form/form-components/bwa-input.mjs +43 -43
- package/es/data-form/form-components/bwa-multi-select.mjs +40 -40
- package/es/data-form/form-components/bwa-rich-text-tinymce.mjs +230 -555
- package/es/data-form/form-components/bwa-rich-text.mjs +326 -404
- package/es/data-form/form-components/bwa-select.mjs +81 -84
- package/es/data-form/form-components/bwa-textarea.mjs +38 -38
- package/es/data-form/form-components/bwa-upload.mjs +160 -173
- package/es/data-form/form-components/bwa-user-multi-select.mjs +35 -35
- package/es/data-form/form-components/bwa-user-select.mjs +72 -86
- package/es/data-form/index.mjs +9 -0
- package/es/data-table/data-column-view.mjs +124 -146
- package/es/data-table/data-table-card.mjs +49 -48
- package/es/data-table/data-table-column.mjs +55 -58
- package/es/data-table/data-table.mjs +328 -404
- package/es/data-table/dynamic-component.mjs +9 -0
- package/es/data-table/index.mjs +9 -0
- package/es/data-table/use-datatable-drag.mjs +9 -0
- package/es/datatable-settings/datatable-settings.mjs +286 -328
- package/es/datatable-settings/index.mjs +9 -0
- package/es/date-range/date-picker.mjs +125 -131
- package/es/date-range/date-range.mjs +173 -216
- package/es/date-range/index.mjs +9 -0
- package/es/drag-list/constants.mjs +10 -0
- package/es/drag-list/drag-item.mjs +51 -56
- package/es/drag-list/drag-list.mjs +58 -60
- package/es/drag-list/index.mjs +9 -0
- package/es/drag-list/use-drag-list.mjs +10 -1
- package/es/dragable/constants.mjs +10 -0
- package/es/dragable/dragable-item.mjs +27 -23
- package/es/dragable/dragable-operation.mjs +33 -32
- package/es/dragable/dragable.mjs +33 -32
- package/es/dragable/index.mjs +9 -0
- package/es/dragable/use-dragable.mjs +9 -0
- package/es/filter-panel/conditions/condition.mjs +9 -0
- package/es/filter-panel/conditions/date-range-condition.mjs +51 -50
- package/es/filter-panel/conditions/department-condition/department-condition.mjs +82 -99
- package/es/filter-panel/conditions/department-condition/department-node.mjs +69 -73
- package/es/filter-panel/conditions/index.mjs +9 -0
- package/es/filter-panel/conditions/input-condition.mjs +88 -91
- package/es/filter-panel/conditions/multi-user-condition.mjs +66 -67
- package/es/filter-panel/conditions/multiple-menu-condition.mjs +44 -54
- package/es/filter-panel/conditions/single-menu-condition.mjs +71 -65
- package/es/filter-panel/conditions/single-user-condition.mjs +66 -67
- package/es/filter-panel/filter-panel-item.mjs +51 -55
- package/es/filter-panel/filter-panel.mjs +147 -156
- package/es/filter-panel/index.mjs +9 -0
- package/es/filter-panel/use-filter-panel-item.mjs +9 -0
- package/es/filter-panel/use-filter-panel.mjs +9 -0
- package/es/hooks/use-data/index.mjs +9 -0
- package/es/index.mjs +9 -0
- package/es/layout/index.mjs +9 -0
- package/es/layout/layout.mjs +87 -85
- package/es/make-installer.mjs +9 -0
- package/es/math/Rectangle.mjs +10 -0
- package/es/menu/index.mjs +9 -0
- package/es/menu/menu-item.mjs +65 -70
- package/es/menu/menu.mjs +64 -70
- package/es/node_modules/.pnpm/{@vueuse_core@9.6.0_vue@3.2.41 → @vueuse_core@9.13.0_vue@3.5.29_typescript@4.9.5_}/node_modules/@vueuse/core/index.mjs +680 -454
- package/es/node_modules/.pnpm/{@vueuse_shared@9.6.0_vue@3.2.41 → @vueuse_shared@9.13.0_vue@3.5.29_typescript@4.9.5_}/node_modules/@vueuse/shared/index.mjs +108 -46
- package/es/panel/index.mjs +9 -0
- package/es/panel/panel.mjs +49 -53
- package/es/panel-tabs/index.mjs +9 -0
- package/es/panel-tabs/panel-tabs.mjs +9 -0
- package/es/pct-filter-panel/index.mjs +9 -0
- package/es/pct-filter-panel/pct-compents/index.mjs +9 -0
- package/es/pct-filter-panel/pct-compents/pct-Input-condition.mjs +73 -75
- package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +77 -77
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +357 -374
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.mjs +149 -154
- package/es/pct-filter-panel/pct-filter-panel-item.mjs +52 -56
- package/es/pct-filter-panel/pct-filter-panel.mjs +235 -248
- package/es/pct-filter-panel/use-filter-panel-item.mjs +9 -0
- package/es/pct-filter-panel/use-filter-panel.mjs +9 -0
- package/es/plugins.css +1 -0
- package/es/plugins.mjs +9 -0
- package/es/progress/index.mjs +9 -0
- package/es/progress/progress-item.mjs +71 -81
- package/es/progress/progress.mjs +74 -78
- package/es/progress/use-progress.mjs +9 -0
- package/es/utils/db.mjs +9 -0
- package/es/utils.mjs +9 -0
- package/es/where-filter-panel/index.mjs +9 -1
- package/es/where-filter-panel/use-where-filter-panel.mjs +9 -0
- package/es/where-filter-panel/where-filter-panel.mjs +21 -15
- package/lib/_virtual/_plugin-vue_export-helper.js +11 -0
- package/lib/advance-select/advance-operation.js +47 -50
- package/lib/advance-select/advance-option.js +133 -163
- package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_daae7edd_lang.js +17 -0
- package/lib/advance-select/advance-select.js +326 -369
- package/lib/advance-select/events-helpers.js +9 -0
- package/lib/advance-select/index.js +9 -0
- package/lib/advance-select/use-advance-option.js +9 -0
- package/lib/advance-select/use-advance-select.js +9 -0
- package/lib/application-slot/application-slot.js +9 -0
- package/lib/application-slot/breadcrumb-item.js +25 -19
- package/lib/application-slot/header-tools-item.js +25 -19
- package/lib/application-slot/index.js +9 -0
- package/lib/breadcrumb-select/breadcrumb-select.js +122 -136
- package/lib/breadcrumb-select/index.js +9 -0
- package/lib/components.js +9 -0
- package/lib/contextmenu/contextmenu-item.js +23 -18
- package/lib/contextmenu/contextmenu.js +67 -72
- package/lib/contextmenu/index.js +9 -0
- package/lib/contextmenu/use-contextmenu.js +10 -1
- package/lib/data-form/data-form-item.js +40 -48
- package/lib/data-form/data-form.js +175 -212
- package/lib/data-form/dynamic-component.js +9 -0
- package/lib/data-form/form-components/Blots/AtBlot.js +9 -0
- package/lib/data-form/form-components/bwa-date-picker.js +49 -50
- package/lib/data-form/form-components/bwa-date-time-picker.js +54 -55
- package/lib/data-form/form-components/bwa-input-float.js +47 -47
- package/lib/data-form/form-components/bwa-input-integer.js +60 -67
- package/lib/data-form/form-components/bwa-input.js +42 -42
- package/lib/data-form/form-components/bwa-multi-select.js +39 -39
- package/lib/data-form/form-components/bwa-rich-text-tinymce.js +229 -554
- package/lib/data-form/form-components/bwa-rich-text.js +325 -403
- package/lib/data-form/form-components/bwa-select.js +80 -83
- package/lib/data-form/form-components/bwa-textarea.js +37 -37
- package/lib/data-form/form-components/bwa-upload.js +159 -172
- package/lib/data-form/form-components/bwa-user-multi-select.js +34 -34
- package/lib/data-form/form-components/bwa-user-select.js +71 -85
- package/lib/data-form/index.js +9 -0
- package/lib/data-table/data-column-view.js +124 -146
- package/lib/data-table/data-table-card.js +49 -48
- package/lib/data-table/data-table-column.js +54 -57
- package/lib/data-table/data-table.js +327 -403
- package/lib/data-table/dynamic-component.js +9 -0
- package/lib/data-table/index.js +9 -0
- package/lib/data-table/use-datatable-drag.js +9 -0
- package/lib/datatable-settings/datatable-settings.js +285 -327
- package/lib/datatable-settings/index.js +9 -0
- package/lib/date-range/date-picker.js +124 -130
- package/lib/date-range/date-range.js +172 -215
- package/lib/date-range/index.js +9 -0
- package/lib/drag-list/constants.js +10 -0
- package/lib/drag-list/drag-item.js +50 -55
- package/lib/drag-list/drag-list.js +57 -59
- package/lib/drag-list/index.js +9 -0
- package/lib/drag-list/use-drag-list.js +10 -1
- package/lib/dragable/constants.js +10 -0
- package/lib/dragable/dragable-item.js +26 -22
- package/lib/dragable/dragable-operation.js +32 -31
- package/lib/dragable/dragable.js +32 -31
- package/lib/dragable/index.js +9 -0
- package/lib/dragable/use-dragable.js +9 -0
- package/lib/filter-panel/conditions/condition.js +9 -0
- package/lib/filter-panel/conditions/date-range-condition.js +50 -49
- package/lib/filter-panel/conditions/department-condition/department-condition.js +81 -98
- package/lib/filter-panel/conditions/department-condition/department-node.js +68 -72
- package/lib/filter-panel/conditions/index.js +9 -0
- package/lib/filter-panel/conditions/input-condition.js +87 -90
- package/lib/filter-panel/conditions/multi-user-condition.js +65 -66
- package/lib/filter-panel/conditions/multiple-menu-condition.js +43 -53
- package/lib/filter-panel/conditions/single-menu-condition.js +70 -64
- package/lib/filter-panel/conditions/single-user-condition.js +65 -66
- package/lib/filter-panel/filter-panel-item.js +50 -54
- package/lib/filter-panel/filter-panel.js +146 -155
- package/lib/filter-panel/index.js +9 -0
- package/lib/filter-panel/use-filter-panel-item.js +9 -0
- package/lib/filter-panel/use-filter-panel.js +9 -0
- package/lib/hooks/use-data/index.js +9 -0
- package/lib/index.js +9 -0
- package/lib/layout/index.js +9 -0
- package/lib/layout/layout.js +86 -84
- package/lib/make-installer.js +9 -0
- package/lib/math/Rectangle.js +10 -0
- package/lib/menu/index.js +9 -0
- package/lib/menu/menu-item.js +64 -69
- package/lib/menu/menu.js +63 -69
- package/lib/node_modules/.pnpm/{@vueuse_core@9.6.0_vue@3.2.41 → @vueuse_core@9.13.0_vue@3.5.29_typescript@4.9.5_}/node_modules/@vueuse/core/index.js +685 -451
- package/lib/node_modules/.pnpm/{@vueuse_shared@9.6.0_vue@3.2.41 → @vueuse_shared@9.13.0_vue@3.5.29_typescript@4.9.5_}/node_modules/@vueuse/shared/index.js +109 -44
- package/lib/panel/index.js +9 -0
- package/lib/panel/panel.js +48 -52
- package/lib/panel-tabs/index.js +9 -0
- package/lib/panel-tabs/panel-tabs.js +9 -0
- package/lib/pct-filter-panel/index.js +9 -0
- package/lib/pct-filter-panel/pct-compents/index.js +9 -0
- package/lib/pct-filter-panel/pct-compents/pct-Input-condition.js +72 -74
- package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +76 -76
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +356 -373
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.js +148 -153
- package/lib/pct-filter-panel/pct-filter-panel-item.js +51 -55
- package/lib/pct-filter-panel/pct-filter-panel.js +234 -247
- package/lib/pct-filter-panel/use-filter-panel-item.js +9 -0
- package/lib/pct-filter-panel/use-filter-panel.js +9 -0
- package/lib/plugins.css +1 -0
- package/lib/plugins.js +9 -0
- package/lib/progress/index.js +9 -0
- package/lib/progress/progress-item.js +70 -80
- package/lib/progress/progress.js +73 -77
- package/lib/progress/use-progress.js +9 -0
- package/lib/utils/db.js +9 -0
- package/lib/utils.js +9 -0
- package/lib/where-filter-panel/index.js +9 -0
- package/lib/where-filter-panel/use-where-filter-panel.js +9 -0
- package/lib/where-filter-panel/where-filter-panel.js +20 -14
- package/package.json +1 -1
- package/src/advance-select/advance-option.vue +13 -7
- package/src/advance-select/advance-select.vue +8 -1
- package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +10 -1
- package/style/index.css +1 -1
- package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.mjs +0 -7
- package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +0 -28
- package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.js +0 -12
- package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +0 -32
|
@@ -8,138 +8,114 @@ 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_daae7edd_lang.js');
|
|
12
12
|
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
// onUnmounted(() => {
|
|
110
|
-
// document.querySelector('.bwa-advance-select button').removeEventListener('click', listenerClickFunction)
|
|
111
|
-
// })
|
|
112
|
-
|
|
113
|
-
return {
|
|
114
|
-
show,
|
|
115
|
-
ns,
|
|
116
|
-
currentLabel,
|
|
117
|
-
showUserName,
|
|
118
|
-
itemSelected,
|
|
119
|
-
showSelectIcon,
|
|
120
|
-
filterOptionClick,
|
|
121
|
-
handleOptionMouseEnter,
|
|
122
|
-
source,
|
|
123
|
-
processLabel
|
|
124
|
-
};
|
|
125
|
-
},
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
const _withScopeId = n => (vue.pushScopeId("data-v-bc8f5626"),n=n(),vue.popScopeId(),n);
|
|
129
|
-
const _hoisted_1 = { style: {"overflow":"hidden","text-overflow":"ellipsis","flex":"3"} };
|
|
130
|
-
|
|
14
|
+
// Inject __name helper
|
|
15
|
+
if (typeof __name === 'undefined') {
|
|
16
|
+
function __name(obj, name) {
|
|
17
|
+
Object.defineProperty(obj, "name", {
|
|
18
|
+
value: name,
|
|
19
|
+
configurable: true
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
const _sfc_main = {
|
|
24
|
+
name: "BwaAdvanceOption",
|
|
25
|
+
props: {
|
|
26
|
+
label: {
|
|
27
|
+
type: [String, Number, Boolean]
|
|
28
|
+
},
|
|
29
|
+
value: {
|
|
30
|
+
type: null
|
|
31
|
+
},
|
|
32
|
+
showLetterAvatar: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
expose: ["currentLabel"],
|
|
38
|
+
setup(props, { expose }) {
|
|
39
|
+
const instance = vue.getCurrentInstance();
|
|
40
|
+
const ns = webBaseClientVue.useNamespace("advance");
|
|
41
|
+
const { handleOptionMouseEnter } = eventsHelpers.useEvent(ns);
|
|
42
|
+
const { advanceSelect, currentLabel, itemSelected, showSelectIcon, source } = useAdvanceOption.useAdvanceOption(props);
|
|
43
|
+
const show = vue.ref(true);
|
|
44
|
+
const clickFlag = vue.ref(true);
|
|
45
|
+
const showLetterAvatarStatus = vue.computed(() => props.showLetterAvatar);
|
|
46
|
+
console.log(showLetterAvatarStatus.value, "\u4E0B\u4E00\u7EA7");
|
|
47
|
+
const contentText = vue.ref();
|
|
48
|
+
expose({ currentLabel });
|
|
49
|
+
const filterOptionClick = () => {
|
|
50
|
+
advanceSelect.handleOptionSelect(instance.proxy);
|
|
51
|
+
};
|
|
52
|
+
const isShow = async () => {
|
|
53
|
+
const dom = document.querySelector(`.content-label-${props.value} .bwa-advance-option__content-label`);
|
|
54
|
+
if (dom) {
|
|
55
|
+
const scrollWidth = document.querySelector(`.content-label-${props.value} .bwa-advance-option__content-label`).scrollWidth;
|
|
56
|
+
const offsetWidth = document.querySelector(`.content-label-${props.value} .bwa-advance-option__content-label`).offsetWidth;
|
|
57
|
+
if (scrollWidth > offsetWidth) {
|
|
58
|
+
show.value = false;
|
|
59
|
+
} else {
|
|
60
|
+
show.value = true;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const COLOR_POOL = ["#2DC86D", "#19BBFF", "#FFA901"];
|
|
65
|
+
function processLabel(label) {
|
|
66
|
+
const labelMatch = label.match(/^(.*)\((.*)\)$/);
|
|
67
|
+
if (!labelMatch) {
|
|
68
|
+
return { valid: false, firstLetter: "#", color: COLOR_POOL[0] };
|
|
69
|
+
}
|
|
70
|
+
const [, name] = labelMatch;
|
|
71
|
+
const firstChar = name.charAt(0);
|
|
72
|
+
let firstLetter = "#";
|
|
73
|
+
if (/^[\u4e00-\u9fa5]$/.test(firstChar)) {
|
|
74
|
+
firstLetter = pinyinPro.pinyin(firstChar, { pattern: "first" }).toUpperCase();
|
|
75
|
+
} else if (/^[a-zA-Z]$/.test(firstChar)) {
|
|
76
|
+
firstLetter = firstChar.toUpperCase();
|
|
77
|
+
}
|
|
78
|
+
let color = COLOR_POOL[0];
|
|
79
|
+
if (/^[A-Z]$/.test(firstLetter)) {
|
|
80
|
+
const letterCode = firstLetter.charCodeAt(0) - "A".charCodeAt(0);
|
|
81
|
+
color = COLOR_POOL[letterCode % 3];
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
firstLetter,
|
|
85
|
+
color
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
const listenerClickFunction = () => {
|
|
89
|
+
setTimeout(() => {
|
|
90
|
+
isShow();
|
|
91
|
+
}, 100);
|
|
92
|
+
};
|
|
93
|
+
return {
|
|
94
|
+
show,
|
|
95
|
+
ns,
|
|
96
|
+
currentLabel,
|
|
97
|
+
itemSelected,
|
|
98
|
+
showSelectIcon,
|
|
99
|
+
filterOptionClick,
|
|
100
|
+
handleOptionMouseEnter,
|
|
101
|
+
source,
|
|
102
|
+
processLabel,
|
|
103
|
+
showLetterAvatarStatus
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
const _hoisted_1 = { style: { "overflow": "hidden", "text-overflow": "ellipsis", "flex": "3" } };
|
|
131
108
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
132
109
|
const _component_ElTooltip = vue.resolveComponent("ElTooltip");
|
|
133
110
|
const _component_Select = vue.resolveComponent("Select");
|
|
134
111
|
const _component_ElIcon = vue.resolveComponent("ElIcon");
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => ($setup.filterOptionClick && $setup.filterOptionClick(...args)), ["stop"]))
|
|
112
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
113
|
+
class: vue.normalizeClass($setup.ns.b("option")),
|
|
114
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => $setup.filterOptionClick && $setup.filterOptionClick(...args), ["stop"]))
|
|
139
115
|
}, [
|
|
140
|
-
vue.createCommentVNode(
|
|
116
|
+
vue.createCommentVNode(' @mouseenter="handleOptionMouseEnter" '),
|
|
141
117
|
vue.createElementVNode("div", {
|
|
142
|
-
class: vue.normalizeClass(`${$setup.ns.be(
|
|
118
|
+
class: vue.normalizeClass(`${$setup.ns.be("option", "content")} content-label-${$props.value}`)
|
|
143
119
|
}, [
|
|
144
120
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
145
121
|
vue.createVNode(_component_ElTooltip, {
|
|
@@ -148,52 +124,46 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
148
124
|
disabled: $setup.currentLabel.length < 16
|
|
149
125
|
}, {
|
|
150
126
|
content: vue.withCtx(() => [
|
|
151
|
-
vue.createTextVNode(vue.toDisplayString($setup.currentLabel), 1
|
|
127
|
+
vue.createTextVNode(vue.toDisplayString($setup.currentLabel), 1)
|
|
152
128
|
]),
|
|
153
129
|
default: vue.withCtx(() => [
|
|
154
130
|
vue.createElementVNode("div", {
|
|
155
|
-
class: vue.normalizeClass($setup.ns.be(
|
|
131
|
+
class: vue.normalizeClass($setup.ns.be("option", "content-label")),
|
|
156
132
|
ref: "contentText"
|
|
157
133
|
}, [
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
:
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
vue.createElementVNode("div", _hoisted_1, vue.toDisplayString($setup.currentLabel), 1 /* TEXT */)
|
|
176
|
-
], 2 /* CLASS */))
|
|
177
|
-
: vue.createCommentVNode("v-if", true)
|
|
178
|
-
], 2 /* CLASS */)
|
|
134
|
+
!$setup.showLetterAvatarStatus ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
135
|
+
key: 0,
|
|
136
|
+
class: vue.normalizeClass($setup.ns.be("option", "content-label")),
|
|
137
|
+
style: { "width": "178px" }
|
|
138
|
+
}, vue.toDisplayString($setup.currentLabel), 3)) : vue.createCommentVNode("v-if", true),
|
|
139
|
+
$setup.showLetterAvatarStatus ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
140
|
+
key: 1,
|
|
141
|
+
class: vue.normalizeClass($setup.ns.be("option", "content-label")),
|
|
142
|
+
style: { "width": "178px", "display": "flex", "align-items": "center" }
|
|
143
|
+
}, [
|
|
144
|
+
vue.createElementVNode("div", {
|
|
145
|
+
class: "letter-circle",
|
|
146
|
+
style: vue.normalizeStyle({ backgroundColor: $setup.processLabel($setup.currentLabel).color })
|
|
147
|
+
}, vue.toDisplayString($setup.processLabel($setup.currentLabel).firstLetter), 5),
|
|
148
|
+
vue.createElementVNode("div", _hoisted_1, vue.toDisplayString($setup.currentLabel), 1)
|
|
149
|
+
], 2)) : vue.createCommentVNode("v-if", true)
|
|
150
|
+
], 2)
|
|
179
151
|
]),
|
|
180
|
-
_: 1
|
|
181
|
-
}, 8
|
|
152
|
+
_: 1
|
|
153
|
+
}, 8, ["disabled"])
|
|
182
154
|
], true)
|
|
183
|
-
], 2
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
: vue.createCommentVNode("v-if", true)
|
|
195
|
-
], 2 /* CLASS */))
|
|
155
|
+
], 2),
|
|
156
|
+
$setup.itemSelected ? (vue.openBlock(), vue.createBlock(_component_ElIcon, {
|
|
157
|
+
key: 0,
|
|
158
|
+
class: vue.normalizeClass($setup.ns.be("option", "selected"))
|
|
159
|
+
}, {
|
|
160
|
+
default: vue.withCtx(() => [
|
|
161
|
+
vue.createVNode(_component_Select)
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
}, 8, ["class"])) : vue.createCommentVNode("v-if", true)
|
|
165
|
+
], 2);
|
|
196
166
|
}
|
|
197
|
-
var BwaAdvanceOption =
|
|
167
|
+
var BwaAdvanceOption = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-daae7edd"], ["__file", "advance-option.vue"]]);
|
|
198
168
|
|
|
199
169
|
exports["default"] = BwaAdvanceOption;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
// Inject __name helper
|
|
6
|
+
if (typeof __name === 'undefined') {
|
|
7
|
+
function __name(obj, name) {
|
|
8
|
+
Object.defineProperty(obj, "name", {
|
|
9
|
+
value: name,
|
|
10
|
+
configurable: true
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
var undefined$1 = undefined;
|
|
16
|
+
|
|
17
|
+
exports["default"] = undefined$1;
|