color-star-custom-components 0.0.15 → 0.0.17

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 (73) hide show
  1. package/es/CustomSelect.mjs +1 -1
  2. package/es/IconRenderer.mjs +1 -1
  3. package/es/IconSelect.mjs +1 -1
  4. package/es/SearchBar.mjs +114 -117
  5. package/es/TreeShowSelect.mjs +26 -28
  6. package/es/assets/SearchBar.css +1 -1
  7. package/es/assets/TreeShowSelect.css +1 -1
  8. package/es/chunks/BatchImport.B5inubHt.js +173 -0
  9. package/es/chunks/CustomSelect.DvKTT1Kn.js +5 -0
  10. package/es/chunks/CustomTitle.BBrGK8vA.js +5 -0
  11. package/es/chunks/FileList.CLb0j2ca.js +5 -0
  12. package/es/chunks/GlassProxy.Dek3zo-k.js +176 -0
  13. package/es/chunks/IconEmpty.DoCNu0jY.js +5 -0
  14. package/es/chunks/IconRenderer.DbLSQXFZ.js +60 -0
  15. package/es/chunks/IconSelect.DjNvTfvM.js +162 -0
  16. package/es/chunks/SearchBar.Dw1qAtAa.js +582 -0
  17. package/es/chunks/TreeSelect.BkF207wh.js +5 -0
  18. package/es/chunks/TreeShowSelect.DuVWWk73.js +87 -0
  19. package/es/chunks/UploadFile.Cll5_hce.js +5 -0
  20. package/es/chunks/_plugin-vue_export-helper.BgwWMokO.js +6 -0
  21. package/es/chunks/chunk.CWVlkNTZ.js +18 -0
  22. package/es/chunks/config.SfJn1-ON.js +24 -0
  23. package/es/chunks/config.j-piuAWF.js +24 -0
  24. package/es/chunks/config.t_HHFoB9.js +18 -0
  25. package/es/chunks/global.31sZWaXJ.js +15282 -0
  26. package/es/chunks/global.BEeKea4u.js +1955 -0
  27. package/es/chunks/global.ChqJEry4.js +7973 -0
  28. package/es/chunks/global.CnGuevjX.js +8168 -0
  29. package/es/chunks/layout.4utLpDo3.js +120 -0
  30. package/es/chunks/layout.84FMC7pU.js +121 -0
  31. package/es/chunks/layout.BsFtxlIJ.js +31 -0
  32. package/es/chunks/layout.C5pEEv-d.js +207 -0
  33. package/es/chunks/layout.CokqBzin.js +338 -0
  34. package/es/chunks/layout.Dix22XYV.js +113 -0
  35. package/es/chunks/layout.FqoRQKdx.js +59 -0
  36. package/es/chunks/utils.BFFtVZUp.js +10 -0
  37. package/es/index.mjs +1 -1
  38. package/lib/CustomSelect.js +1 -1
  39. package/lib/IconRenderer.js +1 -1
  40. package/lib/IconSelect.js +1 -1
  41. package/lib/SearchBar.js +1 -1
  42. package/lib/TreeShowSelect.js +1 -1
  43. package/lib/assets/SearchBar.css +1 -1
  44. package/lib/assets/TreeShowSelect.css +1 -1
  45. package/lib/chunks/BatchImport.Be1Oddwm.js +1 -0
  46. package/lib/chunks/CustomSelect.qmizu8jb.js +1 -0
  47. package/lib/chunks/CustomTitle.C_V_RLwQ.js +1 -0
  48. package/lib/chunks/FileList.DK7Iz3hw.js +1 -0
  49. package/lib/chunks/GlassProxy.BurTd4Wo.js +1 -0
  50. package/lib/chunks/IconEmpty.MspO8cAH.js +1 -0
  51. package/lib/chunks/IconRenderer.CepZVN9N.js +1 -0
  52. package/lib/chunks/IconSelect.GFCG4dmy.js +1 -0
  53. package/lib/chunks/SearchBar.C1eP9H7z.js +1 -0
  54. package/lib/chunks/TreeSelect.CKdd24_v.js +1 -0
  55. package/lib/chunks/TreeShowSelect.D06Kgg9y.js +1 -0
  56. package/lib/chunks/UploadFile.FAeNJfgq.js +1 -0
  57. package/lib/chunks/_plugin-vue_export-helper.Bgn9wawX.js +1 -0
  58. package/lib/chunks/chunk.D6xVHP8F.js +1 -0
  59. package/lib/chunks/config.CQdd5R1R.js +1 -0
  60. package/lib/chunks/config.x7rWDsG1.js +1 -0
  61. package/lib/chunks/global.BwmaGr1r.js +1 -0
  62. package/lib/chunks/global.C-GuAavy.js +1 -0
  63. package/lib/chunks/global.CCgRKoj5.js +1 -0
  64. package/lib/chunks/layout.0C5st371.js +1 -0
  65. package/lib/chunks/layout.966lkT12.js +1 -0
  66. package/lib/chunks/layout.C4airLP9.js +1 -0
  67. package/lib/chunks/layout.ChiWtlly.js +1 -0
  68. package/lib/chunks/layout.DF2j_cdu.js +1 -0
  69. package/lib/chunks/layout.DjMFll_s.js +1 -0
  70. package/lib/chunks/layout.DutPtWqI.js +1 -0
  71. package/lib/chunks/utils.a5Y3RKNY.js +1 -0
  72. package/lib/index.js +1 -1
  73. package/package.json +7 -7
