@ganwei-web/gw-base-components-plus 1.0.8 → 1.0.10

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.
@@ -14,7 +14,7 @@ function useExpose(proxyElement) {
14
14
  });
15
15
  return expose;
16
16
  }
17
- const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
17
+ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
18
18
  ...{
19
19
  inheritAttrs: false
20
20
  },
@@ -24,15 +24,22 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
24
24
  const expose = useExpose(proxyElement);
25
25
  __expose(expose);
26
26
  const attrs = vue.useAttrs();
27
- const loading = vue.ref(false);
27
+ const props = vue.computed(() => attrs);
28
+ const internalLoading = vue.ref(false);
29
+ const loading = vue.computed(() => {
30
+ if (props.value.loading instanceof Promise) {
31
+ return internalLoading.value;
32
+ }
33
+ return props.value.loading || internalLoading.value;
34
+ });
28
35
  const handleClick = async (evt) => {
29
- if (!attrs.onClick)
36
+ if (!props.value.onClick)
30
37
  return;
31
- const res = attrs.onClick(evt);
38
+ const res = props.value.onClick(evt);
32
39
  if (res instanceof Promise) {
33
- loading.value = true;
40
+ internalLoading.value = true;
34
41
  res.finally(() => {
35
- loading.value = false;
42
+ internalLoading.value = false;
36
43
  });
37
44
  }
38
45
  return res;
@@ -54,16 +61,16 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
54
61
  };
55
62
  }
56
63
  });
57
- const index_vue_vue_type_style_index_0_lang$l = "";
58
- const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
64
+ const index_vue_vue_type_style_index_0_lang$t = "";
65
+ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
59
66
  __name: "index",
60
67
  setup(__props, { expose: __expose }) {
68
+ const attrs = vue.useAttrs();
61
69
  const proxyElement = vue.ref();
62
70
  const expose = useExpose(proxyElement);
63
71
  __expose(expose);
64
- const attrs = vue.useAttrs();
65
72
  return (_ctx, _cache) => {
66
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElCascader), vue.mergeProps(vue.unref(attrs), {
73
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTag), vue.mergeProps(vue.unref(attrs), {
67
74
  ref_key: "proxyElement",
68
75
  ref: proxyElement
69
76
  }), vue.createSlots({ _: 2 }, [
@@ -79,8 +86,68 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
79
86
  };
80
87
  }
81
88
  });
82
- const index_vue_vue_type_style_index_0_lang$k = "";
83
- const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
89
+ const index_vue_vue_type_style_index_0_lang$s = "";
90
+ const UI_AUTOMATION_TOKEN = `data-testid`;
91
+ function useDataTestId() {
92
+ const attrs = vue.useAttrs();
93
+ if (attrs[UI_AUTOMATION_TOKEN] === void 0 || attrs[UI_AUTOMATION_TOKEN] === null || typeof attrs[UI_AUTOMATION_TOKEN] !== "string") {
94
+ console.warn(`${UI_AUTOMATION_TOKEN} is required to UI Automation`);
95
+ }
96
+ }
97
+ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
98
+ __name: "ElInput",
99
+ props: {
100
+ "modelValue": {
101
+ default: ""
102
+ },
103
+ "modelModifiers": {}
104
+ },
105
+ emits: /* @__PURE__ */ vue.mergeModels(["change"], ["update:modelValue"]),
106
+ setup(__props, { expose: __expose, emit: __emit }) {
107
+ const attrs = vue.useAttrs();
108
+ useDataTestId();
109
+ const input = vue.ref();
110
+ const expose = useExpose(input);
111
+ __expose(expose);
112
+ const model = vue.useModel(__props, "modelValue");
113
+ let preChangeVal = "";
114
+ const emits = __emit;
115
+ function changeHandler(val) {
116
+ if (preChangeVal === val)
117
+ return;
118
+ preChangeVal = val;
119
+ emits("change", val);
120
+ }
121
+ function inputHandler(val) {
122
+ if (model.value !== "" && val.trim() === "") {
123
+ changeHandler("");
124
+ }
125
+ model.value = val.trim();
126
+ }
127
+ return (_ctx, _cache) => {
128
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElInput), vue.mergeProps({
129
+ ref_key: "input",
130
+ ref: input,
131
+ modelValue: model.value,
132
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event)
133
+ }, vue.unref(attrs), {
134
+ onInput: inputHandler,
135
+ onChange: changeHandler
136
+ }), vue.createSlots({ _: 2 }, [
137
+ vue.renderList(_ctx.$slots, (value, key) => {
138
+ return {
139
+ name: key,
140
+ fn: vue.withCtx((slotProps) => [
141
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
142
+ ])
143
+ };
144
+ })
145
+ ]), 1040, ["modelValue"]);
146
+ };
147
+ }
148
+ });
149
+ const ElInput_vue_vue_type_style_index_0_lang = "";
150
+ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
84
151
  __name: "index",
85
152
  setup(__props, { expose: __expose }) {
86
153
  const proxyElement = vue.ref();
@@ -88,7 +155,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
88
155
  __expose(expose);
89
156
  const attrs = vue.useAttrs();
90
157
  return (_ctx, _cache) => {
91
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElCheckbox), vue.mergeProps(vue.unref(attrs), {
158
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElForm), vue.mergeProps(vue.unref(attrs), {
92
159
  ref_key: "proxyElement",
93
160
  ref: proxyElement
94
161
  }), vue.createSlots({ _: 2 }, [
@@ -104,18 +171,20 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
104
171
  };
105
172
  }
106
173
  });
107
- const index_vue_vue_type_style_index_0_lang$j = "";
108
- const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
174
+ const index_vue_vue_type_style_index_0_lang$r = "";
175
+ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
109
176
  __name: "index",
110
177
  setup(__props, { expose: __expose }) {
111
178
  const proxyElement = vue.ref();
112
179
  const expose = useExpose(proxyElement);
113
180
  __expose(expose);
181
+ const attrs = vue.useAttrs();
182
+ useDataTestId();
114
183
  return (_ctx, _cache) => {
115
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElCollapse), {
184
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElSelect), vue.mergeProps(vue.unref(attrs), {
116
185
  ref_key: "proxyElement",
117
186
  ref: proxyElement
118
- }, vue.createSlots({ _: 2 }, [
187
+ }), vue.createSlots({ _: 2 }, [
119
188
  vue.renderList(_ctx.$slots, (value, key) => {
120
189
  return {
121
190
  name: key,
@@ -124,45 +193,20 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
124
193
  ])
125
194
  };
126
195
  })
127
- ]), 1536);
196
+ ]), 1040);
128
197
  };
129
198
  }
130
199
  });
131
- const index_vue_vue_type_style_index_0_lang$i = "";
132
- const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
200
+ const index_vue_vue_type_style_index_0_lang$q = "";
201
+ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
133
202
  __name: "index",
134
- props: {
135
- defaultTime: {},
136
- valueFormat: {}
137
- },
138
203
  setup(__props, { expose: __expose }) {
139
204
  const proxyElement = vue.ref();
140
205
  const expose = useExpose(proxyElement);
141
206
  __expose(expose);
142
- const props = __props;
143
207
  const attrs = vue.useAttrs();
144
- const defaultTime = parseDate(props.defaultTime);
145
- const valueFormat = props.valueFormat || "YYYY-MM-DD HH:mm:ss";
146
- function parseDate(defaultTime2) {
147
- if (!defaultTime2) {
148
- return void 0;
149
- }
150
- if (Array.isArray(defaultTime2)) {
151
- if (defaultTime2[0] && defaultTime2[1]) {
152
- return [parseDate(defaultTime2[0]), parseDate(defaultTime2[1])];
153
- }
154
- return [new Date(2e3, 1, 1, 0, 0, 0), new Date(2e3, 1, 1, 23, 59, 59)];
155
- }
156
- if (defaultTime2 instanceof Date) {
157
- return defaultTime2;
158
- }
159
- const [h = 0, m = 0, s = 0] = defaultTime2.split(":");
160
- return new Date(2e3, 1, 1, Number(h), Number(m), Number(s));
161
- }
162
208
  return (_ctx, _cache) => {
163
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDatePicker), vue.mergeProps(vue.unref(attrs), {
164
- "default-time": vue.unref(defaultTime),
165
- "value-format": vue.unref(valueFormat),
209
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElCheckbox), vue.mergeProps(vue.unref(attrs), {
166
210
  ref_key: "proxyElement",
167
211
  ref: proxyElement
168
212
  }), vue.createSlots({ _: 2 }, [
@@ -174,19 +218,20 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
174
218
  ])
175
219
  };
176
220
  })
177
- ]), 1040, ["default-time", "value-format"]);
221
+ ]), 1040);
178
222
  };
179
223
  }
180
224
  });
181
- const index_vue_vue_type_style_index_0_lang$h = "";
182
- const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
225
+ const index_vue_vue_type_style_index_0_lang$p = "";
226
+ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
183
227
  __name: "index",
