@ctzy-web-client/plugin-component-vue 1.0.23 → 1.0.25

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
@@ -1,188 +1,218 @@
1
- import { defineComponent, inject, toRefs, useSlots, computed, unref, watch, onBeforeUnmount, provide, reactive, getCurrentInstance, resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createVNode, isRef, withCtx, renderSlot, toDisplayString, createCommentVNode, createBlock, createElementVNode, Fragment, createTextVNode, withDirectives, renderList, normalizeStyle } from 'vue';
1
+ import { inject, toRefs, useSlots, computed, unref, watch, onBeforeUnmount, provide, reactive, getCurrentInstance, resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createVNode, isRef, withCtx, renderSlot, toDisplayString, createCommentVNode, createBlock, createElementVNode, Fragment, createTextVNode, withDirectives, renderList, normalizeStyle } from 'vue';
2
2
  import { Observable, debounceTime } from 'rxjs';
3
3
  import { useGlobalConfig, filterPanelItemKey, useNamespace, advanceSelectKey } from '@ctzy-web-client/web-base-client-vue';
4
4
  import { dataProps, useData } from '../hooks/use-data/index.mjs';
5
5
  import AdvanceOperation from './advance-operation.mjs';
6
- import AdvanceOption from './advance-option.mjs';
6
+ import BwaAdvanceOption from './advance-option.mjs';
7
7
  import { useAdvanceSelectStates, useAdvanceSelect } from './use-advance-select.mjs';
8
8
  import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
9
9
 