@@ -0,0 +1,582 @@
1
+ import { t as withInstall } from "./utils.BFFtVZUp.js";
2
+ import { t as layout_default$1 } from "./layout.C5pEEv-d.js";
3
+ import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.BgwWMokO.js";
4
+ import { t as layout_default$2 } from "./layout.Dix22XYV.js";
5
+ import { t as layout_default$3 } from "./layout.BsFtxlIJ.js";
6
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, guardReactiveProps, mergeProps, normalizeClass, normalizeProps, normalizeStyle, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useCssVars, watch, withCtx, withKeys, withModifiers } from "vue";
7
+ import { ElAutoResizer, ElButton, ElCheckbox, ElCheckboxGroup, ElDatePicker, ElDrawer, ElForm, ElFormItem, ElIcon, ElInput, ElInputNumber, ElPopover, ElRadio, ElRadioGroup, ElSwitch } from "element-plus";
8
+ import { componentType, dateFormat, dateParamsMap, emitsMap, labelPositionMap, operationConfigMap } from "color-star-custom-methods";
9
+ import { IconCheck, IconDown, IconMagnify, IconShrink, IconUp } from "color-message-lingyun-vue";
10
+ import '../assets/SearchBar.css';const operationConfig = [{
11
+ type: "primary",
12
+ label: "查询",
13
+ value: operationConfigMap.search
14
+ }, {
15
+ type: "default",
16
+ label: "重置",
17
+ value: operationConfigMap.reset,
18
+ plain: !0
19
+ }];
20
+ var OperationButtons_default = {
21
+ __name: "OperationButtons",
22
+ props: { operationList: {
23
+ type: Array,
24
+ default: () => []
25
+ } },
26
+ emits: [emitsMap.operation],
27
+ setup(e, { emit: x }) {
28
+ let S = x, C = (e) => {
29
+ S(emitsMap.operation, e);
30
+ };
31
+ return (x, S) => x.$slots.operation ? renderSlot(x.$slots, "operation", {
32
+ key: 0,
33
+ operationList: e.operationList
34
+ }) : (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(e.operationList, (e) => (openBlock(), createBlock(unref(ElButton), {
35
+ key: e.value,
36
+ type: e.type,
37
+ icon: e.icon,
38
+ plain: e.plain,
39
+ onClick: (x) => C(e.value)
40
+ }, {
41
+ default: withCtx(() => [createTextVNode(toDisplayString(e.label), 1)]),
42
+ _: 2
43
+ }, 1032, [
44
+ "type",
45
+ "icon",
46
+ "plain",
47
+ "onClick"
48
+ ]))), 128));
49
+ }
50
+ }, FormWrapper_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ Object.assign({ name: "FormWrapper" }, {
51
+ __name: "FormWrapper",
52
+ props: {
53
+ items: {
54
+ type: Array,
55
+ default: () => []
56
+ },
57
+ formData: {
58
+ type: Object,
59
+ default: () => ({})
60
+ },
61
+ rules: {
62
+ type: Object,
63
+ default: () => ({})
64
+ },
65
+ labelWidth: {
66
+ type: [String, Number],
67
+ default: "auto"
68
+ },
69
+ labelPosition: {
70
+ type: String,
71
+ default: labelPositionMap.right
72
+ },
73
+ showLabel: {
74
+ type: Boolean,
75
+ default: !0
76
+ },
77
+ inline: {
78
+ type: Boolean,
79
+ default: !1
80
+ },
81
+ isFilter: {
82
+ type: Boolean,
83
+ default: !1
84
+ },
85
+ isFilterPreview: {
86
+ type: Boolean,
87
+ default: !1
88
+ },
89
+ minWidth: {
90
+ type: Number,
91
+ default: 320
92
+ },
93
+ fixedWidth: {
94
+ type: Boolean,
95
+ default: !1
96
+ }
97
+ },
98
+ emits: [emitsMap.change, emitsMap.enter],
99
+ setup(e, { expose: S }) {
100
+ useCssVars((x) => ({ v1bc7ee80: e.minWidth + "px" }));
101
+ let w = e, T = ref(null), E = computed(() => w.isFilter ? "filter-form" : w.isFilterPreview ? "filter-preview-form" : w.fixedWidth ? "search-bar-form search-bar-form-fixed" : "search-bar-form");
102
+ return S({
103
+ validate: (e) => T.value ? T.value.validate(e) : Promise.resolve(!0),
104
+ resetFields: () => {
105
+ T.value && T.value.resetFields();
106
+ },
107
+ clearValidate: (e) => {
108
+ T.value && T.value.clearValidate(e);
109
+ },
110
+ scrollToField: (e) => {
111
+ T.value && T.value.scrollToField(e);
112
+ }
113
+ }), (S, w) => (openBlock(), createBlock(unref(ElForm), {
114
+ ref_key: "formRef",
115
+ ref: T,
116
+ model: e.formData,
117
+ "label-width": e.labelWidth,
118
+ "label-position": e.labelPosition,
119
+ inline: e.inline,
120
+ rules: e.rules,
121
+ class: normalizeClass({
122
+ [E.value]: !0,
123
+ "items-end display-grid": !e.isFilterPreview
124
+ }),
125
+ onSubmit: w[0] ||= withModifiers(() => {}, ["prevent", "stop"])
126
+ }, {
127
+ default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.items, (w) => (openBlock(), createBlock(unref(ElFormItem), mergeProps({
128
+ key: w.key,
129
+ label: e.showLabel ? w.label : "",
130
+ prop: w.key,
131
+ "show-label": e.showLabel,
132
+ class: [{ "search-bar-item--wide": w.wide }]
133
+ }, { ref_for: !0 }, w), {
134
+ default: withCtx(() => [renderSlot(S.$slots, w.key, {
135
+ item: w,
136
+ formData: e.formData
137
+ }, () => [w.type === unref(componentType).text ? (openBlock(), createBlock(unref(ElInput), mergeProps({
138
+ key: 0,
139
+ modelValue: e.formData[w.key],
140
+ "onUpdate:modelValue": (x) => e.formData[w.key] = x
141
+ }, { ref_for: !0 }, w, {
142
+ class: "w-full",
143
+ onChange: (x) => S.$emit(unref(emitsMap).change, w.key, e.formData[w.key]),
144
+ onKeyup: withKeys((x) => S.$emit(unref(emitsMap).enter, w.key, e.formData[w.key]), ["enter"])
145
+ }), null, 16, [
146
+ "modelValue",
147
+ "onUpdate:modelValue",
148
+ "onChange",
149
+ "onKeyup"
150
+ ])) : w.type === unref(componentType).select ? (openBlock(), createBlock(layout_default$2, mergeProps({
151
+ key: 1,
152
+ modelValue: e.formData[w.key],
153
+ "onUpdate:modelValue": (x) => e.formData[w.key] = x,
154
+ "static-options": w.options
155
+ }, { ref_for: !0 }, w, {
156
+ onChange: (x) => S.$emit(unref(emitsMap).change, w.key, e.formData[w.key]),
157
+ class: "w-full"
158
+ }), null, 16, [
159
+ "modelValue",
160
+ "onUpdate:modelValue",
161
+ "static-options",
162
+ "onChange"
163
+ ])) : w.type === unref(componentType).date ? (openBlock(), createBlock(unref(ElDatePicker), mergeProps({
164
+ key: 2,
165
+ modelValue: e.formData[w.key],
166
+ "onUpdate:modelValue": (x) => e.formData[w.key] = x
167
+ }, { ref_for: !0 }, {
168
+ ...unref(dateParamsMap)[w.dateType],
169
+ ...w
170
+ }, {
171
+ type: w.dateType,
172
+ format: w.format || unref(dateFormat).date,
173
+ "value-format": w.valueFormat || unref(dateFormat).dateTime,
174
+ class: "w-full",
175
+ onChange: (x) => S.$emit(unref(emitsMap).change, w.key, e.formData[w.key])
176
+ }), null, 16, [
177
+ "modelValue",
178
+ "onUpdate:modelValue",
179
+ "type",
180
+ "format",
181
+ "value-format",
182
+ "onChange"
183
+ ])) : w.type === unref(componentType).inputNumber ? (openBlock(), createBlock(unref(ElInputNumber), mergeProps({
184
+ key: 3,
185
+ modelValue: e.formData[w.key],
186
+ "onUpdate:modelValue": (x) => e.formData[w.key] = x
187
+ }, { ref_for: !0 }, w, {
188
+ class: "w-full",
189
+ onChange: (x) => S.$emit(unref(emitsMap).change, w.key, e.formData[w.key])
190
+ }), null, 16, [
191
+ "modelValue",
192
+ "onUpdate:modelValue",
193
+ "onChange"
194
+ ])) : w.type === unref(componentType).switch ? (openBlock(), createBlock(unref(ElSwitch), mergeProps({
195
+ key: 4,
196
+ modelValue: e.formData[w.key],
197
+ "onUpdate:modelValue": (x) => e.formData[w.key] = x
198
+ }, { ref_for: !0 }, w, { onChange: (x) => S.$emit(unref(emitsMap).change, w.key, e.formData[w.key]) }), null, 16, [
199
+ "modelValue",
200
+ "onUpdate:modelValue",
201
+ "onChange"
202
+ ])) : w.type === unref(componentType).radio ? (openBlock(), createBlock(unref(ElRadioGroup), {
203
+ key: 5,
204
+ modelValue: e.formData[w.key],
205
+ "onUpdate:modelValue": (x) => e.formData[w.key] = x,
206
+ onChange: (x) => S.$emit(unref(emitsMap).change, w.key, e.formData[w.key])
207
+ }, {
208
+ default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(w.options, (e) => (openBlock(), createBlock(unref(ElRadio), {
209
+ key: e.value,
210
+ label: e.value,
211
+ value: e.value,
212
+ disabled: e.disabled
213
+ }, {
214
+ default: withCtx(() => [createTextVNode(toDisplayString(e.label), 1)]),
215
+ _: 2
216
+ }, 1032, [
217
+ "label",
218
+ "value",
219
+ "disabled"
220
+ ]))), 128))]),
221
+ _: 2
222
+ }, 1032, [
223
+ "modelValue",
224
+ "onUpdate:modelValue",
225
+ "onChange"
226
+ ])) : w.type === unref(componentType).checkbox ? (openBlock(), createBlock(unref(ElCheckboxGroup), {
227
+ key: 6,
228
+ modelValue: e.formData[w.key],
229
+ "onUpdate:modelValue": (x) => e.formData[w.key] = x,
230
+ onChange: (x) => S.$emit(unref(emitsMap).change, w.key, e.formData[w.key])
231
+ }, {
232
+ default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(w.options, (e) => (openBlock(), createBlock(unref(ElCheckbox), {
233
+ key: e.value,
234
+ label: e.value,
235
+ value: e.value,
236
+ disabled: e.disabled
237
+ }, {
238
+ default: withCtx(() => [createTextVNode(toDisplayString(e.label), 1)]),
239
+ _: 2
240
+ }, 1032, [
241
+ "label",
242
+ "value",
243
+ "disabled"
244
+ ]))), 128))]),
245
+ _: 2
246
+ }, 1032, [
247
+ "modelValue",
248
+ "onUpdate:modelValue",
249
+ "onChange"
250
+ ])) : w.type === unref(componentType).textarea ? (openBlock(), createBlock(unref(ElInput), mergeProps({
251
+ key: 7,
252
+ modelValue: e.formData[w.key],
253
+ "onUpdate:modelValue": (x) => e.formData[w.key] = x
254
+ }, { ref_for: !0 }, w, {
255
+ class: "w-full",
256
+ type: "textarea",
257
+ onChange: (x) => S.$emit(unref(emitsMap).change, w.key, e.formData[w.key])
258
+ }), null, 16, [
259
+ "modelValue",
260
+ "onUpdate:modelValue",
261
+ "onChange"
262
+ ])) : w.type === unref(componentType).upload ? (openBlock(), createBlock(layout_default$1, mergeProps({
263
+ key: 8,
264
+ modelValue: e.formData[w.key],
265
+ "onUpdate:modelValue": (x) => e.formData[w.key] = x
266
+ }, { ref_for: !0 }, w), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("", !0)], !0)]),
267
+ _: 2
268
+ }, 1040, [
269
+ "label",
270
+ "prop",
271
+ "show-label",
272
+ "class"
273
+ ]))), 128)), renderSlot(S.$slots, "default", {}, void 0, !0)]),
274
+ _: 3
275
+ }, 8, [
276
+ "model",
277
+ "label-width",
278
+ "label-position",
279
+ "inline",
280
+ "rules",
281
+ "class"
282
+ ]));
283
+ }
284
+ }), [["__scopeId", "data-v-79352bf5"]]), _hoisted_1 = { class: "h-32 w-full" }, _hoisted_2 = { class: "flex items-center justify-between pd-b-20" }, _hoisted_3 = { class: "text-right" }, _hoisted_4 = { class: "drawer-header" }, _hoisted_5 = { class: "flex-1 pd-l-16 pd-r-16 overflow-y-auto" }, _hoisted_6 = { class: "text-right border-top pd-t-16 pd-l-16 pd-r-16" };
285
+ const SearchBar = withInstall(/* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ Object.assign({ name: "SearchBar" }, {
286
+ __name: "layout",
287
+ props: {
288
+ items: {
289
+ type: Array,
290
+ default: () => []
291
+ },
292
+ modelValue: {
293
+ type: Object,
294
+ default: () => ({})
295
+ },
296
+ labelWidth: {
297
+ type: [String, Number],
298
+ default: "auto"
299
+ },
300
+ labelPosition: {
301
+ type: String,
302
+ default: labelPositionMap.right,
303
+ validator: (e) => [
304
+ labelPositionMap.left,
305
+ labelPositionMap.right,
306
+ labelPositionMap.top
307
+ ].includes(e)
308
+ },
309
+ isExpand: {
310
+ type: Boolean,
311
+ default: !0
312
+ },
313
+ maxHeight: {
314
+ type: Number,
315
+ default: 84
316
+ },
317
+ minWidth: {
318
+ type: Number,
319
+ default: 320
320
+ },
321
+ operationList: {
322
+ type: Array,
323
+ default: operationConfig
324
+ },
325
+ filterMode: {
326
+ type: Boolean,
327
+ default: !0
328
+ },
329
+ hideExpandButton: {
330
+ type: Boolean,
331
+ default: !0
332
+ },
333
+ fixedWidth: {
334
+ type: Boolean,
335
+ default: !1
336
+ }
337
+ },
338
+ emits: [
339
+ emitsMap.updateModelValue,
340
+ emitsMap.operation,
341
+ emitsMap.change
342
+ ],
343
+ setup(e, { expose: x, emit: S }) {
344
+ useCssVars((x) => ({
345
+ c43334b4: e.maxHeight + "px",
346
+ v002cf482: K.value ? K.value + "px" : "100%"
347
+ }));
348
+ let C = e, D = S, O = ref({}), k = ref(!C.isExpand), A = ref(null), j = ref(!1), M = ref(!1), N = ref(!1), P = computed(() => {
349
+ let e = {};
350
+ return C.items.forEach((x) => {
351
+ if (x.required) {
352
+ let S = [{
353
+ required: !0,
354
+ message: `${x.label}不能为空`,
355
+ trigger: "blur"
356
+ }];
357
+ typeof x.validator == "function" && S.push({
358
+ validator: x.validator,
359
+ trigger: "blur"
360
+ }), e[x.key] = S;
361
+ }
362
+ }), e;
363
+ }), F = computed(() => C.items?.filter((e) => !e.hidden) || []), I = computed(() => C.filterMode ? F.value?.slice(0, 2) || [] : F.value), L = computed(() => C.filterMode ? F.value.slice(2) : []), R = (e) => {
364
+ O.value = { ...e };
365
+ }, z = () => {
366
+ D(emitsMap.updateModelValue, { ...O.value });
367
+ }, B = (e, x) => {
368
+ O.value[e] = x, N.value = !0, W(operationConfigMap.search), setTimeout(() => {
369
+ N.value = !1;
370
+ }, 200), V(e, x);
371
+ }, V = (e, x) => {
372
+ e && D(emitsMap.change, e, x);
373
+ }, H = () => O.value, U = (e, x) => {
374
+ N.value || D(emitsMap.operation, operationConfigMap.search, O.value);
375
+ }, W = (e) => {
376
+ z(), D(emitsMap.operation, e, O.value), (e === operationConfigMap.search || e === operationConfigMap.reset) && (j.value = !1, M.value = !1);
377
+ }, G = (e) => A.value.validate(e), K = ref(0), q = (e) => {
378
+ if (C.fixedWidth) {
379
+ K.value = 132;
380
+ return;
381
+ }
382
+ K.value = e + 32;
383
+ }, J = () => {
384
+ k.value = !k.value;
385
+ }, Y = () => {
386
+ j.value = !1, M.value = !0;
387
+ }, X = () => {
388
+ M.value = !1, j.value = !0;
389
+ }, Z = ref(!1), Q = (e) => {
390
+ Z.value = e > C.maxHeight;
391
+ }, $ = computed(() => C.filterMode || k.value ? "10px" : "0");
392
+ return onMounted(() => {
393
+ R(C.modelValue), Q();
394
+ }), watch(() => C.modelValue, (e) => {
395
+ R(e);
396
+ }, {
397
+ immediate: !0,
398
+ deep: !0
399
+ }), x({
400
+ validate: G,
401
+ getFormData: H,
402
+ formRef: A
403
+ }), (x, S) => (openBlock(), createElementBlock("div", { class: normalizeClass(["relative overflow-hidden w-full", { flex: e.filterMode }]) }, [
404
+ createElementVNode("div", { class: normalizeClass({ "is-collapsed overflow-hidden": !k.value }) }, [createVNode(unref(ElAutoResizer), null, {
405
+ default: withCtx(({ height: S }) => [createTextVNode(toDisplayString(Q(S)) + " ", 1), createVNode(FormWrapper_default, {
406
+ ref_key: "formRef",
407
+ ref: A,
408
+ items: I.value,
409
+ "form-data": O.value,
410
+ rules: P.value,
411
+ "label-width": e.labelWidth,
412
+ "label-position": e.labelPosition,
413
+ inline: !0,
414
+ "show-label": !e.filterMode,
415
+ "min-width": e.minWidth,
416
+ "is-filter-preview": e.filterMode,
417
+ fixedWidth: e.fixedWidth,
418
+ onChange: B,
419
+ onEnter: U
420
+ }, createSlots({
421
+ default: withCtx(() => [e.isExpand && !e.filterMode ? (openBlock(), createBlock(unref(ElFormItem), {
422
+ key: 0,
423
+ "label-width": "0"
424
+ }, {
425
+ default: withCtx(() => [createElementVNode("div", _hoisted_1, [createVNode(unref(ElAutoResizer), null, {
426
+ default: withCtx(({ width: e }) => [createTextVNode(toDisplayString(q(e)), 1)]),
427
+ _: 1
428
+ })])]),
429
+ _: 1
430
+ })) : createCommentVNode("", !0)]),
431
+ _: 2
432
+ }, [renderList(I.value, (e) => ({
433
+ name: e.key,
434
+ fn: withCtx((S) => [renderSlot(x.$slots, e.key, normalizeProps(guardReactiveProps(S)), void 0, !0)])
435
+ }))]), 1032, [
436
+ "items",
437
+ "form-data",
438
+ "rules",
439
+ "label-width",
440
+ "label-position",
441
+ "show-label",
442
+ "min-width",
443
+ "is-filter-preview",
444
+ "fixedWidth"
445
+ ])]),
446
+ _: 3
447
+ })], 2),
448
+ createElementVNode("div", {
449
+ class: normalizeClass(["operation-buttons", {
450
+ "absolute right-0 text-right": e.isExpand && !e.filterMode,
451
+ "text-left": e.filterMode,
452
+ "bg-fff": e.isExpand && !e.filterMode && !e.fixedWidth
453
+ }]),
454
+ style: normalizeStyle({ bottom: $.value })
455
+ }, [e.filterMode ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(unref(ElButton), {
456
+ onClick: S[0] ||= (e) => W(unref(operationConfigMap).reset),
457
+ type: "default"
458
+ }, {
459
+ default: withCtx(() => [...S[3] ||= [createTextVNode("重置", -1)]]),
460
+ _: 1
461
+ }), L.value?.length ? (openBlock(), createBlock(unref(ElPopover), {
462
+ key: 0,
463
+ visible: j.value,
464
+ placement: "bottom-start",
465
+ width: 628,
466
+ trigger: "click"
467
+ }, {
468
+ reference: withCtx(() => [createVNode(unref(ElButton), {
469
+ onClick: S[1] ||= (e) => j.value = !j.value,
470
+ icon: unref(IconCheck),
471
+ type: "default"
472
+ }, {
473
+ default: withCtx(() => [...S[4] ||= [createTextVNode(" 筛选器 ", -1)]]),
474
+ _: 1
475
+ }, 8, ["icon"])]),
476
+ default: withCtx(() => [
477
+ createElementVNode("div", _hoisted_2, [createVNode(layout_default$3, {
478
+ content: "筛选器",
479
+ fontSize: 16
480
+ }), createVNode(unref(ElIcon), {
481
+ size: 16,
482
+ onClick: Y
483
+ }, {
484
+ default: withCtx(() => [createVNode(unref(IconMagnify))]),
485
+ _: 1
486
+ })]),
487
+ createVNode(FormWrapper_default, {
488
+ items: L.value,
489
+ "form-data": O.value,
490
+ "label-width": "auto",
491
+ "label-position": "top",
492
+ inline: !1,
493
+ "show-label": !0,
494
+ "is-filter": !0,
495
+ "min-width": e.minWidth,
496
+ class: "filter-form-popover overflow-y-auto",
497
+ onChange: V,
498
+ onEnter: U
499
+ }, createSlots({ _: 2 }, [renderList(L.value, (e) => ({
500
+ name: e.key,
501
+ fn: withCtx((S) => [renderSlot(x.$slots, e.key, normalizeProps(guardReactiveProps(S)), void 0, !0)])
502
+ }))]), 1032, [
503
+ "items",
504
+ "form-data",
505
+ "min-width"
506
+ ]),
507
+ createElementVNode("div", _hoisted_3, [createVNode(OperationButtons_default, {
508
+ "operation-list": e.operationList,
509
+ onOperation: W
510
+ }, createSlots({ _: 2 }, [x.$slots.operation ? {
511
+ name: "operation",
512
+ fn: withCtx(({ operationList: e }) => [renderSlot(x.$slots, "operation", { operationList: e }, void 0, !0)]),
513
+ key: "0"
514
+ } : void 0]), 1032, ["operation-list"])])
515
+ ]),
516
+ _: 3
517
+ }, 8, ["visible"])) : createCommentVNode("", !0)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [Z.value && e.isExpand && e.hideExpandButton ? (openBlock(), createBlock(unref(ElButton), {
518
+ key: 0,
519
+ icon: k.value ? unref(IconUp) : unref(IconDown),
520
+ text: "",
521
+ onClick: J
522
+ }, {
523
+ default: withCtx(() => [createTextVNode(toDisplayString(k.value ? "收起" : "展开"), 1)]),
524
+ _: 1
525
+ }, 8, ["icon"])) : createCommentVNode("", !0), createVNode(OperationButtons_default, {
526
+ "operation-list": e.operationList,
527
+ onOperation: W
528
+ }, createSlots({ _: 2 }, [x.$slots.operation ? {
529
+ name: "operation",
530
+ fn: withCtx(({ operationList: e }) => [renderSlot(x.$slots, "operation", { operationList: e }, void 0, !0)]),
531
+ key: "0"
532
+ } : void 0]), 1032, ["operation-list"])], 64))], 6),
533
+ createVNode(unref(ElDrawer), {
534
+ modelValue: M.value,
535
+ "onUpdate:modelValue": S[2] ||= (e) => M.value = e,
536
+ size: "628",
537
+ "show-close": !1
538
+ }, {
539
+ header: withCtx(() => [createElementVNode("div", _hoisted_4, [createVNode(layout_default$3, {
540
+ content: "筛选器",
541
+ fontSize: 16
542
+ }), createVNode(unref(ElIcon), {
543
+ size: 16,
544
+ onClick: X,
545
+ class: "shrink-button"
546
+ }, {
547
+ default: withCtx(() => [createVNode(unref(IconShrink))]),
548
+ _: 1
549
+ })])]),
550
+ default: withCtx(() => [createElementVNode("div", _hoisted_5, [createVNode(FormWrapper_default, {
551
+ items: L.value,
552
+ "form-data": O.value,
553
+ "label-width": "auto",
554
+ "label-position": "top",
555
+ inline: !1,
556
+ "show-label": !0,
557
+ "is-filter": !0,
558
+ "min-width": e.minWidth,
559
+ onChange: V,
560
+ onEnter: U
561
+ }, createSlots({ _: 2 }, [renderList(L.value, (e) => ({
562
+ name: e.key,
563
+ fn: withCtx((S) => [renderSlot(x.$slots, e.key, normalizeProps(guardReactiveProps(S)), void 0, !0)])
564
+ }))]), 1032, [
565
+ "items",
566
+ "form-data",
567
+ "min-width"
568
+ ])]), createElementVNode("div", _hoisted_6, [createVNode(OperationButtons_default, {
569
+ "operation-list": e.operationList,
570
+ onOperation: W
571
+ }, createSlots({ _: 2 }, [x.$slots.operation ? {
572
+ name: "operation",
573
+ fn: withCtx(({ operationList: e }) => [renderSlot(x.$slots, "operation", { operationList: e }, void 0, !0)]),
574
+ key: "0"
575
+ } : void 0]), 1032, ["operation-list"])])]),
576
+ _: 3
577
+ }, 8, ["modelValue"])
578
+ ], 2));
579
+ }
580
+ }), [["__scopeId", "data-v-3877c183"]]));
581
+ var SearchBar_default = SearchBar;
582
+ export { SearchBar_default as n, SearchBar as t };
@@ -0,0 +1,5 @@
1
+ import { t as withInstall } from "./utils.BFFtVZUp.js";
2
+ import { t as layout_default } from "./layout.CokqBzin.js";
3
+ const TreeSelect = withInstall(layout_default);
4
+ var TreeSelect_default = TreeSelect;
5
+ export { TreeSelect_default as n, TreeSelect as t };
@@ -0,0 +1,87 @@
1
+ import { t as withInstall } from "./utils.BFFtVZUp.js";
2
+ import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.BgwWMokO.js";
3
+ import { t as layout_default$1 } from "./layout.CokqBzin.js";
4
+ import { computed, createBlock, createElementVNode, createVNode, mergeProps, normalizeStyle, openBlock, ref, renderSlot, toDisplayString, unref, useAttrs, watch, withCtx } from "vue";
5
+ import { ElAutoResizer } from "element-plus";
6
+ import '../assets/TreeShowSelect.css';var _hoisted_1 = { class: "left-box w-50-percent flex flex-col overflow-hidden" }, _hoisted_2 = { class: "head-box fz-14 pd-t-8 pd-b-8 pd-l-12 pd-r-12 mg-b-8 text-202434" }, _hoisted_3 = { class: "pd-r-12 pd-l-12 flex-1 overflow-hidden" }, _hoisted_4 = { class: "right-box w-50-percent flex flex-col overflow-hidden" }, _hoisted_5 = { class: "head-box fz-14 pd-t-8 pd-b-8 pd-l-12 pd-r-12 mg-b-8 text-202434" }, _hoisted_6 = { class: "pd-r-12 pd-l-12 flex-1 selected-list overflow-hidden pd-t-8" };
7
+ const TreeShowSelect = withInstall(/* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ Object.assign({ name: "TreeShowSelect" }, {
8
+ __name: "layout",
9
+ props: {
10
+ modelValue: {
11
+ type: Object,
12
+ default: () => []
13
+ },
14
+ rightTreeList: {
15
+ type: Array,
16
+ default: () => []
17
+ }
18
+ },
19
+ emits: ["getCheckedNode"],
20
+ setup(n, { emit: b }) {
21
+ let w = n, T = b, E = useAttrs(), D = ref(), O = computed(() => E.treeProps ? E.treeProps : {
22
+ value: "id",
23
+ label: "label",
24
+ children: "children"
25
+ }), k = (n) => String(n).includes("%") ? n : n + "px", A = ref([]), j = computed(() => w.rightTreeList && w.rightTreeList.length > 0 ? w.rightTreeList : A.value), M = (n) => {
26
+ let { selectedNode: b, selectedValue: x, selectedParentNodes: S } = n;
27
+ A.value = b, T("getCheckedNode", {
28
+ selectedValue: x,
29
+ selectedNode: b,
30
+ selectedParentNodes: S
31
+ });
32
+ }, N = (n) => {
33
+ D.value?.setNodeCheckStatus(n[O.value.value], !1);
34
+ }, P = (n) => {
35
+ A.value = n || [];
36
+ };
37
+ return watch(() => w.modelValue, (n) => {
38
+ P(n);
39
+ }, {
40
+ immediate: !0,
41
+ deep: !0
42
+ }), (n, b) => (openBlock(), createBlock(unref(ElAutoResizer), null, {
43
+ default: withCtx(({ width: S, height: C }) => [createElementVNode("div", {
44
+ class: "out-box flex radius-8 text-202434 overflow-hidden",
45
+ style: normalizeStyle({
46
+ width: k(S),
47
+ height: k(C)
48
+ })
49
+ }, [createElementVNode("div", _hoisted_1, [createElementVNode("div", _hoisted_2, toDisplayString(D.value && D.value.allNodeNumbers || 0) + "项 ", 1), createElementVNode("div", _hoisted_3, [createVNode(layout_default$1, mergeProps({
50
+ modelValue: A.value,
51
+ "onUpdate:modelValue": b[0] ||= (n) => A.value = n,
52
+ ref_key: "treeRef",
53
+ ref: D
54
+ }, unref(E), { onHandleCheck: M }), {
55
+ node: withCtx(({ node: b, data: x }) => [renderSlot(n.$slots, "node", {
56
+ node: b,
57
+ data: x,
58
+ checkedNodes: A.value
59
+ }, void 0, !0)]),
60
+ _: 3
61
+ }, 16, ["modelValue"])])]), createElementVNode("div", _hoisted_4, [createElementVNode("div", _hoisted_5, toDisplayString(j.value.length) + "项 ", 1), createElementVNode("div", _hoisted_6, [createVNode(layout_default$1, {
62
+ modelValue: A.value,
63
+ "onUpdate:modelValue": b[1] ||= (n) => A.value = n,
64
+ class: "tree-select-list",
65
+ treeProps: unref(E).treeProps,
66
+ treeList: j.value,
67
+ isListMode: !0,
68
+ isMultiple: !1,
69
+ onHandleDeleteNode: N
70
+ }, {
71
+ node: withCtx(({ node: b, data: x }) => [renderSlot(n.$slots, "node", {
72
+ node: b,
73
+ data: x,
74
+ checkedNodes: j.value
75
+ }, void 0, !0)]),
76
+ _: 3
77
+ }, 8, [
78
+ "modelValue",
79
+ "treeProps",
80
+ "treeList"
81
+ ])])])], 4)]),
82
+ _: 3
83
+ }));
84
+ }
85
+ }), [["__scopeId", "data-v-966c45c7"]]));
86
+ var TreeShowSelect_default = TreeShowSelect;
87
+ export { TreeShowSelect_default as n, TreeShowSelect as t };
@@ -0,0 +1,5 @@
1
+ import { t as withInstall } from "./utils.BFFtVZUp.js";
2
+ import { t as layout_default } from "./layout.C5pEEv-d.js";
3
+ const UploadFile = withInstall(layout_default);
4
+ var UploadFile_default = UploadFile;
5
+ export { UploadFile_default as n, UploadFile as t };
@@ -0,0 +1,6 @@
1
+ var _plugin_vue_export_helper_default = (e, t) => {
2
+ let n = e.__vccOpts || e;
3
+ for (let [e, r] of t) n[e] = r;
4
+ return n;
5
+ };
6
+ export { _plugin_vue_export_helper_default as t };