184
228
  setup(__props, { expose: __expose }) {
185
229
  const proxyElement = vue.ref();
186
230
  const expose = useExpose(proxyElement);
187
231
  __expose(expose);
232
+ const attrs = vue.useAttrs();
188
233
  return (_ctx, _cache) => {
189
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDialog), vue.mergeProps(_ctx.$attrs, {
234
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElRadio), vue.mergeProps(vue.unref(attrs), {
190
235
  ref_key: "proxyElement",
191
236
  ref: proxyElement
192
237
  }), vue.createSlots({ _: 2 }, [
@@ -202,16 +247,15 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
202
247
  };
203
248
  }
204
249
  });
205
- const index_vue_vue_type_style_index_0_lang$g = "";
206
- const UI_AUTOMATION_TOKEN = `data-testid`;
207
- function useDataTestId() {
208
- const attrs = vue.useAttrs();
209
- if (attrs[UI_AUTOMATION_TOKEN] === void 0 || attrs[UI_AUTOMATION_TOKEN] === null || typeof attrs[UI_AUTOMATION_TOKEN] !== "string") {
210
- console.warn(`${UI_AUTOMATION_TOKEN} is required to UI Automation`);
211
- }
212
- }
213
- const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
250
+ const index_vue_vue_type_style_index_0_lang$o = "";
251
+ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
214
252
  __name: "index",
253
+ props: {
254
+ round: {
255
+ type: Boolean,
256
+ default: false
257
+ }
258
+ },
215
259
  setup(__props, { expose: __expose }) {
216
260
  const proxyElement = vue.ref();
217
261
  const expose = useExpose(proxyElement);
@@ -219,7 +263,8 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
219
263
  const attrs = vue.useAttrs();
220
264
  useDataTestId();
221
265
  return (_ctx, _cache) => {
222
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDrawer), vue.mergeProps(vue.unref(attrs), {
266
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElRadioGroup), vue.mergeProps(vue.unref(attrs), {
267
+ class: { round: __props.round },
223
268
  ref_key: "proxyElement",
224
269
  ref: proxyElement
225
270
  }), vue.createSlots({ _: 2 }, [
@@ -231,12 +276,12 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
231
276
  ])
232
277
  };
233
278
  })
234
- ]), 1040);
279
+ ]), 1040, ["class"]);
235
280
  };
236
281
  }
237
282
  });
238
- const index_vue_vue_type_style_index_0_lang$f = "";
239
- const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
283
+ const index_vue_vue_type_style_index_0_lang$n = "";
284
+ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
240
285
  __name: "index",
241
286
  setup(__props, { expose: __expose }) {
242
287
  const proxyElement = vue.ref();
@@ -245,7 +290,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
245
290
  const attrs = vue.useAttrs();
246
291
  useDataTestId();
247
292
  return (_ctx, _cache) => {
248
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDropdown), vue.mergeProps(vue.unref(attrs), {
293
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElSwitch), vue.mergeProps(vue.unref(attrs), {
249
294
  ref_key: "proxyElement",
250
295
  ref: proxyElement
251
296
  }), vue.createSlots({ _: 2 }, [
@@ -261,8 +306,8 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
261
306
  };
262
307
  }
263
308
  });
264
- const index_vue_vue_type_style_index_0_lang$e = "";
265
- const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
309
+ const index_vue_vue_type_style_index_0_lang$m = "";
310
+ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
266
311
  __name: "index",
267
312
  setup(__props, { expose: __expose }) {
268
313
  const proxyElement = vue.ref();
@@ -270,7 +315,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
270
315
  __expose(expose);
271
316
  const attrs = vue.useAttrs();
272
317
  return (_ctx, _cache) => {
273
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElForm), vue.mergeProps(vue.unref(attrs), {
318
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElCascader), vue.mergeProps(vue.unref(attrs), {
274
319
  ref_key: "proxyElement",
275
320
  ref: proxyElement
276
321
  }), vue.createSlots({ _: 2 }, [
@@ -286,88 +331,44 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
286
331
  };
287
332
  }
288
333
  });
289
- const index_vue_vue_type_style_index_0_lang$d = "";
290
- /*! Element Plus Icons Vue v2.3.2 */
291
- var _sfc_main187 = /* @__PURE__ */ vue.defineComponent({
292
- name: "Operation",
293
- __name: "operation",
294
- setup(__props) {
295
- return (_ctx, _cache) => (vue.openBlock(), vue.createElementBlock("svg", {
296
- xmlns: "http://www.w3.org/2000/svg",
297
- viewBox: "0 0 1024 1024"
298
- }, [
299
- vue.createElementVNode("path", {
300
- fill: "currentColor",
301
- d: "M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"
302
- })
303
- ]));
304
- }
305
- }), operation_default = _sfc_main187;
306
- var _sfc_main197 = /* @__PURE__ */ vue.defineComponent({
307
- name: "Picture",
308
- __name: "picture",
309
- setup(__props) {
310
- return (_ctx, _cache) => (vue.openBlock(), vue.createElementBlock("svg", {
311
- xmlns: "http://www.w3.org/2000/svg",
312
- viewBox: "0 0 1024 1024"
313
- }, [
314
- vue.createElementVNode("path", {
315
- fill: "currentColor",
316
- d: "M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"
317
- }),
318
- vue.createElementVNode("path", {
319
- fill: "currentColor",
320
- d: "M384 288q64 0 64 64t-64 64-64-64 64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"
321
- })
322
- ]));
323
- }
324
- }), picture_default = _sfc_main197;
325
- const _hoisted_1$1 = { class: "error-slot" };
326
- const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
334
+ const index_vue_vue_type_style_index_0_lang$l = "";
335
+ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
327
336
  __name: "index",
328
337
  props: {
329
- src: { default: "" },
330
- request: {}
338
+ defaultTime: {},
339
+ valueFormat: {}
331
340
  },
332
341
  setup(__props, { expose: __expose }) {
333
342
  const proxyElement = vue.ref();
334
343
  const expose = useExpose(proxyElement);
335
344
  __expose(expose);
336
345
  const props = __props;
337
- const _src = vue.ref("");
338
- vue.watch(() => props.src, async (newVal) => {
339
- if (!newVal) {
340
- return;
346
+ const attrs = vue.useAttrs();
347
+ const defaultTime = parseDate(props.defaultTime);
348
+ const valueFormat = props.valueFormat || "YYYY-MM-DD HH:mm:ss";
349
+ function parseDate(defaultTime2) {
350
+ if (!defaultTime2) {
351
+ return void 0;
341
352
  }
342
- if (newVal.indexOf("/") > -1) {
343
- _src.value = newVal;
344
- return;
345
- } else {
346
- if (!props.request) {
347
- _src.value = newVal;
348
- return;
353
+ if (Array.isArray(defaultTime2)) {
354
+ if (defaultTime2[0] && defaultTime2[1]) {
355
+ return [parseDate(defaultTime2[0]), parseDate(defaultTime2[1])];
349
356
  }
350
- props.request({ id: props.src }).then((res) => {
351
- const blob = res.data;
352
- try {
353
- URL.revokeObjectURL(_src.value);
354
- } catch (e) {
355
- }
356
- _src.value = URL.createObjectURL(blob);
357
- });
357
+ return [new Date(2e3, 1, 1, 0, 0, 0), new Date(2e3, 1, 1, 23, 59, 59)];
358
358
  }
359
- }, {
360
- immediate: true
361
- });
359
+ if (defaultTime2 instanceof Date) {
360
+ return defaultTime2;
361
+ }
362
+ const [h = 0, m = 0, s = 0] = defaultTime2.split(":");
363
+ return new Date(2e3, 1, 1, Number(h), Number(m), Number(s));
364
+ }
362
365
  return (_ctx, _cache) => {
363
- const _component_el_icon = vue.resolveComponent("el-icon");
364
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElImage), {
365
- fit: "contain",
366
- lazy: "",
367
- src: _src.value,
366
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDatePicker), vue.mergeProps(vue.unref(attrs), {
367
+ "default-time": vue.unref(defaultTime),
368
+ "value-format": vue.unref(valueFormat),
368
369
  ref_key: "proxyElement",
369
370
  ref: proxyElement
370
- }, vue.createSlots({ _: 2 }, [
371
+ }), vue.createSlots({ _: 2 }, [
371
372
  vue.renderList(_ctx.$slots, (value, key) => {
372
373
  return {
373
374
  name: key,
@@ -375,172 +376,21 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
375
376
  vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
376
377
  ])
377
378
  };
378
- }),
379
- !_ctx.$slots.error ? {
380
- name: "error",
381
- fn: vue.withCtx(() => [
382
- vue.createElementVNode("div", _hoisted_1$1, [
383
- vue.createVNode(_component_el_icon, null, {
384
- default: vue.withCtx(() => [
385
- vue.createVNode(vue.unref(picture_default))
386
- ]),
387
- _: 1
388
- })
389
- ])
390
- ]),
391
- key: "0"
392
- } : void 0
393
- ]), 1032, ["src"]);
379
+ })
380
+ ]), 1040, ["default-time", "value-format"]);
394
381
  };
395
382
  }
396
383
  });
