@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.
Files changed (131) hide show
  1. package/es/advance-select/advance-operation.mjs +51 -37
  2. package/es/advance-select/advance-option.mjs +167 -97
  3. package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.mjs +7 -0
  4. package/es/advance-select/advance-select.mjs +368 -310
  5. package/es/advance-select/index.mjs +5 -5
  6. package/es/application-slot/breadcrumb-item.mjs +20 -17
  7. package/es/application-slot/header-tools-item.mjs +20 -17
  8. package/es/breadcrumb-select/breadcrumb-select.mjs +134 -112
  9. package/es/contextmenu/contextmenu-item.mjs +19 -15
  10. package/es/contextmenu/contextmenu.mjs +72 -56
  11. package/es/data-form/data-form-item.mjs +48 -30
  12. package/es/data-form/data-form.mjs +213 -166
  13. package/es/data-form/form-components/bwa-date-picker.mjs +51 -39
  14. package/es/data-form/form-components/bwa-date-time-picker.mjs +56 -44
  15. package/es/data-form/form-components/bwa-input-float.mjs +48 -37
  16. package/es/data-form/form-components/bwa-input-integer.mjs +68 -50
  17. package/es/data-form/form-components/bwa-input.mjs +43 -32
  18. package/es/data-form/form-components/bwa-multi-select.mjs +40 -29
  19. package/es/data-form/form-components/bwa-rich-text-tinymce.mjs +554 -218
  20. package/es/data-form/form-components/bwa-rich-text.mjs +404 -316
  21. package/es/data-form/form-components/bwa-select.mjs +84 -70
  22. package/es/data-form/form-components/bwa-textarea.mjs +38 -27
  23. package/es/data-form/form-components/bwa-upload.mjs +172 -148
  24. package/es/data-form/form-components/bwa-user-multi-select.mjs +35 -24
  25. package/es/data-form/form-components/bwa-user-select.mjs +86 -61
  26. package/es/data-table/data-column-view.mjs +146 -115
  27. package/es/data-table/data-table-card.mjs +48 -40
  28. package/es/data-table/data-table-column.mjs +58 -45
  29. package/es/data-table/data-table.mjs +402 -316
  30. package/es/datatable-settings/datatable-settings.mjs +329 -254
  31. package/es/date-range/date-picker.mjs +130 -116
  32. package/es/date-range/date-range.mjs +215 -161
  33. package/es/drag-list/drag-item.mjs +56 -42
  34. package/es/drag-list/drag-list.mjs +60 -47
  35. package/es/dragable/dragable-item.mjs +23 -18
  36. package/es/dragable/dragable-operation.mjs +32 -24
  37. package/es/dragable/dragable.mjs +32 -23
  38. package/es/filter-panel/conditions/date-range-condition.mjs +50 -40
  39. package/es/filter-panel/conditions/department-condition/department-condition.mjs +99 -72
  40. package/es/filter-panel/conditions/department-condition/department-node.mjs +73 -59
  41. package/es/filter-panel/conditions/input-condition.mjs +90 -76
  42. package/es/filter-panel/conditions/multi-user-condition.mjs +67 -57
  43. package/es/filter-panel/conditions/multiple-menu-condition.mjs +54 -35
  44. package/es/filter-panel/conditions/single-menu-condition.mjs +65 -60
  45. package/es/filter-panel/conditions/single-user-condition.mjs +67 -57
  46. package/es/filter-panel/filter-panel-item.mjs +54 -39
  47. package/es/filter-panel/filter-panel.mjs +153 -135
  48. package/es/layout/layout.mjs +85 -78
  49. package/es/menu/menu-item.mjs +67 -52
  50. package/es/menu/menu.mjs +70 -53
  51. package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +28 -0
  52. package/es/panel/panel.mjs +53 -40
  53. package/es/pct-filter-panel/pct-compents/pct-Input-condition.mjs +74 -63
  54. package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +76 -67
  55. package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +406 -178
  56. package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.mjs +153 -138
  57. package/es/pct-filter-panel/pct-filter-panel-item.mjs +55 -40
  58. package/es/pct-filter-panel/pct-filter-panel.mjs +247 -227
  59. package/es/progress/progress-item.mjs +81 -61
  60. package/es/progress/progress.mjs +78 -64
  61. package/es/where-filter-panel/where-filter-panel.mjs +15 -12
  62. package/lib/advance-select/advance-operation.js +50 -36
  63. package/lib/advance-select/advance-option.js +166 -96
  64. package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.js +12 -0
  65. package/lib/advance-select/advance-select.js +366 -308
  66. package/lib/application-slot/breadcrumb-item.js +19 -16
  67. package/lib/application-slot/header-tools-item.js +19 -16
  68. package/lib/breadcrumb-select/breadcrumb-select.js +133 -111
  69. package/lib/contextmenu/contextmenu-item.js +18 -14
  70. package/lib/contextmenu/contextmenu.js +71 -55
  71. package/lib/data-form/data-form-item.js +47 -29
  72. package/lib/data-form/data-form.js +212 -165
  73. package/lib/data-form/form-components/bwa-date-picker.js +50 -38
  74. package/lib/data-form/form-components/bwa-date-time-picker.js +55 -43
  75. package/lib/data-form/form-components/bwa-input-float.js +47 -36
  76. package/lib/data-form/form-components/bwa-input-integer.js +67 -49
  77. package/lib/data-form/form-components/bwa-input.js +42 -31
  78. package/lib/data-form/form-components/bwa-multi-select.js +39 -28
  79. package/lib/data-form/form-components/bwa-rich-text-tinymce.js +553 -217
  80. package/lib/data-form/form-components/bwa-rich-text.js +403 -315
  81. package/lib/data-form/form-components/bwa-select.js +83 -69
  82. package/lib/data-form/form-components/bwa-textarea.js +37 -26
  83. package/lib/data-form/form-components/bwa-upload.js +171 -147
  84. package/lib/data-form/form-components/bwa-user-multi-select.js +34 -23
  85. package/lib/data-form/form-components/bwa-user-select.js +85 -60
  86. package/lib/data-table/data-column-view.js +146 -115
  87. package/lib/data-table/data-table-card.js +48 -40
  88. package/lib/data-table/data-table-column.js +57 -44
  89. package/lib/data-table/data-table.js +401 -315
  90. package/lib/datatable-settings/datatable-settings.js +328 -253
  91. package/lib/date-range/date-picker.js +129 -115
  92. package/lib/date-range/date-range.js +214 -160
  93. package/lib/drag-list/drag-item.js +55 -41
  94. package/lib/drag-list/drag-list.js +59 -46
  95. package/lib/dragable/dragable-item.js +22 -17
  96. package/lib/dragable/dragable-operation.js +31 -23
  97. package/lib/dragable/dragable.js +31 -22
  98. package/lib/filter-panel/conditions/date-range-condition.js +49 -39
  99. package/lib/filter-panel/conditions/department-condition/department-condition.js +98 -71
  100. package/lib/filter-panel/conditions/department-condition/department-node.js +72 -58
  101. package/lib/filter-panel/conditions/input-condition.js +89 -75
  102. package/lib/filter-panel/conditions/multi-user-condition.js +66 -56
  103. package/lib/filter-panel/conditions/multiple-menu-condition.js +53 -34
  104. package/lib/filter-panel/conditions/single-menu-condition.js +64 -59
  105. package/lib/filter-panel/conditions/single-user-condition.js +66 -56
  106. package/lib/filter-panel/filter-panel-item.js +53 -38
  107. package/lib/filter-panel/filter-panel.js +152 -134
  108. package/lib/layout/layout.js +84 -77
  109. package/lib/menu/menu-item.js +66 -51
  110. package/lib/menu/menu.js +69 -52
  111. package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +32 -0
  112. package/lib/panel/panel.js +52 -39
  113. package/lib/pct-filter-panel/pct-compents/pct-Input-condition.js +73 -62
  114. package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +75 -66
  115. package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +405 -177
  116. package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.js +152 -137
  117. package/lib/pct-filter-panel/pct-filter-panel-item.js +54 -39
  118. package/lib/pct-filter-panel/pct-filter-panel.js +246 -226
  119. package/lib/progress/progress-item.js +80 -60
  120. package/lib/progress/progress.js +77 -63
  121. package/lib/where-filter-panel/where-filter-panel.js +14 -11
  122. package/package.json +2 -1
  123. package/src/advance-select/advance-option.vue +64 -13
  124. package/src/data-form/form-components/bwa-rich-text-tinymce.vue +1 -1
  125. package/src/datatable-settings/datatable-settings.vue +33 -3
  126. package/src/date-range/date-picker.vue +1 -1
  127. package/src/filter-panel/filter-panel.vue +2 -2
  128. package/src/pct-filter-panel/pct-compents/pct-Input-condition.vue +64 -64
  129. package/src/pct-filter-panel/pct-compents/pct-date-range-condition.vue +61 -61
  130. package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +302 -178
  131. package/src/pct-filter-panel/pct-filter-panel.vue +4 -4