10
- const __default__ = defineComponent({
11
- name: "BwaAdvanceSelect"
12
- });
13
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
14
- props: {
15
- ...dataProps,
16
- options: {
17
- type: Array
18
- },
19
- modelValue: {
20
- type: [Array, String, Number, Boolean]
21
- },
22
- listHeight: {
23
- type: String,
24
- default: "300px"
25
- },
26
- width: {
27
- type: String,
28
- default: "240px"
29
- },
30
- multiple: {
31
- type: Boolean,
32
- default: true
33
- },
34
- multipleLimit: {
35
- type: Number,
36
- default: 0
37
- },
38
- required: {
39
- type: Boolean,
40
- default: false
41
- },
42
- showSearch: {
43
- type: Boolean,
44
- default: true
45
- },
46
- searchPlaceholder: {
47
- type: String,
48
- default: ""
49
- },
50
- showSelection: {
51
- type: Boolean,
52
- default: true
53
- },
54
- showSelectIcon: {
55
- type: Boolean,
56
- default: true
57
- },
58
- closeAfterSelection: {
59
- typoe: Boolean,
60
- default: false
61
- },
62
- loading: {
63
- type: Boolean,
64
- default: false
65
- },
66
- virtualRef: null,
67
- virtualTriggering: {
68
- type: Boolean,
69
- default: false
70
- },
71
- source: "",
72
- borderRadius: {
73
- type: String,
74
- default: "0px"
75
- }
76
- },
77
- emits: ["update:modelValue", "search", "visible-change"],
10
+ const _sfc_main = {
11
+ __name: 'advance-select',
12
+ props: {
13
+ ...dataProps,
14
+ options: {
15
+ type: Array,
16
+ },
17
+ modelValue: {
18
+ type: [Array, String, Number, Boolean],
19
+ },
20
+ listHeight: {
21
+ type: String,
22
+ default: '300px',
23
+ },
24
+ width: {
25
+ type: String,
26
+ default: '240px',
27
+ },
28
+ multiple: {
29
+ type: Boolean,
30
+ default: true,
31
+ },
32
+ multipleLimit: {
33
+ type: Number,
34
+ default: 0,
35
+ },
36
+ required: {
37
+ type: Boolean,
38
+ default: false,
39
+ },
40
+ showSearch: {
41
+ type: Boolean,
42
+ default: true,
43
+ },
44
+ searchPlaceholder: {
45
+ type: String,
46
+ default: '',
47
+ },
48
+ showSelection: {
49
+ type: Boolean,
50
+ default: true,
51
+ },
52
+ showSelectIcon: {
53
+ type: Boolean,
54
+ default: true,
55
+ },
56
+ closeAfterSelection: {
57
+ typoe: Boolean,
58
+ default: false,
59
+ },
60
+ loading: {
61
+ type: Boolean,
62
+ default: false,
63
+ },
64
+ virtualRef: null,
65
+ virtualTriggering: {
66
+ type: Boolean,
67
+ default: false,
68
+ },
69
+ source: '',
70
+ borderRadius: {
71
+ type: String,
72
+ default: '0px',
73
+ },
74
+ },
75
+ emits: ['update:modelValue', 'search', 'visible-change'],
78
76
  setup(__props, { expose, emit }) {
79
- const props = __props;
80
- const debounceDelay = useGlobalConfig("debounceDelay", 500);
81
- const filterPanelItem = inject(filterPanelItemKey, null);
82
- const { listHeight, width, showSearch, showSelection, multiple, modelValue, borderRadius } = toRefs(props);
83
- const slots = useSlots();
84
- const ns = useNamespace("advance");
85
- const states = useAdvanceSelectStates(props);
86
- const {
87
- options: optionInstances,
88
- optionsCount,
89
- search,
90
- isShowPopper,
91
- selected
92
- } = toRefs(states);
93
- const column = computed(() => {
94
- var _a;
95
- return (_a = filterPanelItem == null ? void 0 : filterPanelItem.column) != null ? _a : null;
96
- });
97
- const {
98
- selectedLabel,
99
- onOptionCreate,
100
- onOptionDestroy,
101
- handleClearClick,
102
- handleOptionSelect,
103
- hidePoppper
104
- } = useAdvanceSelect(props, states, {
105
- emit
106
- });
107
- const disabled = computed(() => !unref(isShowPopper));
108
- const { data: itfData, loading: dataLoading } = useData(disabled, search);
109
- const loading = computed(() => props.loading || unref(dataLoading));
110
- const data = computed(() => props.options || unref(itfData));
111
- if (multiple.value && !Array.isArray(modelValue.value)) {
112
- emit("update:modelValue", []);
113
- }
114
- if (!multiple.value && Array.isArray(modelValue.value)) {
115
- emit("update:modelValue", "");
116
- }
117
- watch(isShowPopper, (isShowPopper2) => {
118
- emit("visible-change", isShowPopper2);
119
- });
120
- const subscription = new Observable(
121
- (observer) => watch(search, observer.next.bind(observer))
122
- ).pipe(debounceTime(unref(debounceDelay))).subscribe(emit.bind(null, "search"));
123
- onBeforeUnmount(subscription.unsubscribe.bind(subscription));
124
- provide(
125
- advanceSelectKey,
126
- reactive({
127
- props,
128
- options: optionInstances,
129
- selected,
130
- onOptionCreate,
131
- onOptionDestroy,
132
- handleOptionSelect,
133
- hidePoppper,
134
- select: getCurrentInstance()
135
- })
136
- );
137
- const popperStyle = reactive({
138
- padding: "0",
139
- borderRadius,
140
- width,
141
- border: "none",
142
- boxShadow: `0 3px 12px 0 rgb(0 0 0 / 12%), 0 0.5px 1.5px 0 rgb(0 0 0 / 8%)`
143
- });
144
- expose({
145
- handleClearClick
146
- });
147
- return (_ctx, _cache) => {
148
- const _component_CaretBottom = resolveComponent("CaretBottom");
149
- const _component_ElIcon = resolveComponent("ElIcon");
150
- const _component_ElInput = resolveComponent("ElInput");
151
- const _component_ElButton = resolveComponent("ElButton");
152
- const _component_ElScrollbar = resolveComponent("ElScrollbar");
153
- const _component_ElTooltip = resolveComponent("ElTooltip");
154
- const _directive_loading = resolveDirective("loading");
155
- return openBlock(), createElementBlock("div", {
156
- class: normalizeClass(unref(ns).b("select")),
157
- "data-prefix": "el",
158
- ref: "selectWrapper"
159
- }, [
160
- createVNode(_component_ElTooltip, {
161
- class: normalizeClass(unref(ns).be("select", "tooltip")),
162
- effect: "light",
163
- trigger: "click",
164
- placement: "bottom-start",
165
- "show-arrow": false,
166
- "append-to": ".bwa-application",
167
- "popper-style": popperStyle,
168
- "popper-class": unref(ns).be("select", "popper"),
169
- persistent: true,
170
- visible: unref(isShowPopper),
171
- "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => isRef(isShowPopper) ? isShowPopper.value = $event : null),
172
- "virtual-ref": __props.virtualRef,
173
- "virtual-triggering": __props.virtualTriggering
174
- }, {
175
- default: withCtx(() => [
176
- renderSlot(_ctx.$slots, "reference", {
177
- label: unref(selectedLabel),
178
- column: unref(column)
179
- }, () => [
180
- __props.source ? (openBlock(), createElementBlock("div", {
77
+
78
+ const props = __props;
79
+
80
+ defineOptions({
81
+ name: 'BwaAdvanceSelect',
82
+ });
83
+
84
+
85
+
86
+
87
+
88
+ const debounceDelay = useGlobalConfig('debounceDelay', 500);
89
+
90
+ const filterPanelItem = inject(filterPanelItemKey, null);
91
+
92
+ const { listHeight, width, showSearch, showSelection, multiple, modelValue, borderRadius } =
93
+ toRefs(props);
94
+
95
+ const slots = useSlots();
96
+
97
+ const ns = useNamespace('advance');
98
+
99
+ const states = useAdvanceSelectStates(props);
100
+
101
+ const {
102
+ options: optionInstances,
103
+ optionsCount,
104
+ search,
105
+ isShowPopper,
106
+ selected,
107
+ } = toRefs(states);
108
+
109
+ const column = computed(() => filterPanelItem?.column ?? null);
110
+
111
+ const {
112
+ selectedLabel,
113
+ onOptionCreate,
114
+ onOptionDestroy,
115
+ handleClearClick,
116
+ handleOptionSelect,
117
+ hidePoppper,
118
+ } = useAdvanceSelect(props, states, {
119
+ emit,
120
+ });
121
+
122
+ const disabled = computed(() => !unref(isShowPopper));
123
+ // console.log(column,disabled,search)
124
+ const { data: itfData, loading: dataLoading } = useData(disabled, search);
125
+
126
+ const loading = computed(() => props.loading || unref(dataLoading));
127
+
128
+ const data = computed(() => props.options || unref(itfData));
129
+
130
+ if (multiple.value && !Array.isArray(modelValue.value)) {
131
+ emit('update:modelValue', []);
132
+ }
133
+ if (!multiple.value && Array.isArray(modelValue.value)) {
134
+ emit('update:modelValue', '');
135
+ }
136
+
137
+ watch(isShowPopper, (isShowPopper) => {
138
+ emit('visible-change', isShowPopper);
139
+ });
140
+
141
+ const subscription = new Observable((observer) =>
142
+ watch(search, observer.next.bind(observer))
143
+ )
144
+ .pipe(debounceTime(unref(debounceDelay)))
145
+ .subscribe(emit.bind(null, 'search'));
146
+
147
+ onBeforeUnmount(subscription.unsubscribe.bind(subscription));
148
+
149
+ provide(
150
+ advanceSelectKey,
151
+ reactive({
152
+ props,
153
+ options: optionInstances,
154
+ selected,
155
+ onOptionCreate,
156
+ onOptionDestroy,
157
+ handleOptionSelect,
158
+ hidePoppper,
159
+ select: getCurrentInstance(),
160
+ })
161
+ );
162
+
163
+ const popperStyle = reactive({
164
+ padding: '0',
165
+ borderRadius,
166
+ width,
167
+ border: 'none',
168
+ boxShadow: `0 3px 12px 0 rgb(0 0 0 / 12%), 0 0.5px 1.5px 0 rgb(0 0 0 / 8%)`,
169
+ });
170
+
171
+ expose({
172
+ handleClearClick
173
+ });
174
+
175
+ return (_ctx, _cache) => {
176
+ const _component_CaretBottom = resolveComponent("CaretBottom");
177
+ const _component_ElIcon = resolveComponent("ElIcon");
178
+ const _component_ElInput = resolveComponent("ElInput");
179
+ const _component_ElButton = resolveComponent("ElButton");
180
+ const _component_ElScrollbar = resolveComponent("ElScrollbar");
181
+ const _component_ElTooltip = resolveComponent("ElTooltip");
182
+ const _directive_loading = resolveDirective("loading");
183
+
184
+ return (openBlock(), createElementBlock("div", {
185
+ class: normalizeClass(unref(ns).b('select')),
186
+ "data-prefix": "el",
187
+ ref: "selectWrapper"
188
+ }, [
189
+ createVNode(_component_ElTooltip, {
190
+ class: normalizeClass(unref(ns).be('select', 'tooltip')),
191
+ effect: "light",
192
+ trigger: "click",
193
+ placement: "bottom-start",
194
+ "show-arrow": false,
195
+ "append-to": ".bwa-application",
196
+ "popper-style": popperStyle,
197
+ "popper-class": unref(ns).be('select', 'popper'),
198
+ persistent: true,
199
+ visible: unref(isShowPopper),
200
+ "onUpdate:visible": _cache[1] || (_cache[1] = $event => (isRef(isShowPopper) ? (isShowPopper).value = $event : null)),
201
+ "virtual-ref": __props.virtualRef,
202
+ "virtual-triggering": __props.virtualTriggering
203
+ }, {
204
+ default: withCtx(() => [
205
+ renderSlot(_ctx.$slots, "reference", {
206
+ label: unref(selectedLabel),
207
+ column: unref(column)
208
+ }, () => [
209
+ (__props.source)
210
+ ? (openBlock(), createElementBlock("div", {
181
211
  key: 0,
182
- class: normalizeClass([
183
- unref(ns).be("select", "pct-reference"),
184
- unref(ns).is("active", unref(isShowPopper))
185
- ])
212
+ class: normalizeClass([
213
+ unref(ns).be('select', 'pct-reference'),
214
+ unref(ns).is('active', unref(isShowPopper)),
215
+ ])
186
216
  }, [
187
217
  renderSlot(_ctx.$slots, "reference-content", {
188
218
  label: unref(selectedLabel),
@@ -190,38 +220,45 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
190
220
  selected: unref(selected)
191
221
  }, () => [
192
222
  renderSlot(_ctx.$slots, "label", {}, () => [
193
- unref(column) ? (openBlock(), createElementBlock("span", {
194
- key: 0,
195
- class: normalizeClass(unref(ns).be("select", "label"))
196
- }, toDisplayString(unref(column).title), 3)) : createCommentVNode("v-if", true)
223
+ (unref(column))
224
+ ? (openBlock(), createElementBlock("span", {
225
+ key: 0,
226
+ class: normalizeClass(unref(ns).be('select', 'label'))
227
+ }, toDisplayString(unref(column).title), 3 /* TEXT, CLASS */))
228
+ : createCommentVNode("v-if", true)
197
229
  ]),
198
230
  renderSlot(_ctx.$slots, "value", { selected: unref(selected) }, () => [
199
- unref(multiple) ? (openBlock(), createElementBlock("span", {
200
- key: 0,
201
- class: normalizeClass(unref(ns).be("select", "content"))
202
- }, toDisplayString(unref(selectedLabel).length ? unref(selectedLabel).join(",") : "\u5168\u90E8"), 3)) : (openBlock(), createElementBlock("span", {
203
- key: 1,
204
- class: normalizeClass(unref(ns).be("select", "content"))
205
- }, toDisplayString(unref(selectedLabel) ? unref(selectedLabel) : "\u5168\u90E8"), 3))
231
+ (unref(multiple))
232
+ ? (openBlock(), createElementBlock("span", {
233
+ key: 0,
234
+ class: normalizeClass(unref(ns).be('select', 'content'))
235
+ }, toDisplayString(unref(selectedLabel).length ? unref(selectedLabel).join(',') : '全部'), 3 /* TEXT, CLASS */))
236
+ : (openBlock(), createElementBlock("span", {
237
+ key: 1,
238
+ class: normalizeClass(unref(ns).be('select', 'content'))
239
+ }, toDisplayString(unref(selectedLabel) ? unref(selectedLabel) : '全部'), 3 /* TEXT, CLASS */))
206
240
  ]),
207
- __props.showSelectIcon ? (openBlock(), createBlock(_component_ElIcon, {
208
- key: 0,
209
- class: normalizeClass(unref(ns).be("select", "caret"))
210
- }, {
211
- default: withCtx(() => [
212
- renderSlot(_ctx.$slots, "icon", {}, () => [
213
- createVNode(_component_CaretBottom)
214
- ])
215
- ]),
216
- _: 3
217
- }, 8, ["class"])) : createCommentVNode("v-if", true)
241
+ (__props.showSelectIcon)
242
+ ? (openBlock(), createBlock(_component_ElIcon, {
243
+ key: 0,
244
+ class: normalizeClass(unref(ns).be('select', 'caret'))
245
+ }, {
246
+ default: withCtx(() => [
247
+ renderSlot(_ctx.$slots, "icon", {}, () => [
248
+ createVNode(_component_CaretBottom)
249
+ ])
250
+ ]),
251
+ _: 3 /* FORWARDED */
252
+ }, 8 /* PROPS */, ["class"]))
253
+ : createCommentVNode("v-if", true)
218
254
  ])
219
- ], 2)) : (openBlock(), createElementBlock("div", {
255
+ ], 2 /* CLASS */))
256
+ : (openBlock(), createElementBlock("div", {
220
257
  key: 1,
221
- class: normalizeClass([
222
- unref(ns).be("select", "reference"),
223
- unref(ns).is("active", unref(isShowPopper))
224
- ])
258
+ class: normalizeClass([
259
+ unref(ns).be('select', 'reference'),
260
+ unref(ns).is('active', unref(isShowPopper)),
261
+ ])
225
262
  }, [
226
263
  renderSlot(_ctx.$slots, "reference-content", {
227
264
  label: unref(selectedLabel),
@@ -229,131 +266,152 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
229
266
  selected: unref(selected)
230
267
  }, () => [
231
268
  renderSlot(_ctx.$slots, "label", {}, () => [
232
- unref(column) ? (openBlock(), createElementBlock("span", {
233
- key: 0,
234
- class: normalizeClass(unref(ns).be("select", "label"))
235
- }, toDisplayString(unref(column).title), 3)) : createCommentVNode("v-if", true)
269
+ (unref(column))
270
+ ? (openBlock(), createElementBlock("span", {
271
+ key: 0,
272
+ class: normalizeClass(unref(ns).be('select', 'label'))
273
+ }, toDisplayString(unref(column).title), 3 /* TEXT, CLASS */))
274
+ : createCommentVNode("v-if", true)
236
275
  ]),
237
276
  renderSlot(_ctx.$slots, "value", { selected: unref(selected) }, () => [
238
- unref(multiple) ? (openBlock(), createElementBlock("span", {
239
- key: 0,
240
- class: normalizeClass(unref(ns).be("select", "content"))
241
- }, toDisplayString(unref(selectedLabel).length ? unref(selectedLabel).join(",") : "\u5168\u90E8"), 3)) : (openBlock(), createElementBlock("span", {
242
- key: 1,
243
- class: normalizeClass(unref(ns).be("select", "content"))
244
- }, toDisplayString(unref(selectedLabel) ? unref(selectedLabel) : "\u5168\u90E8"), 3))
277
+ (unref(multiple))
278
+ ? (openBlock(), createElementBlock("span", {
279
+ key: 0,
280
+ class: normalizeClass(unref(ns).be('select', 'content'))
281
+ }, toDisplayString(unref(selectedLabel).length ? unref(selectedLabel).join(',') : '全部'), 3 /* TEXT, CLASS */))
282
+ : (openBlock(), createElementBlock("span", {
283
+ key: 1,
284
+ class: normalizeClass(unref(ns).be('select', 'content'))
285
+ }, toDisplayString(unref(selectedLabel) ? unref(selectedLabel) : '全部'), 3 /* TEXT, CLASS */))
245
286
  ])
246
287
  ]),
247
- __props.showSelectIcon ? (openBlock(), createBlock(_component_ElIcon, {
248
- key: 0,
249
- class: normalizeClass(unref(ns).be("select", "caret"))
250
- }, {
251
- default: withCtx(() => [
252
- renderSlot(_ctx.$slots, "icon", {}, () => [
253
- createVNode(_component_CaretBottom)
254
- ])
255
- ]),
256
- _: 3
257
- }, 8, ["class"])) : createCommentVNode("v-if", true)
258
- ], 2))
259
- ])
260
- ]),
261
- content: withCtx(() => [
262
- createElementVNode("div", {
263
- class: normalizeClass([unref(ns).be("select", "content"), unref(ns).is("single", !unref(multiple))]),
264
- style: { "margin": "6px" }
265
- }, [
266
- renderSlot(_ctx.$slots, "contentTop"),
267
- unref(showSearch) ? (openBlock(), createElementBlock("div", {
288
+ (__props.showSelectIcon)
289
+ ? (openBlock(), createBlock(_component_ElIcon, {
290
+ key: 0,
291
+ class: normalizeClass(unref(ns).be('select', 'caret'))
292
+ }, {
293
+ default: withCtx(() => [
294
+ renderSlot(_ctx.$slots, "icon", {}, () => [
295
+ createVNode(_component_CaretBottom)
296
+ ])
297
+ ]),
298
+ _: 3 /* FORWARDED */
299
+ }, 8 /* PROPS */, ["class"]))
300
+ : createCommentVNode("v-if", true)
301
+ ], 2 /* CLASS */))
302
+ ])
303
+ ]),
304
+ content: withCtx(() => [
305
+ createElementVNode("div", {
306
+ class: normalizeClass([unref(ns).be('select', 'content'), unref(ns).is('single', !unref(multiple))]),
307
+ style: {'margin': '6px'}
308
+ }, [
309
+ renderSlot(_ctx.$slots, "contentTop"),
310
+ (unref(showSearch))
311
+ ? (openBlock(), createElementBlock("div", {
268
312
  key: 0,
269
- class: normalizeClass(unref(ns).be("select", "input-wrapper"))
313
+ class: normalizeClass(unref(ns).be('select', 'input-wrapper'))
270
314
  }, [
271
315
  createVNode(_component_ElInput, {
272
316
  modelValue: unref(search),
273
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(search) ? search.value = $event : null),
274
- class: normalizeClass(unref(ns).be("select", "input")),
317
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(search) ? (search).value = $event : null)),
318
+ class: normalizeClass(unref(ns).be('select', 'input')),
275
319
  placeholder: __props.searchPlaceholder,
276
320
  type: "text",
277
321
  "prefix-icon": "Search",
278
322
  clearable: ""
279
- }, null, 8, ["modelValue", "class", "placeholder"])
280
- ], 2)) : createCommentVNode("v-if", true),
281
- createElementVNode("div", {
282
- class: normalizeClass(unref(ns).be("select", "operation-wrapper"))
283
- }, [
284
- unref(multiple) || !__props.required ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
285
- unref(showSelection) ? (openBlock(), createBlock(AdvanceOperation, {
286
- key: 0,
287
- class: normalizeClass(unref(ns).be("select", "selection-wrapper")),
288
- type: "selection",
289
- border: true
290
- }, {
291
- default: withCtx(() => [
292
- unref(multiple) ? (openBlock(), createElementBlock("span", {
323
+ }, null, 8 /* PROPS */, ["modelValue", "class", "placeholder"])
324
+ ], 2 /* CLASS */))
325
+ : createCommentVNode("v-if", true),
326
+ createElementVNode("div", {
327
+ class: normalizeClass(unref(ns).be('select', 'operation-wrapper'))
328
+ }, [
329
+ (unref(multiple) || !__props.required)
330
+ ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
331
+ (unref(showSelection))
332
+ ? (openBlock(), createBlock(AdvanceOperation, {
293
333
  key: 0,
294
- class: normalizeClass([
295
- unref(ns).be("select", "selection"),
296
- unref(ns).is("has-selected", !!unref(selected).length)
297
- ])
298
- }, " \u5DF2\u9009" + toDisplayString(unref(selected).length) + "\u9879 ", 3)) : createCommentVNode("v-if", true),
299
- !__props.required ? (openBlock(), createBlock(_component_ElButton, {
300
- key: 1,
301
- link: "",
302
- type: "primary",
303
- class: normalizeClass(unref(ns).be("select", "clear")),
304
- onClick: unref(handleClearClick)
334
+ class: normalizeClass(unref(ns).be('select', 'selection-wrapper')),
335
+ type: "selection",
336
+ border: true
305
337
  }, {
306
338
  default: withCtx(() => [
307
- createTextVNode(" \u6E05\u9664\u9009\u9879 ")
308
- ]),
309
- _: 1
310
- }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
311
- ]),
312
- _: 1
313
- }, 8, ["class"])) : createCommentVNode("v-if", true)
314
- ], 64)) : createCommentVNode("v-if", true),
315
- renderSlot(_ctx.$slots, "operation")
316
- ], 2),
317
- withDirectives((openBlock(), createElementBlock("div", {
318
- class: normalizeClass(unref(ns).be("select", "list"))
319
- }, [
320
- createVNode(_component_ElScrollbar, { "max-height": unref(listHeight) }, {
321
- default: withCtx(() => [
322
- renderSlot(_ctx.$slots, "default", {}, () => [
323
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(data), (item) => {
324
- return openBlock(), createBlock(AdvanceOption, {
325
- key: item.value,
326
- value: item.value,
327
- label: item.label
328
- }, null, 8, ["value", "label"]);
329
- }), 128))
339
+ (unref(multiple))
340
+ ? (openBlock(), createElementBlock("span", {
341
+ key: 0,
342
+ class: normalizeClass([
343
+ unref(ns).be('select', 'selection'),
344
+ unref(ns).is('has-selected', !!unref(selected).length),
330
345
  ])
331
- ]),
332
- _: 3
333
- }, 8, ["max-height"]),
334
- !unref(optionsCount) ? renderSlot(_ctx.$slots, "empy", { key: 0 }, () => [
335
- createElementVNode("div", {
336
- class: normalizeClass(unref(ns).be("select", "empty"))
337
- }, "\u672A\u5339\u914D\u5230\u76F8\u5173\u6761\u76EE", 2)
338
- ]) : createCommentVNode("v-if", true)
339
- ], 2)), [
340
- [_directive_loading, unref(loading)]
346
+ }, " 已选" + toDisplayString(unref(selected).length) + "项 ", 3 /* TEXT, CLASS */))
347
+ : createCommentVNode("v-if", true),
348
+ (!__props.required)
349
+ ? (openBlock(), createBlock(_component_ElButton, {
350
+ key: 1,
351
+ link: "",
352
+ type: "primary",
353
+ class: normalizeClass(unref(ns).be('select', 'clear')),
354
+ onClick: unref(handleClearClick)
355
+ }, {
356
+ default: withCtx(() => [
357
+ createTextVNode(" 清除选项 ")
358
+ ]),
359
+ _: 1 /* STABLE */
360
+ }, 8 /* PROPS */, ["class", "onClick"]))
361
+ : createCommentVNode("v-if", true)
362
+ ]),
363
+ _: 1 /* STABLE */
364
+ }, 8 /* PROPS */, ["class"]))
365
+ : createCommentVNode("v-if", true)
366
+ ], 64 /* STABLE_FRAGMENT */))
367
+ : createCommentVNode("v-if", true),
368
+ renderSlot(_ctx.$slots, "operation")
369
+ ], 2 /* CLASS */),
370
+ withDirectives((openBlock(), createElementBlock("div", {
371
+ class: normalizeClass(unref(ns).be('select', 'list'))
372
+ }, [
373
+ createVNode(_component_ElScrollbar, { "max-height": unref(listHeight) }, {
374
+ default: withCtx(() => [
375
+ renderSlot(_ctx.$slots, "default", {}, () => [
376
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(data), (item) => {
377
+ return (openBlock(), createBlock(BwaAdvanceOption, {
378
+ key: item.value,
379
+ value: item.value,
380
+ label: item.label
381
+ }, null, 8 /* PROPS */, ["value", "label"]))
382
+ }), 128 /* KEYED_FRAGMENT */))
383
+ ])
341
384
  ]),
342
- unref(slots).contentBottom ? (openBlock(), createElementBlock("div", {
385
+ _: 3 /* FORWARDED */
386
+ }, 8 /* PROPS */, ["max-height"]),
387
+ (!unref(optionsCount))
388
+ ? renderSlot(_ctx.$slots, "empy", { key: 0 }, () => [
389
+ createElementVNode("div", {
390
+ class: normalizeClass(unref(ns).be('select', 'empty'))
391
+ }, "未匹配到相关条目", 2 /* CLASS */)
392
+ ])
393
+ : createCommentVNode("v-if", true)
394
+ ], 2 /* CLASS */)), [
395
+ [_directive_loading, unref(loading)]
396
+ ]),
397
+ (unref(slots).contentBottom)
398
+ ? (openBlock(), createElementBlock("div", {
343
399
  key: 1,
344
- class: normalizeClass(unref(ns).be("select", "bottom")),
345
- style: normalizeStyle({ "boxShadow": __props.source ? "none" : "", "padding": __props.source ? "0" : "4px 0px" })
400
+ class: normalizeClass(unref(ns).be('select', 'bottom')),
401
+ style: normalizeStyle({'boxShadow': __props.source ? 'none': '', 'padding': __props.source ? '0': '4px 0px',})
346
402
  }, [
347
403
  renderSlot(_ctx.$slots, "contentBottom")
348
- ], 6)) : createCommentVNode("v-if", true)
349
- ], 2)
350
- ]),
351
- _: 3
352
- }, 8, ["class", "popper-style", "popper-class", "visible", "virtual-ref", "virtual-triggering"])
353
- ], 2);
354
- };
355
- }
356
- });
357
- var AdvanceSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "advance-select.vue"]]);
404
+ ], 6 /* CLASS, STYLE */))
405
+ : createCommentVNode("v-if", true)
406
+ ], 2 /* CLASS */)
407
+ ]),
408
+ _: 3 /* FORWARDED */
409
+ }, 8 /* PROPS */, ["class", "popper-style", "popper-class", "visible", "virtual-ref", "virtual-triggering"])
410
+ ], 2 /* CLASS */))
411
+ }
412
+ }
413
+
414
+ };
415
+ var BwaAdvanceSelect = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"advance-select.vue"]]);
358
416
 
359
- export { AdvanceSelect as default };
417
+ export { BwaAdvanceSelect as default };