397
- const index_vue_vue_type_style_index_0_lang$c = "";
398
- const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
399
- __name: "ElInput",
400
- props: {
401
- "modelValue": {
402
- default: ""
403
- },
404
- "modelModifiers": {}
405
- },
406
- emits: /* @__PURE__ */ vue.mergeModels(["change"], ["update:modelValue"]),
407
- setup(__props, { expose: __expose, emit: __emit }) {
408
- const input = vue.ref();
409
- const expose = useExpose(input);
410
- __expose(expose);
411
- const model = vue.useModel(__props, "modelValue");
412
- let preChangeVal = "";
413
- const emits = __emit;
414
- function changeHandler(val) {
415
- if (preChangeVal === val)
416
- return;
417
- preChangeVal = val;
418
- emits("change", val);
419
- }
420
- function inputHandler(val) {
421
- if (model.value !== "" && val.trim() === "") {
422
- changeHandler("");
423
- }
424
- model.value = val.trim();
425
- }
426
- const attrs = vue.useAttrs();
427
- useDataTestId();
428
- return (_ctx, _cache) => {
429
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElInput), vue.mergeProps({
430
- ref_key: "input",
431
- ref: input,
432
- modelValue: model.value,
433
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event)
434
- }, vue.unref(attrs), {
435
- onInput: inputHandler,
436
- onChange: changeHandler
437
- }), vue.createSlots({ _: 2 }, [
438
- vue.renderList(_ctx.$slots, (value, key) => {
439
- return {
440
- name: key,
441
- fn: vue.withCtx((slotProps) => [
442
- vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
443
- ])
444
- };
445
- })
446
- ]), 1040, ["modelValue"]);
447
- };
448
- }
449
- });
450
- const ElInput_vue_vue_type_style_index_0_lang = "";
451
- const index$2 = "";
452
- const vLoading = {
453
- mounted(el, binding, vnode, prevVnode) {
454
- var _a, _b;
455
- vnode.ctx.proxy;
456
- el.setAttribute(`element-loading-text`, sessionStorage.languageType == "zh-CN" ? "加载中..." : "Loading...");
457
- el.setAttribute(`element-loading-spinner`, " ");
458
- el.setAttribute(`element-loading-background`, "customLoading");
459
- (_b = (_a = elementPlus.vLoading).mounted) == null ? void 0 : _b.call(_a, el, binding, vnode, prevVnode);
460
- },
461
- updated(el, binding, vnode, prevVnode) {
462
- var _a, _b;
463
- (_b = (_a = elementPlus.vLoading).updated) == null ? void 0 : _b.call(_a, el, binding, vnode, prevVnode);
464
- },
465
- unmounted(el, binding, vnode, prevVnode) {
466
- var _a, _b;
467
- (_b = (_a = elementPlus.vLoading).unmounted) == null ? void 0 : _b.call(_a, el, binding, vnode, prevVnode);
468
- }
469
- };
470
- const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
384
+ const index_vue_vue_type_style_index_0_lang$k = "";
385
+ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
471
386
  __name: "index",
472
387
  setup(__props, { expose: __expose }) {
473
388
  const proxyElement = vue.ref();
474
389
  const expose = useExpose(proxyElement);
475
390
  __expose(expose);
476
391
  const attrs = vue.useAttrs();
477
- useDataTestId();
478
- return (_ctx, _cache) => {
479
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElMenu), vue.mergeProps(vue.unref(attrs), {
480
- ref_key: "proxyElement",
481
- ref: proxyElement
482
- }), vue.createSlots({ _: 2 }, [
483
- vue.renderList(_ctx.$slots, (value, key) => {
484
- return {
485
- name: key,
486
- fn: vue.withCtx((slotProps) => [
487
- vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
488
- ])
489
- };
490
- })
491
- ]), 1040);
492
- };
493
- }
494
- });
495
- const index_vue_vue_type_style_index_0_lang$b = "";
496
- const index$1 = "";
497
- const index = "";
498
- const install = elementPlus.ElNotification.install;
499
- const defaultOption = {
500
- duration: 2e3
501
- };
502
- const ElNotification = elementPlus.ElNotification;
503
- const notificationTypes = [
504
- "success",
505
- "info",
506
- "warning",
507
- "error"
508
- ];
509
- notificationTypes.forEach((type) => {
510
- ElNotification[type] = (options) => {
511
- if (typeof options === "string") {
512
- return elementPlus.ElNotification[type](options);
513
- }
514
- if (vue.isVNode(options)) {
515
- return elementPlus.ElNotification[type](options);
516
- }
517
- let data = {
518
- ...defaultOption,
519
- ...options,
520
- customClass: type,
521
- type
522
- };
523
- return ElNotification(data);
524
- };
525
- });
526
- ElNotification.install = (app) => {
527
- install == null ? void 0 : install(app);
528
- app.config.globalProperties.$notify = ElNotification;
529
- };
530
- const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
531
- __name: "index",
532
- setup(__props, { expose: __expose }) {
533
- const attrs = vue.useAttrs();
534
- useDataTestId();
535
- const proxyElement = vue.ref();
536
- const expose = useExpose(proxyElement);
537
- __expose(expose);
538
- const defaultAttrs = {
539
- pageSizes: [20, 50, 100],
540
- layout: "sizes,prev, pager, next,total"
541
- };
542
392
  return (_ctx, _cache) => {
543
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPagination), vue.mergeProps({ ...defaultAttrs, ...vue.unref(attrs) }, {
393
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTimePicker), vue.mergeProps(vue.unref(attrs), {
544
394
  ref_key: "proxyElement",
545
395
  ref: proxyElement
546
396
  }), vue.createSlots({ _: 2 }, [
@@ -556,15 +406,16 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
556
406
  };
557
407
  }
558
408
  });
559
- const index_vue_vue_type_style_index_0_lang$a = "";
560
- const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
409
+ const index_vue_vue_type_style_index_0_lang$j = "";
410
+ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
561
411
  __name: "index",
562
412
  setup(__props, { expose: __expose }) {
563
413
  const proxyElement = vue.ref();
564
414
  const expose = useExpose(proxyElement);
565
415
  __expose(expose);
566
416
  return (_ctx, _cache) => {
567
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPopover), {
417
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElUpload), {
418
+ class: "upload_wrapper",
568
419
  ref_key: "proxyElement",
569
420
  ref: proxyElement
570
421
  }, vue.createSlots({ _: 2 }, [
@@ -580,16 +431,16 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
580
431
  };
581
432
  }
582
433
  });
583
- const index_vue_vue_type_style_index_0_lang$9 = "";
584
- const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
434
+ const index_vue_vue_type_style_index_0_lang$i = "";
435
+ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
585
436
  __name: "index",
586
437
  setup(__props, { expose: __expose }) {
438
+ const attrs = vue.useAttrs();
587
439
  const proxyElement = vue.ref();
588
440
  const expose = useExpose(proxyElement);
589
441
  __expose(expose);
590
- const attrs = vue.useAttrs();
591
442
  return (_ctx, _cache) => {
592
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElRadio), vue.mergeProps(vue.unref(attrs), {
443
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTransfer), vue.mergeProps(vue.unref(attrs), {
593
444
  ref_key: "proxyElement",
594
445
  ref: proxyElement
595
446
  }), vue.createSlots({ _: 2 }, [
@@ -605,171 +456,91 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
605
456
  };
606
457
  }
607
458
  });
608
- const index_vue_vue_type_style_index_0_lang$8 = "";
609
- const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
459
+ const index_vue_vue_type_style_index_0_lang$h = "";
460
+ /*! Element Plus Icons Vue v2.3.2 */
461
+ var _sfc_main187 = /* @__PURE__ */ vue.defineComponent({
462
+ name: "Operation",
463
+ __name: "operation",
464
+ setup(__props) {
465
+ return (_ctx, _cache) => (vue.openBlock(), vue.createElementBlock("svg", {
466
+ xmlns: "http://www.w3.org/2000/svg",
467
+ viewBox: "0 0 1024 1024"
468
+ }, [
469
+ vue.createElementVNode("path", {
470
+ fill: "currentColor",
471
+ d: "M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"
472
+ })
473
+ ]));
474
+ }
475
+ }), operation_default = _sfc_main187;
476
+ var _sfc_main197 = /* @__PURE__ */ vue.defineComponent({
477
+ name: "Picture",
478
+ __name: "picture",
479
+ setup(__props) {
480
+ return (_ctx, _cache) => (vue.openBlock(), vue.createElementBlock("svg", {
481
+ xmlns: "http://www.w3.org/2000/svg",
482
+ viewBox: "0 0 1024 1024"
483
+ }, [
484
+ vue.createElementVNode("path", {
485
+ fill: "currentColor",
486
+ d: "M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"
487
+ }),
488
+ vue.createElementVNode("path", {
489
+ fill: "currentColor",
490
+ d: "M384 288q64 0 64 64t-64 64-64-64 64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"
491
+ })
492
+ ]));
493
+ }
494
+ }), picture_default = _sfc_main197;
495
+ function useResizeTable(props) {
496
+ const instance = vue.getCurrentInstance();
497
+ const height = vue.ref(props.height);
498
+ if (props.autoHeight) {
499
+ vue.onMounted(() => {
500
+ resizeTable();
501
+ window.addEventListener("resize", resizeTable);
502
+ });
503
+ vue.onBeforeUnmount(() => {
504
+ window.removeEventListener("resize", resizeTable);
505
+ });
506
+ }
507
+ function getPxNumber(value) {
508
+ if (value.endsWith("px")) {
509
+ return Number(value.slice(0, -2));
510
+ }
511
+ return 0;
512
+ }
513
+ function getElementHeight(el) {
514
+ const stylesheet = getComputedStyle(el);
515
+ return el.clientHeight || getPxNumber(stylesheet.height);
516
+ }
517
+ function resizeTable() {
518
+ var _a, _b;
519
+ let el = (_b = (_a = instance == null ? void 0 : instance.proxy) == null ? void 0 : _a.$el) == null ? void 0 : _b.parentElement;
520
+ if (el) {
521
+ const stylesheet = getComputedStyle(el);
522
+ height.value = getElementHeight(el) - getPxNumber(stylesheet.paddingTop) - getPxNumber(stylesheet.paddingBottom);
523
+ }
524
+ }
525
+ return height;
526
+ }
527
+ const _hoisted_1$1 = { class: "gw-table-container" };
528
+ const _hoisted_2 = { class: "column-filter-content" };
529
+ const _hoisted_3 = { class: "filter-input-container" };
530
+ const _hoisted_4 = { class: "equipList-table-group-checkbox" };
531
+ const _hoisted_5 = { class: "equipList-table-group-botton" };
532
+ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
610
533
  __name: "index",