@@ -3,188 +3,416 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
+ var ElementPlus = require('element-plus');
7
+ var icons = require('@element-plus/icons');
6
8
  var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
7
9
  var index = require('../../hooks/use-data/index.js');
10
+ var advanceSelect = require('../../advance-select/advance-select.js');
11
+ var advanceOption = require('../../advance-select/advance-option.js');
8
12
  var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
9
13
 
10
- const __default__ = vue.defineComponent({
11
- name: "BwaPctMultipleMenuCondition",
12
- __conditionTitle__: "\u591A\u9009\u5217\u8868",
13
- __conditionDefault__: () => []
14
- });
15
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
16
- props: {
17
- ...index.dataProps,
18
- modelValue: {
19
- type: null
20
- },
21
- options: {
22
- type: Array,
23
- default: () => []
24
- },
25
- labelProp: {
26
- type: String,
27
- default: "label"
28
- },
29
- valueProp: {
30
- type: String,
31
- default: "value"
32
- },
33
- multiple: {
34
- type: Boolean,
35
- default: true
36
- },
37
- showSearch: {
38
- type: Boolean,
39
- default: true
40
- },
41
- placeholder: {
42
- type: String,
43
- default: "\u8BF7\u9009\u62E9"
44
- },
45
- remote: {
46
- type: Boolean,
47
- default: true
48
- },
49
- size: {
50
- type: String,
51
- default: "small"
52
- },
53
- searchPlaceholder: {
54
- type: String,
55
- default: ""
56
- },
57
- labelAttr: "",
58
- valueAttr: "",
59
- searchAttr: "",
60
- itfInfo: null,
61
- isRequiredByVisibleChange: {
62
- type: Boolean,
63
- default: false
64
- }
65
- },
66
- emits: ["update:modelValue", "search"],
14
+ const _hoisted_1 = { key: 0 };
15
+
16
+
17
+ const _sfc_main = {
18
+ __name: 'pct-multiple-menu-condition',
19
+ props: {
20
+ ...index.dataProps,
21
+ modelValue: {
22
+ type: null,
23
+ },
24
+ options: {
25
+ type: Array,
26
+ default: () => [],
27
+ },
28
+ labelProp: {
29
+ type: String,
30
+ default: 'label',
31
+ },
32
+ valueProp: {
33
+ type: String,
34
+ default: 'value',
35
+ },
36
+ multiple: {
37
+ type: Boolean,
38
+ default: true,
39
+ },
40
+ showSearch: {
41
+ type: Boolean,
42
+ default: true,
43
+ },
44
+ placeholder: {
45
+ type: String,
46
+ default: '请选择',
47
+ },
48
+ remote: {
49
+ type: Boolean,
50
+ default: true,
51
+ },
52
+ size: {
53
+ type: String,
54
+ default: 'small',
55
+ },
56
+ searchPlaceholder: {
57
+ type: String,
58
+ default: '',
59
+ },
60
+ labelAttr: '',
61
+ valueAttr: '',
62
+ searchAttr: '',
63
+ itfInfo: null,
64
+ // 自定义选项时 是否通过展开自动触发自定义search
65
+ isRequiredByVisibleChange: {
66
+ type: Boolean,
67
+ default: false,
68
+ },
69
+ },
70
+ emits: ['update:modelValue', 'search'],
67
71
  setup(__props, { expose, emit }) {
68
- var _a;
69
- const props = __props;
70
- const httpRequest = webBaseClientVue.useService(webBaseClientVue.HttpRequest);
71
- ;
72
- const ns = webBaseClientVue.useNamespace("pctfilterpanel-item");
73
- const isShowPopper = vue.ref(false);
74
- const attrs = vue.useAttrs();
75
- const showTitle = vue.computed(() => attrs.showTitle);
76
- const data = vue.ref([]);
77
- const loading = vue.ref(false);
78
- const filterPanelItem = vue.inject(webBaseClientVue.filterPanelItemKey, null);
79
- const column = vue.computed(() => {
80
- var _a2;
81
- return (_a2 = filterPanelItem == null ? void 0 : filterPanelItem.column) != null ? _a2 : null;
82
- });
83
- if (props.itfInfo) {
84
- column.value.componentProps = {
85
- itfInfo: props.itfInfo || {},
86
- labelAttr: props.labelAttr || "label",
87
- valueAttr: props.valueAttr || "value",
88
- searchAttr: props.searchAttr || "search"
89
- };
90
- }
91
- const searchPlaceholderStr = vue.computed(() => {
92
- var _a2, _b;
93
- return ((_b = (_a2 = column.value) == null ? void 0 : _a2.componentProps) == null ? void 0 : _b.searchPlaceholder) || props.searchPlaceholder;
94
- });
95
- const placeholderStr = vue.computed(() => showTitle.value ? props.placeholder : column.value.title);
96
- const labelPropStr = vue.computed(() => {
97
- var _a2, _b;
98
- return ((_b = (_a2 = column.value) == null ? void 0 : _a2.componentProps) == null ? void 0 : _b.labelAttr) || props.labelProp;
99
- });
100
- const valuePropStr = vue.computed(() => {
101
- var _a2, _b;
102
- return ((_b = (_a2 = column.value) == null ? void 0 : _a2.componentProps) == null ? void 0 : _b.valueAttr) || props.valueProp;
103
- });
104
- const getData = async (query) => {
105
- var _a2;
106
- loading.value = true;
107
- const { itfInfo, searchAttr } = column.value.componentProps;
108
- const { url, method, options, params } = {
109
- url: vue.unref(itfInfo).url,
110
- method: vue.unref(itfInfo).method || "POST",
111
- options: vue.unref(itfInfo).options || {},
112
- params: { ...vue.unref(itfInfo).params, [searchAttr]: query || "" }
113
- };
114
- data.value = (_a2 = await vue.unref(httpRequest)[method.toLowerCase()](url, params, options)) == null ? void 0 : _a2.data;
115
- loading.value = false;
116
- };
117
- data.value = (_a = props.options) != null ? _a : [];
118
- const visibleChange = (val) => {
119
- var _a2, _b;
120
- isShowPopper.value = val;
121
- if (!val || !column.value.componentProps || ((_b = (_a2 = column.value) == null ? void 0 : _a2.componentProps) == null ? void 0 : _b.options)) {
122
- if (isShowPopper.value && props.isRequiredByVisibleChange) {
123
- emit("search", "");
124
- }
125
- return;
126
- }
127
- getData();
128
- };
129
- const remoteMethod = (query) => {
130
- if (column.value.componentProps) {
131
- getData(query);
132
- } else {
133
- emit("search", query);
134
- }
135
- };
136
- const modelValue = vue.computed({
137
- get: () => {
138
- if (props.multiple) {
139
- return Array.isArray(props.modelValue) ? props.modelValue.map((item) => item) : [];
140
- } else {
141
- return props.modelValue == null || Array.isArray(props.modelValue) ? "" : props.modelValue;
142
- }
143
- },
144
- set: (v) => emit("update:modelValue", v)
145
- });
146
- expose({
147
- data
148
- });
149
- return (_ctx, _cache) => {
150
- const _component_el_option = vue.resolveComponent("el-option");
151
- const _component_el_select = vue.resolveComponent("el-select");
152
- return vue.openBlock(), vue.createElementBlock("div", {
153
- class: vue.normalizeClass(vue.unref(ns).e("conditbox"))
154
- }, [
155
- vue.unref(showTitle) ? (vue.openBlock(), vue.createElementBlock("div", {
72
+
73
+ const props = __props;
74
+
75
+ const httpRequest = webBaseClientVue.useService(webBaseClientVue.HttpRequest);
76
+ defineOptions({
77
+ name: 'BwaPctMultipleMenuCondition',
78
+ __conditionTitle__: '多选列表',
79
+ __conditionDefault__: () => [],
80
+ });
81
+
82
+
83
+ const popperWidth = vue.ref('240px');
84
+ vue.onMounted(() => {
85
+ vue.nextTick(() => {
86
+ const offsetWidth = document.getElementsByClassName('bwa-pctfilterpanel-item__options')[0]?.offsetWidth;
87
+ if (offsetWidth > 0) {
88
+ popperWidth.value = offsetWidth + 'px';
89
+ }
90
+ });
91
+ });
92
+ const ns = webBaseClientVue.useNamespace('pctfilterpanel-item');
93
+ const isShowPopper = vue.ref(false);
94
+ const isHoverIcon = vue.ref(false);
95
+
96
+ const attrs = vue.useAttrs();
97
+ const showTitle = vue.computed(() => attrs.showTitle);
98
+
99
+ const data = vue.ref([]);
100
+ const loading = vue.ref(false);
101
+
102
+
103
+ const filterPanelItem = vue.inject(webBaseClientVue.filterPanelItemKey, null);
104
+ const column = vue.computed(() => filterPanelItem?.column ?? null);
105
+
106
+ /**
107
+ * 页面参数层级覆盖配置文件传递的参数层级
108
+ */
109
+ if (props.itfInfo) {
110
+ column.value.componentProps = {
111
+ itfInfo: props.itfInfo || {},
112
+ labelAttr: props.labelAttr || 'label',
113
+ valueAttr: props.valueAttr || 'value',
114
+ searchAttr: props.searchAttr || 'search'
115
+ };
116
+ }
117
+
118
+ const searchPlaceholderStr = vue.computed(() => column.value?.componentProps?.searchPlaceholder || props.searchPlaceholder);
119
+ const placeholderStr = vue.computed(() => showTitle.value ? props.placeholder : column.value.title);
120
+
121
+ const labelPropStr = vue.computed(() => column.value?.componentProps?.labelAttr || props.labelProp);
122
+ const valuePropStr = vue.computed(() => column.value?.componentProps?.valueAttr || props.valueProp);
123
+ const handleClose = (val)=>{
124
+
125
+ // 优化后
126
+ // 1. 空值兜底:避免 modelValue.value 为 null/undefined 时报错
127
+ const currentModelValue = Array.isArray(modelValue.value) ? modelValue.value : [];
128
+ // 2. 严格相等 + 类型统一:解决 1 vs "1" 不匹配,同时避免隐式类型转换
129
+ modelValue.value = currentModelValue.filter(item =>
130
+ String(item) !== String(val.value)
131
+ );
132
+
133
+ };
134
+ const handleIconClick = () => {
135
+ if (isHoverIcon.value) {
136
+ // 多选清空逻辑:重置 modelValue 为空数组
137
+ modelValue.value = [];
138
+ isHoverIcon.value = false; // 重置悬浮状态
139
+ return;
140
+ }
141
+ // 原有逻辑:切换下拉显隐
142
+ isShowPopper.value = !isShowPopper.value;
143
+ };
144
+ const getData = async (query) => {
145
+ loading.value = true;
146
+ const { itfInfo, searchAttr } = column.value.componentProps;
147
+ const {url, method, options, params } = {
148
+ url: vue.unref(itfInfo).url,
149
+ method: vue.unref(itfInfo).method || 'POST',
150
+ options: vue.unref(itfInfo).options || {},
151
+ params: { ...vue.unref(itfInfo).params, [searchAttr]: query || ''} || {},
152
+ };
153
+ data.value = (await vue.unref(httpRequest)[method.toLowerCase()](url, params, options))?.data;
154
+ loading.value = false;
155
+ };
156
+
157
+ data.value = props.options ?? [];
158
+ const visibleChange = (val) => {
159
+ isShowPopper.value = val;
160
+ if (!val || !column.value.componentProps || column.value?.componentProps?.options) {
161
+ if (isShowPopper.value && props.isRequiredByVisibleChange) {
162
+ emit('search', '');
163
+ }
164
+ return
165
+ }
166
+ getData();
167
+ };
168
+
169
+ const handleFieldSearch = (query) => {
170
+ if (column.value.componentProps) {
171
+ getData(query);
172
+ } else {
173
+ emit('search', query);
174
+ }
175
+ };
176
+
177
+ const search = vue.ref('');
178
+ vue.watch(() => search.value, val => {
179
+ handleFieldSearch(val);
180
+ });
181
+
182
+ const modelValue = vue.computed({
183
+ get: () => {
184
+ if (props.multiple) {
185
+ return Array.isArray(props.modelValue)
186
+ ? props.modelValue.map((item) => item )
187
+ : [];
188
+ } else {
189
+ return props.modelValue == null || Array.isArray(props.modelValue) ? '' : props.modelValue;
190
+ }
191
+ },
192
+ set: (v) => emit('update:modelValue', v),
193
+ });
194
+
195
+ /**
196
+ * 清除已选
197
+ */
198
+ const advanceSelectRef = vue.ref(null);
199
+ const handleClearClick = () => {
200
+ if (advanceSelectRef.value) {
201
+ advanceSelectRef.value.handleClearClick();
202
+ }
203
+ };
204
+
205
+ expose({
206
+ data
207
+ });
208
+
209
+ return (_ctx, _cache) => {
210
+ const _component_CircleClose = vue.resolveComponent("CircleClose");
211
+
212
+ return (vue.openBlock(), vue.createElementBlock("div", {
213
+ class: vue.normalizeClass(vue.unref(ns).e('conditbox'))
214
+ }, [
215
+ (vue.unref(showTitle))
216
+ ? (vue.openBlock(), vue.createElementBlock("div", {
156
217
  key: 0,
157
- class: vue.normalizeClass(vue.unref(ns).e("title"))
158
- }, vue.toDisplayString(vue.unref(column).title), 3)) : vue.createCommentVNode("v-if", true),
159
- vue.createVNode(_component_el_select, {
160
- multiple: __props.multiple,
161
- modelValue: vue.unref(modelValue),
162
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(modelValue) ? modelValue.value = $event : null),
163
- onVisibleChange: visibleChange,
164
- class: vue.normalizeClass(vue.unref(ns).e("options")),
165
- loading: loading.value,
166
- placeholder: vue.unref(placeholderStr),
167
- clearable: true,
168
- filterable: __props.showSearch,
169
- remote: __props.remote,
170
- "remote-method": remoteMethod,
171
- size: "small"
172
- }, {
173
- default: vue.withCtx(() => [
174
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(data.value, (item) => {
175
- return vue.openBlock(), vue.createBlock(_component_el_option, {
176
- key: item[vue.unref(valuePropStr)] + "",
177
- value: item[vue.unref(valuePropStr)] + "",
178
- label: item[vue.unref(labelPropStr)] + ""
179
- }, null, 8, ["value", "label"]);
180
- }), 128))
181
- ]),
182
- _: 1
183
- }, 8, ["multiple", "modelValue", "class", "loading", "placeholder", "filterable", "remote"])
184
- ], 2);
185
- };
186
- }
187
- });
188
- var PctMultipleMenuCondition = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "pct-multiple-menu-condition.vue"]]);
218
+ class: vue.normalizeClass(vue.unref(ns).e('title'))
219
+ }, vue.toDisplayString(vue.unref(column).title), 3 /* TEXT, CLASS */))
220
+ : vue.createCommentVNode("v-if", true),
221
+ vue.createVNode(advanceSelect["default"], {
222
+ multiple: __props.multiple,
223
+ modelValue: vue.unref(modelValue),
224
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (vue.isRef(modelValue) ? (modelValue).value = $event : null)),
225
+ onSearch: handleFieldSearch,
226
+ class: vue.normalizeClass(vue.unref(ns).e('options')),
227
+ onVisibleChange: visibleChange,
228
+ source: "pct",
229
+ showSearch: false,
230
+ showSelectIcon: !__props.multiple,
231
+ showSelection: false,
232
+ loading: loading.value,
233
+ width: popperWidth.value,
234
+ borderRadius: "4px",
235
+ ref_key: "advanceSelectRef",
236
+ ref: advanceSelectRef
237
+ }, {
238
+ "reference-content": vue.withCtx(({ selected }) => [
239
+ (__props.multiple)
240
+ ? (vue.openBlock(), vue.createElementBlock("div", {
241
+ key: 0,
242
+ class: vue.normalizeClass(vue.unref(ns).e('content'))
243
+ }, [
244
+ (selected && selected.length > 0)
245
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
246
+ vue.createVNode(vue.unref(ElementPlus.ElTooltip), {
247
+ content: selected[0].label,
248
+ placement: "top",
249
+ effect: "light",
250
+ "append-to": ".bwa-application"
251
+ }, {
252
+ default: vue.withCtx(() => [
253
+ vue.createVNode(vue.unref(ElementPlus.ElTag), {
254
+ class: vue.normalizeClass(vue.unref(ns).e('tag')),
255
+ closable: "",
256
+ onClose: $event => (handleClose(selected[0])),
257
+ type: "info"
258
+ }, {
259
+ default: vue.withCtx(() => [
260
+ vue.createTextVNode(vue.toDisplayString(selected[0].label), 1 /* TEXT */)
261
+ ]),
262
+ _: 2 /* DYNAMIC */
263
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "onClose"])
264
+ ]),
265
+ _: 2 /* DYNAMIC */
266
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["content"]),
267
+ vue.createVNode(vue.unref(ElementPlus.ElTooltip), {
268
+ content: "Bottom center",
269
+ placement: "top",
270
+ effect: "light",
271
+ "append-to": ".bwa-application"
272
+ }, {
273
+ content: vue.withCtx(() => [
274
+ vue.createElementVNode("div", {
275
+ class: vue.normalizeClass(vue.unref(ns).e('tag_box'))
276
+ }, [
277
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(selected, (item, index) => {
278
+ return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
279
+ (index !== 0)
280
+ ? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElTag), {
281
+ key: 0,
282
+ class: vue.normalizeClass(vue.unref(ns).e('tag_details')),
283
+ type: "info",
284
+ closable: "",
285
+ onClose: $event => (handleClose(item))
286
+ }, {
287
+ default: vue.withCtx(() => [
288
+ vue.createTextVNode(vue.toDisplayString(item.label), 1 /* TEXT */)
289
+ ]),
290
+ _: 2 /* DYNAMIC */
291
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "onClose"]))
292
+ : vue.createCommentVNode("v-if", true)
293
+ ], 64 /* STABLE_FRAGMENT */))
294
+ }), 256 /* UNKEYED_FRAGMENT */))
295
+ ], 2 /* CLASS */)
296
+ ]),
297
+ default: vue.withCtx(() => [
298
+ (selected.length > 1)
299
+ ? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElTag), {
300
+ key: 0,
301
+ class: vue.normalizeClass(vue.unref(ns).e('tag')),
302
+ type: "info"
303
+ }, {
304
+ default: vue.withCtx(() => [
305
+ vue.createTextVNode("+" + vue.toDisplayString(selected.length - 1), 1 /* TEXT */)
306
+ ]),
307
+ _: 2 /* DYNAMIC */
308
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class"]))
309
+ : vue.createCommentVNode("v-if", true)
310
+ ]),
311
+ _: 2 /* DYNAMIC */
312
+ }, 1024 /* DYNAMIC_SLOTS */)
313
+ ]))
314
+ : (vue.openBlock(), vue.createElementBlock("div", {
315
+ key: 1,
316
+ class: vue.normalizeClass(vue.unref(ns).e('contentBox_placeholder'))
317
+ }, vue.toDisplayString(vue.unref(placeholderStr)), 3 /* TEXT, CLASS */)),
318
+ vue.createVNode(vue.unref(ElementPlus.ElIcon), {
319
+ onMouseenter: _cache[0] || (_cache[0] = $event => (isHoverIcon.value = true)),
320
+ onMouseleave: _cache[1] || (_cache[1] = $event => (isHoverIcon.value = false)),
321
+ onClick: vue.withModifiers(handleIconClick, ["stop"]),
322
+ class: vue.normalizeClass(vue.unref(ns).be('option', 'selected'))
323
+ }, {
324
+ default: vue.withCtx(() => [
325
+ (isHoverIcon.value && selected.length > 0)
326
+ ? (vue.openBlock(), vue.createBlock(_component_CircleClose, {
327
+ key: 0,
328
+ class: "delete-icon"
329
+ }))
330
+ : (isShowPopper.value)
331
+ ? (vue.openBlock(), vue.createBlock(vue.unref(icons.ArrowUp), { key: 1 }))
332
+ : (vue.openBlock(), vue.createBlock(vue.unref(icons.ArrowDown), { key: 2 }))
333
+ ]),
334
+ _: 2 /* DYNAMIC */
335
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "class"])
336
+ ], 2 /* CLASS */))
337
+ : (vue.openBlock(), vue.createElementBlock("div", {
338
+ key: 1,
339
+ class: vue.normalizeClass(vue.unref(ns).e('content'))
340
+ }, [
341
+ vue.createVNode(vue.unref(ElementPlus.ElTooltip), {
342
+ disabled: !selected.label,
343
+ content: selected.label,
344
+ placement: "top",
345
+ effect: "light",
346
+ "append-to": ".bwa-application"
347
+ }, {
348
+ default: vue.withCtx(() => [
349
+ (selected.label)
350
+ ? (vue.openBlock(), vue.createElementBlock("div", {
351
+ key: 0,
352
+ class: vue.normalizeClass([vue.unref(ns).e('contentBox'), vue.unref(ns).e('contentBox_label')])
353
+ }, vue.toDisplayString(selected.label || vue.unref(placeholderStr)), 3 /* TEXT, CLASS */))
354
+ : (vue.openBlock(), vue.createElementBlock("div", {
355
+ key: 1,
356
+ class: vue.normalizeClass([vue.unref(ns).e('contentBox'), vue.unref(ns).e('contentBox_placeholder')])
357
+ }, vue.toDisplayString(vue.unref(placeholderStr)), 3 /* TEXT, CLASS */))
358
+ ]),
359
+ _: 2 /* DYNAMIC */
360
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled", "content"]),
361
+ vue.createVNode(vue.unref(ElementPlus.ElIcon), {
362
+ class: vue.normalizeClass(vue.unref(ns).be('option', 'selected'))
363
+ }, {
364
+ default: vue.withCtx(() => [
365
+ (isShowPopper.value)
366
+ ? (vue.openBlock(), vue.createBlock(vue.unref(icons.ArrowUp), { key: 0 }))
367
+ : (vue.openBlock(), vue.createBlock(vue.unref(icons.ArrowDown), { key: 1 }))
368
+ ]),
369
+ _: 1 /* STABLE */
370
+ }, 8 /* PROPS */, ["class"])
371
+ ], 2 /* CLASS */))
372
+ ]),
373
+ contentTop: vue.withCtx(() => [
374
+ (__props.showSearch && !vue.unref(column).componentProps?.options)
375
+ ? (vue.openBlock(), vue.createElementBlock("div", {
376
+ key: 0,
377
+ class: vue.normalizeClass(vue.unref(ns).e('contentTop'))
378
+ }, [
379
+ vue.createVNode(vue.unref(ElementPlus.ElInput), {
380
+ modelValue: search.value,
381
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((search).value = $event)),
382
+ class: vue.normalizeClass(vue.unref(ns).e('select')),
383
+ placeholder: vue.unref(searchPlaceholderStr),
384
+ type: "text",
385
+ "prefix-icon": "Search",
386
+ clearable: ""
387
+ }, null, 8 /* PROPS */, ["modelValue", "class", "placeholder"])
388
+ ], 2 /* CLASS */))
389
+ : vue.createCommentVNode("v-if", true)
390
+ ]),
391
+ contentBottom: vue.withCtx(() => [
392
+ vue.createElementVNode("div", {
393
+ class: vue.normalizeClass(vue.unref(ns).e('clear')),
394
+ onClick: handleClearClick
395
+ }, "清除已选", 2 /* CLASS */)
396
+ ]),
397
+ default: vue.withCtx(() => [
398
+ vue.renderSlot(_ctx.$slots, "default", {}, () => [
399
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(data.value, (item) => {
400
+ return (vue.openBlock(), vue.createBlock(advanceOption["default"], {
401
+ key: item[vue.unref(valuePropStr)] + '',
402
+ value: item[vue.unref(valuePropStr)] + '',
403
+ label: item[vue.unref(labelPropStr)] + '',
404
+ class: vue.normalizeClass(vue.unref(ns).be('filter', 'option'))
405
+ }, null, 8 /* PROPS */, ["value", "label", "class"]))
406
+ }), 128 /* KEYED_FRAGMENT */))
407
+ ])
408
+ ]),
409
+ _: 3 /* FORWARDED */
410
+ }, 8 /* PROPS */, ["multiple", "modelValue", "class", "showSelectIcon", "loading", "width"])
411
+ ], 2 /* CLASS */))
412
+ }
413
+ }
414
+
415
+ };
416
+ var PctMultipleMenuCondition = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"pct-multiple-menu-condition.vue"]]);
189
417
 
190
418
  exports["default"] = PctMultipleMenuCondition;