611
534
  props: {
612
- round: {
613
- type: Boolean,
614
- default: false
615
- }
616
- },
617
- setup(__props, { expose: __expose }) {
618
- const proxyElement = vue.ref();
619
- const expose = useExpose(proxyElement);
620
- __expose(expose);
621
- const attrs = vue.useAttrs();
622
- useDataTestId();
623
- return (_ctx, _cache) => {
624
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElRadioGroup), vue.mergeProps(vue.unref(attrs), {
625
- class: { round: __props.round },
626
- ref_key: "proxyElement",
627
- ref: proxyElement
628
- }), vue.createSlots({ _: 2 }, [
629
- vue.renderList(_ctx.$slots, (value, key) => {
630
- return {
631
- name: key,
632
- fn: vue.withCtx((slotProps) => [
633
- vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
634
- ])
635
- };
636
- })
637
- ]), 1040, ["class"]);
638
- };
639
- }
640
- });
641
- const index_vue_vue_type_style_index_0_lang$7 = "";
642
- const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
643
- __name: "index",
644
- setup(__props, { expose: __expose }) {
645
- const proxyElement = vue.ref();
646
- const expose = useExpose(proxyElement);
647
- __expose(expose);
648
- const attrs = vue.useAttrs();
649
- useDataTestId();
650
- return (_ctx, _cache) => {
651
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElSelect), vue.mergeProps(vue.unref(attrs), {
652
- ref_key: "proxyElement",
653
- ref: proxyElement
654
- }), vue.createSlots({ _: 2 }, [
655
- vue.renderList(_ctx.$slots, (value, key) => {
656
- return {
657
- name: key,
658
- fn: vue.withCtx((slotProps) => [
659
- vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
660
- ])
661
- };
662
- })
663
- ]), 1040);
664
- };
665
- }
666
- });
667
- const index_vue_vue_type_style_index_0_lang$6 = "";
668
- const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
669
- __name: "index",
670
- setup(__props, { expose: __expose }) {
671
- const proxyElement = vue.ref();
672
- const expose = useExpose(proxyElement);
673
- __expose(expose);
674
- const attrs = vue.useAttrs();
675
- useDataTestId();
676
- return (_ctx, _cache) => {
677
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElSwitch), vue.mergeProps(vue.unref(attrs), {
678
- ref_key: "proxyElement",
679
- ref: proxyElement
680
- }), vue.createSlots({ _: 2 }, [
681
- vue.renderList(_ctx.$slots, (value, key) => {
682
- return {
683
- name: key,
684
- fn: vue.withCtx((slotProps) => [
685
- vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
686
- ])
687
- };
688
- })
689
- ]), 1040);
690
- };
691
- }
692
- });
693
- const index_vue_vue_type_style_index_0_lang$5 = "";
694
- const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
695
- __name: "index",
696
- props: {
697
- formatter: {
698
- type: Function,
699
- default: null
700
- }
701
- },
702
- setup(__props) {
703
- const props = __props;
704
- function formatter_wrapper(row, column, cellValue, index2) {
705
- if (props.formatter) {
706
- return props.formatter(row, column, cellValue, index2);
707
- }
708
- return cellValue || "-";
709
- }
710
- return (_ctx, _cache) => {
711
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTableColumn), { formatter: formatter_wrapper }, vue.createSlots({ _: 2 }, [
712
- vue.renderList(_ctx.$slots, (value, key) => {
713
- return {
714
- name: key,
715
- fn: vue.withCtx((slotProps) => [
716
- vue.renderSlot(_ctx.$slots, key, vue.normalizeProps(vue.guardReactiveProps(slotProps)))
717
- ])
718
- };
719
- })
720
- ]), 1024);
721
- };
722
- }
723
- });
724
- function useResizeTable(props) {
725
- const instance = vue.getCurrentInstance();
726
- const height = vue.ref(props.height);
727
- if (props.autoHeight) {
728
- vue.onMounted(() => {
729
- resizeTable();
730
- window.addEventListener("resize", resizeTable);
731
- });
732
- vue.onBeforeUnmount(() => {
733
- window.removeEventListener("resize", resizeTable);
734
- });
735
- }
736
- function getPxNumber(value) {
737
- if (value.endsWith("px")) {
738
- return Number(value.slice(0, -2));
739
- }
740
- return 0;
741
- }
742
- function getElementHeight(el) {
743
- const stylesheet = getComputedStyle(el);
744
- return el.clientHeight || getPxNumber(stylesheet.height);
745
- }
746
- function resizeTable() {
747
- var _a, _b;
748
- let el = (_b = (_a = instance == null ? void 0 : instance.proxy) == null ? void 0 : _a.$el) == null ? void 0 : _b.parentElement;
749
- if (el) {
750
- const stylesheet = getComputedStyle(el);
751
- height.value = getElementHeight(el) - getPxNumber(stylesheet.paddingTop) - getPxNumber(stylesheet.paddingBottom);
752
- }
753
- }
754
- return height;
755
- }
756
- const _hoisted_1 = { class: "gw-table-container" };
757
- const _hoisted_2 = { class: "column-filter-content" };
758
- const _hoisted_3 = { class: "filter-input-container" };
759
- const _hoisted_4 = { class: "equipList-table-group-checkbox" };
760
- const _hoisted_5 = { class: "equipList-table-group-botton" };
761
- const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
762
- __name: "index",
763
- props: {
764
- height: {
765
- type: Number,
766
- default: null
767
- },
768
- autoHeight: {
769
- type: Boolean,
770
- default: true
771
- },
772
- showColumnFilter: {
535
+ height: {
536
+ type: Number,
537
+ default: null
538
+ },
539
+ autoHeight: {
540
+ type: Boolean,
541
+ default: true
542
+ },
543
+ showColumnFilter: {
773
544
  type: Boolean,
774
545
  default: false
775
546
  },
@@ -1104,7 +875,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
1104
875
  fetchPageColumns();
1105
876
  }
1106
877
  }, { immediate: true });
1107
- const tableHeight = useResizeTable(props);
878
+ useResizeTable(props);
1108
879
  vue.onMounted(() => {
1109
880
  if (props.showColumnFilter) {
1110
881
  const observer = new MutationObserver((_mutations, obs) => {
@@ -1138,128 +909,547 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
1138
909
  });
1139
910
  useDataTestId();
1140
911
  return (_ctx, _cache) => {
1141
- const _directive_loading = vue.resolveDirective("loading");
1142
- return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
1143
- vue.createElementVNode("div", _hoisted_1, [
1144
- vue.createVNode(vue.unref(elementPlus.ElTable), vue.mergeProps(tableAttrs.value, {
1145
- height: vue.unref(tableHeight),
1146
- ref_key: "proxyElement",
1147
- ref: proxyElement
1148
- }), vue.createSlots({
1149
- empty: vue.withCtx(() => [
1150
- vue.renderSlot(_ctx.$slots, "empty", {}, () => [
1151
- _cache[3] || (_cache[3] = vue.createElementVNode("div", { class: "noDataTips" }, null, -1))
1152
- ])
1153
- ]),
1154
- _: 2
1155
- }, [
1156
- vue.renderList(_ctx.$slots, (_, key) => {
1157
- return {
1158
- name: key,
1159
- fn: vue.withCtx((slotProps) => [
1160
- vue.renderSlot(_ctx.$slots, key, vue.normalizeProps(vue.guardReactiveProps(slotProps)))
1161
- ])
1162
- };
1163
- })
1164
- ]), 1040, ["height"]),
1165
- __props.showColumnFilter ? (vue.openBlock(), vue.createElementBlock("div", {
1166
- key: 0,
1167
- class: "filter-icon",
1168
- onClick: toggleFilterPopover
1169
- }, [
1170
- vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
1171
- default: vue.withCtx(() => [
1172
- vue.createVNode(vue.unref(operation_default))
1173
- ]),
1174
- _: 1
1175
- })
1176
- ])) : vue.createCommentVNode("", true)
1177
- ]),
1178
- vue.createVNode(vue.unref(elementPlus.ElPopover), {
1179
- visible: popoverVisible.value,
1180
- "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => popoverVisible.value = $event),
1181
- placement: "bottom-end",
1182
- width: 220,
1183
- trigger: "click",
1184
- "popper-class": "equipList-table-popover",
1185
- teleported: true
1186
- }, {
1187
- reference: vue.withCtx(() => [..._cache[4] || (_cache[4] = [
1188
- vue.createElementVNode("div", { style: { "display": "none" } }, null, -1)
1189
- ])]),
1190
- default: vue.withCtx(() => [
1191
- vue.createElementVNode("div", _hoisted_2, [
1192
- _cache[7] || (_cache[7] = vue.createElementVNode("p", { class: "filter-title" }, "展示列表", -1)),
1193
- vue.createElementVNode("div", _hoisted_3, [
1194
- vue.createVNode(vue.unref(elementPlus.ElInput), {
1195
- modelValue: filterKeyword.value,
1196
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filterKeyword.value = $event),
1197
- placeholder: "搜索列名...",
1198
- clearable: "",
1199
- size: "small"
1200
- }, null, 8, ["modelValue"])
1201
- ]),
1202
- vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
1203
- vue.createVNode(vue.unref(elementPlus.ElCheckboxGroup), {
1204
- modelValue: checkedColumns.value,
1205
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => checkedColumns.value = $event),
1206
- onChange: handleColumnChange
1207
- }, {
1208
- default: vue.withCtx(() => [
1209
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(filteredColumnsList.value, (column) => {
1210
- return vue.openBlock(), vue.createElementBlock("div", {
1211
- key: column.prop,
1212
- class: "checkbox-item"
1213
- }, [
1214
- vue.createVNode(vue.unref(elementPlus.ElCheckbox), {
1215
- label: column.prop
1216
- }, {
1217
- default: vue.withCtx(() => [
1218
- vue.createTextVNode(vue.toDisplayString(column.label), 1)
1219
- ]),
1220
- _: 2
1221
- }, 1032, ["label"])
1222
- ]);
1223
- }), 128))
1224
- ]),
1225
- _: 1
1226
- }, 8, ["modelValue"])
1227
- ])), [
1228
- [_directive_loading, contentLoading.value]
1229
- ]),
1230
- vue.createElementVNode("div", _hoisted_5, [
1231
- vue.createVNode(vue.unref(elementPlus.ElButton), {
1232
- type: "primary",
1233
- size: "small",
1234
- onClick: resetColumns,
1235
- loading: resetLoading.value
1236
- }, {
1237
- default: vue.withCtx(() => [..._cache[5] || (_cache[5] = [
1238
- vue.createTextVNode("重置", -1)
1239
- ])]),
1240
- _: 1
1241
- }, 8, ["loading"]),
1242
- vue.createVNode(vue.unref(elementPlus.ElButton), {
1243
- type: "primary",
1244
- size: "small",
1245
- onClick: saveColumns,
1246
- loading: loading.value
1247
- }, {
1248
- default: vue.withCtx(() => [..._cache[6] || (_cache[6] = [
1249
- vue.createTextVNode("确认", -1)
1250
- ])]),
1251
- _: 1
1252
- }, 8, ["loading"])
1253
- ])
912
+ const _directive_loading = vue.resolveDirective("loading");
913
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
914
+ vue.createElementVNode("div", _hoisted_1$1, [
915
+ vue.createVNode(vue.unref(elementPlus.ElTable), vue.mergeProps(tableAttrs.value, {
916
+ ref_key: "proxyElement",
917
+ ref: proxyElement
918
+ }), vue.createSlots({
919
+ empty: vue.withCtx(() => [
920
+ vue.renderSlot(_ctx.$slots, "empty", {}, () => [
921
+ _cache[3] || (_cache[3] = vue.createElementVNode("div", { class: "noDataTips" }, null, -1))
922
+ ])
923
+ ]),
924
+ _: 2
925
+ }, [
926
+ vue.renderList(_ctx.$slots, (_, key) => {
927
+ return {
928
+ name: key,
929
+ fn: vue.withCtx((slotProps) => [
930
+ vue.renderSlot(_ctx.$slots, key, vue.normalizeProps(vue.guardReactiveProps(slotProps)))
931
+ ])
932
+ };
933
+ })
934
+ ]), 1040),
935
+ __props.showColumnFilter ? (vue.openBlock(), vue.createElementBlock("div", {
936
+ key: 0,
937
+ class: "filter-icon",
938
+ onClick: toggleFilterPopover
939
+ }, [
940
+ vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
941
+ default: vue.withCtx(() => [
942
+ vue.createVNode(vue.unref(operation_default))
943
+ ]),
944
+ _: 1
945
+ })
946
+ ])) : vue.createCommentVNode("", true)
947
+ ]),
948
+ vue.createVNode(vue.unref(elementPlus.ElPopover), {
949
+ visible: popoverVisible.value,
950
+ "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => popoverVisible.value = $event),
951
+ placement: "bottom-end",
952
+ width: 220,
953
+ trigger: "click",
954
+ "popper-class": "equipList-table-popover",
955
+ teleported: true
956
+ }, {
957
+ reference: vue.withCtx(() => [..._cache[4] || (_cache[4] = [
958
+ vue.createElementVNode("div", { style: { "display": "none" } }, null, -1)
959
+ ])]),
960
+ default: vue.withCtx(() => [
961
+ vue.createElementVNode("div", _hoisted_2, [
962
+ _cache[7] || (_cache[7] = vue.createElementVNode("p", { class: "filter-title" }, "展示列表", -1)),
963
+ vue.createElementVNode("div", _hoisted_3, [
964
+ vue.createVNode(vue.unref(elementPlus.ElInput), {
965
+ modelValue: filterKeyword.value,
966
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filterKeyword.value = $event),
967
+ placeholder: "搜索列名...",
968
+ clearable: "",
969
+ size: "small"
970
+ }, null, 8, ["modelValue"])
971
+ ]),
972
+ vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
973
+ vue.createVNode(vue.unref(elementPlus.ElCheckboxGroup), {
974
+ modelValue: checkedColumns.value,
975
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => checkedColumns.value = $event),
976
+ onChange: handleColumnChange
977
+ }, {
978
+ default: vue.withCtx(() => [
979
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(filteredColumnsList.value, (column) => {
980
+ return vue.openBlock(), vue.createElementBlock("div", {
981
+ key: column.prop,
982
+ class: "checkbox-item"
983
+ }, [
984
+ vue.createVNode(vue.unref(elementPlus.ElCheckbox), {
985
+ label: column.prop
986
+ }, {
987
+ default: vue.withCtx(() => [
988
+ vue.createTextVNode(vue.toDisplayString(column.label), 1)
989
+ ]),
990
+ _: 2
991
+ }, 1032, ["label"])
992
+ ]);
993
+ }), 128))
994
+ ]),
995
+ _: 1
996
+ }, 8, ["modelValue"])
997
+ ])), [
998
+ [_directive_loading, contentLoading.value]
999
+ ]),
1000
+ vue.createElementVNode("div", _hoisted_5, [
1001
+ vue.createVNode(vue.unref(elementPlus.ElButton), {
1002
+ type: "primary",
1003
+ size: "small",
1004
+ onClick: resetColumns,
1005
+ loading: resetLoading.value
1006
+ }, {
1007
+ default: vue.withCtx(() => [..._cache[5] || (_cache[5] = [
1008
+ vue.createTextVNode("重置", -1)
1009
+ ])]),
1010
+ _: 1
1011
+ }, 8, ["loading"]),
1012
+ vue.createVNode(vue.unref(elementPlus.ElButton), {
1013
+ type: "primary",
1014
+ size: "small",
1015
+ onClick: saveColumns,
1016
+ loading: loading.value
1017
+ }, {
1018
+ default: vue.withCtx(() => [..._cache[6] || (_cache[6] = [
1019
+ vue.createTextVNode("确认", -1)
1020
+ ])]),
1021
+ _: 1
1022
+ }, 8, ["loading"])
1023
+ ])
1024
+ ])
1025
+ ]),
1026
+ _: 1
1027
+ }, 8, ["visible"])
1028
+ ], 64);
1029
+ };
1030
+ }
1031
+ });
1032
+ const index_vue_vue_type_style_index_0_lang$g = "";
1033
+ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
1034
+ __name: "index",
1035
+ props: {
1036
+ formatter: {
1037
+ type: Function,
1038
+ default: null
1039
+ }
1040
+ },
1041
+ setup(__props, { expose: __expose }) {
1042
+ const attrs = vue.useAttrs();
1043
+ const proxyElement = vue.ref();
1044
+ const expose = useExpose(proxyElement);
1045
+ __expose(expose);
1046
+ const props = __props;
1047
+ function formatter_wrapper(row, column, cellValue, index2) {
1048
+ if (props.formatter) {
1049
+ return props.formatter(row, column, cellValue, index2);
1050
+ }
1051
+ return cellValue || "-";
1052
+ }
1053
+ return (_ctx, _cache) => {
1054
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTableColumn), vue.mergeProps(vue.unref(attrs), {
1055
+ formatter: formatter_wrapper,
1056
+ ref_key: "proxyElement",
1057
+ ref: proxyElement
1058
+ }), vue.createSlots({ _: 2 }, [
1059
+ vue.renderList(_ctx.$slots, (value, key) => {
1060
+ return {
1061
+ name: key,
1062
+ fn: vue.withCtx((slotProps) => [
1063
+ vue.renderSlot(_ctx.$slots, key, vue.normalizeProps(vue.guardReactiveProps(slotProps)))
1064
+ ])
1065
+ };
1066
+ })
1067
+ ]), 1040);
1068
+ };
1069
+ }
1070
+ });
1071
+ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
1072
+ __name: "index",
1073
+ setup(__props, { expose: __expose }) {
1074
+ const attrs = vue.useAttrs();
1075
+ const tree = vue.ref();
1076
+ const expose = useExpose(tree);
1077
+ __expose(expose);
1078
+ return (_ctx, _cache) => {
1079
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTree), vue.mergeProps(vue.unref(attrs), {
1080
+ ref_key: "tree",
1081
+ ref: tree
1082
+ }), vue.createSlots({ _: 2 }, [
1083
+ vue.renderList(_ctx.$slots, (value, key) => {
1084
+ return {
1085
+ name: key,
1086
+ fn: vue.withCtx((slotProps) => [
1087
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
1088
+ ])
1089
+ };
1090
+ })
1091
+ ]), 1040);
1092
+ };
1093
+ }
1094
+ });
1095
+ const index_vue_vue_type_style_index_0_lang$f = "";
1096
+ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
1097
+ __name: "index",
1098
+ setup(__props, { expose: __expose }) {
1099
+ const attrs = vue.useAttrs();
1100
+ useDataTestId();
1101
+ const proxyElement = vue.ref();
1102
+ const expose = useExpose(proxyElement);
1103
+ __expose(expose);
1104
+ const defaultAttrs = {
1105
+ pageSizes: [20, 50, 100],
1106
+ layout: "sizes,prev, pager, next,total"
1107
+ };
1108
+ return (_ctx, _cache) => {
1109
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPagination), vue.mergeProps({ ...defaultAttrs, ...vue.unref(attrs) }, {
1110
+ ref_key: "proxyElement",
1111
+ ref: proxyElement
1112
+ }), vue.createSlots({ _: 2 }, [
1113
+ vue.renderList(_ctx.$slots, (value, key) => {
1114
+ return {
1115
+ name: key,
1116
+ fn: vue.withCtx((slotProps) => [
1117
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
1118
+ ])
1119
+ };
1120
+ })
1121
+ ]), 1040);
1122
+ };
1123
+ }
1124
+ });
1125
+ const index_vue_vue_type_style_index_0_lang$e = "";
1126
+ const _hoisted_1 = { class: "error-slot" };
1127
+ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
1128
+ ...{ inheritAttrs: false },
1129
+ __name: "index",
1130
+ props: {
1131
+ src: { default: "" },
1132
+ request: {}
1133
+ },
1134
+ setup(__props, { expose: __expose }) {
1135
+ const proxyElement = vue.ref();
1136
+ const expose = useExpose(proxyElement);
1137
+ __expose(expose);
1138
+ const props = __props;
1139
+ const _src = vue.ref("");
1140
+ vue.watch(() => props.src, async (newVal) => {
1141
+ if (!newVal) {
1142
+ return;
1143
+ }
1144
+ if (newVal.indexOf("/") > -1) {
1145
+ _src.value = newVal;
1146
+ return;
1147
+ } else {
1148
+ if (!props.request) {
1149
+ _src.value = newVal;
1150
+ return;
1151
+ }
1152
+ props.request({ id: props.src }).then((res) => {
1153
+ const blob = res.data;
1154
+ try {
1155
+ URL.revokeObjectURL(_src.value);
1156
+ } catch (e) {
1157
+ }
1158
+ _src.value = URL.createObjectURL(blob);
1159
+ });
1160
+ }
1161
+ }, {
1162
+ immediate: true
1163
+ });
1164
+ return (_ctx, _cache) => {
1165
+ const _component_el_icon = vue.resolveComponent("el-icon");
1166
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElImage), vue.mergeProps(_ctx.$attrs, {
1167
+ fit: "contain",
1168
+ lazy: "",
1169
+ src: _src.value,
1170
+ ref_key: "proxyElement",
1171
+ ref: proxyElement
1172
+ }), vue.createSlots({ _: 2 }, [
1173
+ vue.renderList(_ctx.$slots, (value, key) => {
1174
+ return {
1175
+ name: key,
1176
+ fn: vue.withCtx((slotProps) => [
1177
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
1178
+ ])
1179
+ };
1180
+ }),
1181
+ !_ctx.$slots.error ? {
1182
+ name: "error",
1183
+ fn: vue.withCtx(() => [
1184
+ vue.createElementVNode("div", _hoisted_1, [
1185
+ vue.createVNode(_component_el_icon, null, {
1186
+ default: vue.withCtx(() => [
1187
+ vue.createVNode(vue.unref(picture_default))
1188
+ ]),
1189
+ _: 1
1190
+ })
1191
+ ])
1192
+ ]),
1193
+ key: "0"
1194
+ } : void 0
1195
+ ]), 1040, ["src"]);
1196
+ };
1197
+ }
1198
+ });
1199
+ const index_vue_vue_type_style_index_0_lang$d = "";
1200
+ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
1201
+ __name: "index",
1202
+ setup(__props, { expose: __expose }) {
1203
+ const attrs = vue.useAttrs();
1204
+ const proxyElement = vue.ref();
1205
+ const expose = useExpose(proxyElement);
1206
+ __expose(expose);
1207
+ return (_ctx, _cache) => {
1208
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElProgress), vue.mergeProps(vue.unref(attrs), {
1209
+ ref_key: "proxyElement",
1210
+ ref: proxyElement
1211
+ }), vue.createSlots({ _: 2 }, [
1212
+ vue.renderList(_ctx.$slots, (value, key) => {
1213
+ return {
1214
+ name: key,
1215
+ fn: vue.withCtx((slotProps) => [
1216
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
1217
+ ])
1218
+ };
1219
+ })
1220
+ ]), 1040);
1221
+ };
1222
+ }
1223
+ });
1224
+ const index_vue_vue_type_style_index_0_lang$c = "";
1225
+ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
1226
+ __name: "index",
1227
+ setup(__props, { expose: __expose }) {
1228
+ const attrs = vue.useAttrs();
1229
+ const proxyElement = vue.ref();
1230
+ const expose = useExpose(proxyElement);
1231
+ __expose(expose);
1232
+ return (_ctx, _cache) => {
1233
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElBadge), vue.mergeProps(vue.unref(attrs), {
1234
+ ref_key: "proxyElement",
1235
+ ref: proxyElement
1236
+ }), vue.createSlots({ _: 2 }, [
1237
+ vue.renderList(_ctx.$slots, (value, key) => {
1238
+ return {
1239
+ name: key,
1240
+ fn: vue.withCtx((slotProps) => [
1241
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
1242
+ ])
1243
+ };
1244
+ })
1245
+ ]), 1040);
1246
+ };
1247
+ }
1248
+ });
1249
+ const index_vue_vue_type_style_index_0_lang$b = "";
1250
+ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
1251
+ __name: "index",
1252
+ setup(__props, { expose: __expose }) {
1253
+ const attrs = vue.useAttrs();
1254
+ const proxyElement = vue.ref();
1255
+ const expose = useExpose(proxyElement);
1256
+ __expose(expose);
1257
+ return (_ctx, _cache) => {
1258
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElCard), vue.mergeProps(vue.unref(attrs), {
1259
+ ref_key: "proxyElement",
1260
+ ref: proxyElement
1261
+ }), vue.createSlots({ _: 2 }, [
1262
+ vue.renderList(_ctx.$slots, (value, key) => {
1263
+ return {
1264
+ name: key,
1265
+ fn: vue.withCtx((slotProps) => [
1266
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
1267
+ ])
1268
+ };
1269
+ })
1270
+ ]), 1040);
1271
+ };
1272
+ }
1273
+ });
1274
+ const index_vue_vue_type_style_index_0_lang$a = "";
1275
+ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
1276
+ __name: "index",
1277
+ setup(__props, { expose: __expose }) {
1278
+ const attrs = vue.useAttrs();
1279
+ const proxyElement = vue.ref();
1280
+ const expose = useExpose(proxyElement);
1281
+ __expose(expose);
1282
+ return (_ctx, _cache) => {
1283
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElAlert), vue.mergeProps(vue.unref(attrs), {
1284
+ ref_key: "proxyElement",
1285
+ ref: proxyElement
1286
+ }), vue.createSlots({ _: 2 }, [
1287
+ vue.renderList(_ctx.$slots, (value, key) => {
1288
+ return {
1289
+ name: key,
1290
+ fn: vue.withCtx((slotProps) => [
1291
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
1292
+ ])
1293
+ };
1294
+ })
1295
+ ]), 1040);
1296
+ };
1297
+ }
1298
+ });
1299
+ const index_vue_vue_type_style_index_0_lang$9 = "";
1300
+ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
1301
+ __name: "index",
1302
+ setup(__props, { expose: __expose }) {
1303
+ const proxyElement = vue.ref();
1304
+ const expose = useExpose(proxyElement);
1305
+ __expose(expose);
1306
+ return (_ctx, _cache) => {
1307
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDialog), vue.mergeProps(_ctx.$attrs, {
1308
+ ref_key: "proxyElement",
1309
+ ref: proxyElement
1310
+ }), vue.createSlots({ _: 2 }, [
1311
+ vue.renderList(_ctx.$slots, (value, key) => {
1312
+ return {
1313
+ name: key,
1314
+ fn: vue.withCtx((slotProps) => [
1315
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
1316
+ ])
1317
+ };
1318
+ })
1319
+ ]), 1040);
1320
+ };
1321
+ }
1322
+ });
1323
+ const index_vue_vue_type_style_index_0_lang$8 = "";
1324
+ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
1325
+ __name: "index",
1326
+ setup(__props, { expose: __expose }) {
1327
+ const proxyElement = vue.ref();
1328
+ const expose = useExpose(proxyElement);
1329
+ __expose(expose);
1330
+ const attrs = vue.useAttrs();
1331
+ useDataTestId();
1332
+ return (_ctx, _cache) => {
1333
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDrawer), vue.mergeProps(vue.unref(attrs), {
1334
+ ref_key: "proxyElement",
1335
+ ref: proxyElement
1336
+ }), vue.createSlots({ _: 2 }, [
1337
+ vue.renderList(_ctx.$slots, (value, key) => {
1338
+ return {
1339
+ name: key,
1340
+ fn: vue.withCtx((slotProps) => [
1341
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
1342
+ ])
1343
+ };
1344
+ })
1345
+ ]), 1040);
1346
+ };
1347
+ }
1348
+ });
1349
+ const index_vue_vue_type_style_index_0_lang$7 = "";
1350
+ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
1351
+ __name: "index",
1352
+ setup(__props, { expose: __expose }) {
1353
+ const attrs = vue.useAttrs();
1354
+ const proxyElement = vue.ref();
1355
+ const expose = useExpose(proxyElement);
1356
+ __expose(expose);
1357
+ return (_ctx, _cache) => {
1358
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPopover), vue.mergeProps(vue.unref(attrs), {
1359
+ ref_key: "proxyElement",
1360
+ ref: proxyElement
1361
+ }), vue.createSlots({ _: 2 }, [
1362
+ vue.renderList(_ctx.$slots, (value, key) => {
1363
+ return {
1364
+ name: key,
1365
+ fn: vue.withCtx((slotProps) => [
1366
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
1367
+ ])
1368
+ };
1369
+ })
1370
+ ]), 1040);
1371
+ };
1372
+ }
1373
+ });
1374
+ const index_vue_vue_type_style_index_0_lang$6 = "";
1375
+ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
1376
+ __name: "index",
1377
+ setup(__props, { expose: __expose }) {
1378
+ const attrs = vue.useAttrs();
1379
+ const proxyElement = vue.ref();
1380
+ const expose = useExpose(proxyElement);
1381
+ __expose(expose);
1382
+ return (_ctx, _cache) => {
1383
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), vue.mergeProps(vue.unref(attrs), {
1384
+ ref_key: "proxyElement",
1385
+ ref: proxyElement
1386
+ }), vue.createSlots({ _: 2 }, [
1387
+ vue.renderList(_ctx.$slots, (value, key) => {
1388
+ return {
1389
+ name: key,
1390
+ fn: vue.withCtx((slotProps) => [
1391
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
1254
1392
  ])
1255
- ]),
1256
- _: 1
1257
- }, 8, ["visible"])
1258
- ], 64);
1393
+ };
1394
+ })
1395
+ ]), 1040);
1259
1396
  };
1260
1397
  }
1261
1398
  });
1262
- const index_vue_vue_type_style_index_0_lang$4 = "";
1399
+ const index_vue_vue_type_style_index_0_lang$5 = "";
1400
+ const index$2 = "";
1401
+ const index$1 = "";
1402
+ const install = elementPlus.ElNotification.install;
1403
+ const defaultOption = {
1404
+ duration: 2e3
1405
+ };
1406
+ const ElNotification = elementPlus.ElNotification;
1407
+ const notificationTypes = [
1408
+ "success",
1409
+ "info",
1410
+ "warning",
1411
+ "error"
1412
+ ];
1413
+ notificationTypes.forEach((type) => {
1414
+ ElNotification[type] = (options) => {
1415
+ if (typeof options === "string") {
1416
+ return elementPlus.ElNotification[type](options);
1417
+ }
1418
+ if (vue.isVNode(options)) {
1419
+ return elementPlus.ElNotification[type](options);
1420
+ }
1421
+ let data = {
1422
+ ...defaultOption,
1423
+ ...options,
1424
+ customClass: type,
1425
+ type
1426
+ };
1427
+ return ElNotification(data);
1428
+ };
1429
+ });
1430
+ ElNotification.install = (app) => {
1431
+ install == null ? void 0 : install(app);
1432
+ app.config.globalProperties.$notify = ElNotification;
1433
+ };
1434
+ const index = "";
1435
+ const vLoading = {
1436
+ mounted(el, binding, vnode, prevVnode) {
1437
+ var _a, _b;
1438
+ vnode.ctx.proxy;
1439
+ el.setAttribute(`element-loading-text`, sessionStorage.languageType == "zh-CN" ? "加载中..." : "Loading...");
1440
+ el.setAttribute(`element-loading-spinner`, " ");
1441
+ el.setAttribute(`element-loading-background`, "customLoading");
1442
+ (_b = (_a = elementPlus.vLoading).mounted) == null ? void 0 : _b.call(_a, el, binding, vnode, prevVnode);
1443
+ },
1444
+ updated(el, binding, vnode, prevVnode) {
1445
+ var _a, _b;
1446
+ (_b = (_a = elementPlus.vLoading).updated) == null ? void 0 : _b.call(_a, el, binding, vnode, prevVnode);
1447
+ },
1448
+ unmounted(el, binding, vnode, prevVnode) {
1449
+ var _a, _b;
1450
+ (_b = (_a = elementPlus.vLoading).unmounted) == null ? void 0 : _b.call(_a, el, binding, vnode, prevVnode);
1451
+ }
1452
+ };
1263
1453
  const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
1264
1454
  __name: "index",
1265
1455
  setup(__props, { expose: __expose }) {
@@ -1267,8 +1457,9 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
1267
1457
  const expose = useExpose(proxyElement);
1268
1458
  __expose(expose);
1269
1459
  const attrs = vue.useAttrs();
1460
+ useDataTestId();
1270
1461
  return (_ctx, _cache) => {
1271
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTimePicker), vue.mergeProps(vue.unref(attrs), {
1462
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElMenu), vue.mergeProps(vue.unref(attrs), {
1272
1463
  ref_key: "proxyElement",
1273
1464
  ref: proxyElement
1274
1465
  }), vue.createSlots({ _: 2 }, [
@@ -1284,17 +1475,29 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
1284
1475
  };
1285
1476
  }
1286
1477
  });
1478
+ const index_vue_vue_type_style_index_0_lang$4 = "";
1287
1479
  const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
1288
1480
  __name: "index",
1289
1481
  setup(__props, { expose: __expose }) {
1290
1482
  const proxyElement = vue.ref();
1291
1483
  const expose = useExpose(proxyElement);
1292
1484
  __expose(expose);
1485
+ const attrs = vue.useAttrs();
1486
+ useDataTestId();
1293
1487
  return (_ctx, _cache) => {
1294
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTransfer), {
1488
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDropdown), vue.mergeProps(vue.unref(attrs), {
1295
1489
  ref_key: "proxyElement",
1296
1490
  ref: proxyElement
1297
- }, null, 512);
1491
+ }), vue.createSlots({ _: 2 }, [
1492
+ vue.renderList(_ctx.$slots, (value, key) => {
1493
+ return {
1494
+ name: key,
1495
+ fn: vue.withCtx((slotProps) => [
1496
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
1497
+ ])
1498
+ };
1499
+ })
1500
+ ]), 1040);
1298
1501
  };
1299
1502
  }
1300
1503
  });
@@ -1302,14 +1505,15 @@ const index_vue_vue_type_style_index_0_lang$3 = "";
1302
1505
  const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
1303
1506
  __name: "index",
1304
1507
  setup(__props, { expose: __expose }) {
1305
- const tree = vue.ref();
1306
- const expose = useExpose(tree);
1508
+ const attrs = vue.useAttrs();
1509
+ const proxyElement = vue.ref();
1510
+ const expose = useExpose(proxyElement);
1307
1511
  __expose(expose);
1308
1512
  return (_ctx, _cache) => {
1309
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTree), {
1310
- ref_key: "tree",
1311
- ref: tree
1312
- }, vue.createSlots({ _: 2 }, [
1513
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTabs), vue.mergeProps(vue.unref(attrs), {
1514
+ ref_key: "proxyElement",
1515
+ ref: proxyElement
1516
+ }), vue.createSlots({ _: 2 }, [
1313
1517
  vue.renderList(_ctx.$slots, (value, key) => {
1314
1518
  return {
1315
1519
  name: key,
@@ -1318,7 +1522,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
1318
1522
  ])
1319
1523
  };
1320
1524
  })
1321
- ]), 1536);
1525
+ ]), 1040);
1322
1526
  };
1323
1527
  }
1324
1528
  });
@@ -1326,15 +1530,15 @@ const index_vue_vue_type_style_index_0_lang$2 = "";
1326
1530
  const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
1327
1531
  __name: "index",
1328
1532
  setup(__props, { expose: __expose }) {
1533
+ const attrs = vue.useAttrs();
1329
1534
  const proxyElement = vue.ref();
1330
1535
  const expose = useExpose(proxyElement);
1331
1536
  __expose(expose);
1332
1537
  return (_ctx, _cache) => {
1333
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElUpload), {
1334
- class: "upload_wrapper",
1538
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElCollapse), vue.mergeProps(vue.unref(attrs), {
1335
1539
  ref_key: "proxyElement",
1336
1540
  ref: proxyElement
1337
- }, vue.createSlots({ _: 2 }, [
1541
+ }), vue.createSlots({ _: 2 }, [
1338
1542
  vue.renderList(_ctx.$slots, (value, key) => {
1339
1543
  return {
1340
1544
  name: key,
@@ -1343,84 +1547,40 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
1343
1547
  ])
1344
1548
  };
1345
1549
  })
1346
- ]), 1536);
1550
+ ]), 1040);
1347
1551
  };
1348
1552
  }
1349
1553
  });
1350
1554
  const index_vue_vue_type_style_index_0_lang$1 = "";
1351
1555
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1352
1556
  __name: "index",
1353
- props: {
1354
- effect: {
1355
- type: String,
1356
- default: "dark"
1357
- },
1358
- trigger: {
1359
- type: String,
1360
- default: "hover"
1361
- },
1362
- placement: {
1363
- type: String,
1364
- default: "bottom"
1365
- },
1366
- width: {
1367
- type: [String, Number],
1368
- default: "auto"
1369
- },
1370
- offset: {
1371
- type: Number,
1372
- default: 12
1373
- },
1374
- transition: {
1375
- type: String,
1376
- default: "el-fade-in-linear"
1377
- },
1378
- showArrow: {
1379
- type: Boolean,
1380
- default: true
1381
- },
1382
- persistent: {
1383
- type: Boolean,
1384
- default: false
1385
- },
1386
- popperClass: {
1387
- type: String,
1388
- default: ""
1389
- },
1390
- showAfter: {
1391
- type: Number,
1392
- default: 200
1393
- },
1394
- hideAfter: {
1395
- type: Number,
1396
- default: 200
1397
- },
1398
- disabled: {
1399
- type: Boolean,
1400
- default: false
1401
- }
1402
- },
1403
1557
  setup(__props, { expose: __expose }) {
1558
+ const defaultAttrs = {
1559
+ effect: "dark",
1560
+ trigger: "hover",
1561
+ placement: "bottom",
1562
+ width: "auto",
1563
+ offset: 12,
1564
+ transition: "el-fade-in-linear",
1565
+ showArrow: true,
1566
+ persistent: false,
1567
+ popperClass: "",
1568
+ showAfter: 200,
1569
+ hideAfter: 200,
1570
+ disabled: false
1571
+ };
1572
+ const attrs = vue.useAttrs();
1573
+ const mergedAttrs = vue.computed(() => ({
1574
+ ...defaultAttrs,
1575
+ ...attrs
1576
+ }));
1404
1577
  const proxyElement = vue.ref();
1405
1578
  const expose = useExpose(proxyElement);
1406
1579
  __expose(expose);
1407
1580
  return (_ctx, _cache) => {
1408
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPopover), vue.mergeProps({
1581
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPopover), vue.mergeProps(mergedAttrs.value, {
1409
1582
  ref_key: "proxyElement",
1410
1583
  ref: proxyElement
1411
- }, _ctx.$attrs, {
1412
- effect: __props.effect,
1413
- trigger: __props.trigger,
1414
- placement: __props.placement,
1415
- width: __props.width,
1416
- offset: __props.offset,
1417
- transition: __props.transition,
1418
- "show-arrow": __props.showArrow,
1419
- persistent: __props.persistent,
1420
- "popper-class": __props.popperClass,
1421
- "show-after": __props.showAfter,
1422
- "hide-after": __props.hideAfter,
1423
- disabled: __props.disabled
1424
1584
  }), vue.createSlots({ _: 2 }, [
1425
1585
  vue.renderList(_ctx.$slots, (value, key) => {
1426
1586
  return {
@@ -1430,36 +1590,49 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1430
1590
  ])
1431
1591
  };
1432
1592
  })
1433
- ]), 1040, ["effect", "trigger", "placement", "width", "offset", "transition", "show-arrow", "persistent", "popper-class", "show-after", "hide-after", "disabled"]);
1593
+ ]), 1040);
1434
1594
  };
1435
1595
  }
1436
1596
  });
1437
1597
  const index_vue_vue_type_style_index_0_lang = "";
1438
1598
  const Adapter = {
1439
- ElInput: _sfc_main$e,
1440
- ElDropdown: _sfc_main$h,
1441
- ElMenu: _sfc_main$d,
1442
- ElRadioGroup: _sfc_main$9,
1443
- ElTable: _sfc_main$5,
1444
- ElTableColumn: _sfc_main$6,
1445
- ElSelect: _sfc_main$8,
1446
- ElPagination: _sfc_main$c,
1447
- ElButton: _sfc_main$o,
1448
- ElForm: _sfc_main$g,
1449
- ElCascader: _sfc_main$n,
1450
- ElRadio: _sfc_main$a,
1451
- ElCheckbox: _sfc_main$m,
1452
- ElDatePicker: _sfc_main$k,
1453
- ElTimePicker: _sfc_main$4,
1454
- ElDialog: _sfc_main$j,
1455
- ElSwitch: _sfc_main$7,
1456
- ElDrawer: _sfc_main$i,
1457
- ElPopover: _sfc_main$b,
1458
- ElTransfer: _sfc_main$3,
1459
- ElCollapse: _sfc_main$l,
1460
- ElImage: _sfc_main$f,
1461
- ElUpload: _sfc_main$1,
1462
- ElTree: _sfc_main$2,
1599
+ // 基础组件
1600
+ ElButton: _sfc_main$v,
1601
+ ElTag: _sfc_main$u,
1602
+ // 表单组件
1603
+ ElInput: _sfc_main$t,
1604
+ ElForm: _sfc_main$s,
1605
+ ElSelect: _sfc_main$r,
1606
+ ElCheckbox: _sfc_main$q,
1607
+ ElRadio: _sfc_main$p,
1608
+ ElRadioGroup: _sfc_main$o,
1609
+ ElSwitch: _sfc_main$n,
1610
+ ElCascader: _sfc_main$m,
1611
+ ElDatePicker: _sfc_main$l,
1612
+ ElTimePicker: _sfc_main$k,
1613
+ ElUpload: _sfc_main$j,
1614
+ ElTransfer: _sfc_main$i,
1615
+ // 数据展示
1616
+ ElTable: _sfc_main$h,
1617
+ ElTableColumn: _sfc_main$g,
1618
+ ElTree: _sfc_main$f,
1619
+ ElPagination: _sfc_main$e,
1620
+ ElImage: _sfc_main$d,
1621
+ ElProgress: _sfc_main$c,
1622
+ ElBadge: _sfc_main$b,
1623
+ ElCard: _sfc_main$a,
1624
+ // 反馈组件
1625
+ ElAlert: _sfc_main$9,
1626
+ ElDialog: _sfc_main$8,
1627
+ ElDrawer: _sfc_main$7,
1628
+ ElPopover: _sfc_main$6,
1629
+ ElTooltip: _sfc_main$5,
1630
+ // 导航组件
1631
+ ElMenu: _sfc_main$4,
1632
+ ElDropdown: _sfc_main$3,
1633
+ ElTabs: _sfc_main$2,
1634
+ // 其他
1635
+ ElCollapse: _sfc_main$1,
1463
1636
  ElPoper: _sfc_main
1464
1637
  };
1465
1638
  function adapterInstall(app) {
@@ -1469,10 +1642,15 @@ function adapterInstall(app) {
1469
1642
  adapterLoading(app);
1470
1643
  app.use(elementPlus.ElMessageBox);
1471
1644
  app.use(ElNotification);
1645
+ app.config.globalProperties.$message = elementPlus.ElMessage;
1472
1646
  }
1473
1647
  function adapterLoading(app) {
1474
1648
  app.directive("loading", vLoading);
1475
1649
  }
1650
+ Object.defineProperty(exports, "ElMessage", {
1651
+ enumerable: true,
1652
+ get: () => elementPlus.ElMessage
1653
+ });
1476
1654
  exports.adapterInstall = adapterInstall;
1477
1655
  exports.adapterLoading = adapterLoading;
1478
1656
  exports.default = Adapter;