@ganwei-web/gw-base-components-plus 1.0.0

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 (59) hide show
  1. package/echartList/barEchart/dist/index.es.js +152 -0
  2. package/echartList/barEchart/dist/index.umd.js +1 -0
  3. package/echartList/barEchart/dist/style.css +1 -0
  4. package/echartList/curve/dist/index.es.js +217 -0
  5. package/echartList/curve/dist/index.umd.js +1 -0
  6. package/echartList/curve/dist/style.css +1 -0
  7. package/echartList/historyEchart/dist/index.es.js +292 -0
  8. package/echartList/historyEchart/dist/index.umd.js +10 -0
  9. package/echartList/historyEchart/dist/style.css +1 -0
  10. package/echartList/solid-bar/dist/index.es.js +290 -0
  11. package/echartList/solid-bar/dist/index.umd.js +1 -0
  12. package/echartList/solid-bar/dist/style.css +1 -0
  13. package/echartList/solid-circle/dist/index.es.js +332 -0
  14. package/echartList/solid-circle/dist/index.umd.js +6 -0
  15. package/echartList/solid-circle/dist/style.css +1 -0
  16. package/echartList/solid-pie/dist/index.es.js +336 -0
  17. package/echartList/solid-pie/dist/index.umd.js +6 -0
  18. package/echartList/solid-pie/dist/style.css +1 -0
  19. package/element-plus-adapter/dist/ElementPlusAdapter.cjs +902 -0
  20. package/element-plus-adapter/dist/ElementPlusAdapter.cjs.map +1 -0
  21. package/element-plus-adapter/dist/ElementPlusAdapter.css +789 -0
  22. package/element-plus-adapter/dist/ElementPlusAdapter.iife.js +903 -0
  23. package/element-plus-adapter/dist/ElementPlusAdapter.iife.js.map +1 -0
  24. package/element-plus-adapter/dist/ElementPlusAdapter.js +902 -0
  25. package/element-plus-adapter/dist/ElementPlusAdapter.js.map +1 -0
  26. package/equip-list-vue2/dist/index.es.js +1275 -0
  27. package/equip-list-vue2/dist/index.umd.js +1 -0
  28. package/equip-list-vue2/dist/style.css +1 -0
  29. package/equip-list-vue3/dist/index.es.js +1510 -0
  30. package/equip-list-vue3/dist/index.umd.js +1 -0
  31. package/equip-list-vue3/dist/style.css +1 -0
  32. package/equip-select-vue2/dist/index.es.js +231 -0
  33. package/equip-select-vue2/dist/index.umd.js +1 -0
  34. package/equip-select-vue2/dist/style.css +1 -0
  35. package/equip-select-vue3/dist/index.es.js +231 -0
  36. package/equip-select-vue3/dist/index.umd.js +1 -0
  37. package/equip-select-vue3/dist/style.css +1 -0
  38. package/equipProcessing/dist/index.es.js +203 -0
  39. package/equipProcessing/dist/index.umd.js +1 -0
  40. package/loadMore/dist/index.es.js +12 -0
  41. package/loadMore/dist/index.umd.js +1 -0
  42. package/loading/dist/index.es.js +25 -0
  43. package/loading/dist/index.umd.js +1 -0
  44. package/loading/dist/style.css +1 -0
  45. package/package.json +11 -0
  46. package/player/dist/index.es.js +1080 -0
  47. package/player/dist/index.umd.js +14 -0
  48. package/player/dist/style.css +1 -0
  49. package/selectV2/dist/index.es.js +190 -0
  50. package/selectV2/dist/index.umd.js +1 -0
  51. package/selectV2/dist/style.css +1 -0
  52. package/showPassword/dist/index.es.js +72 -0
  53. package/showPassword/dist/index.umd.js +1 -0
  54. package/table/dist/index.es.js +182 -0
  55. package/table/dist/index.umd.js +1 -0
  56. package/table/dist/style.css +1 -0
  57. package/widthSetting/dist/index.es.js +113 -0
  58. package/widthSetting/dist/index.umd.js +1 -0
  59. package/widthSetting/dist/style.css +1 -0
@@ -0,0 +1,902 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const vue = require("vue");
4
+ const elementPlus = require("element-plus");
5
+ function useExpose(proxyElement) {
6
+ const expose = new Proxy({}, {
7
+ get(target, key) {
8
+ var _a;
9
+ return (_a = proxyElement.value) == null ? void 0 : _a[key];
10
+ },
11
+ has(target, key) {
12
+ return key in proxyElement.value;
13
+ }
14
+ });
15
+ return expose;
16
+ }
17
+ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
18
+ ...{
19
+ inheritAttrs: false
20
+ },
21
+ __name: "index",
22
+ setup(__props, { expose: __expose }) {
23
+ const proxyElement = vue.ref();
24
+ const expose = useExpose(proxyElement);
25
+ __expose(expose);
26
+ const attrs = vue.useAttrs();
27
+ const loading = vue.ref(false);
28
+ const handleClick = async (evt) => {
29
+ if (!attrs.onClick)
30
+ return;
31
+ const res = attrs.onClick(evt);
32
+ if (res instanceof Promise) {
33
+ loading.value = true;
34
+ res.finally(() => {
35
+ loading.value = false;
36
+ });
37
+ }
38
+ return res;
39
+ };
40
+ return (_ctx, _cache) => {
41
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), vue.mergeProps({ type: "primary", loading: loading.value, ...vue.unref(attrs), onClick: handleClick }, {
42
+ ref_key: "proxyElement",
43
+ ref: proxyElement
44
+ }), vue.createSlots({ _: 2 }, [
45
+ vue.renderList(_ctx.$slots, (value, key) => {
46
+ return {
47
+ name: key,
48
+ fn: vue.withCtx((slotProps) => [
49
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
50
+ ])
51
+ };
52
+ })
53
+ ]), 1040);
54
+ };
55
+ }
56
+ });
57
+ const index_vue_vue_type_style_index_0_lang$k = "";
58
+ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
59
+ __name: "index",
60
+ setup(__props, { expose: __expose }) {
61
+ const proxyElement = vue.ref();
62
+ const expose = useExpose(proxyElement);
63
+ __expose(expose);
64
+ const attrs = vue.useAttrs();
65
+ return (_ctx, _cache) => {
66
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElCascader), vue.mergeProps(vue.unref(attrs), {
67
+ ref_key: "proxyElement",
68
+ ref: proxyElement
69
+ }), vue.createSlots({ _: 2 }, [
70
+ vue.renderList(_ctx.$slots, (value, key) => {
71
+ return {
72
+ name: key,
73
+ fn: vue.withCtx((slotProps) => [
74
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
75
+ ])
76
+ };
77
+ })
78
+ ]), 1040);
79
+ };
80
+ }
81
+ });
82
+ const index_vue_vue_type_style_index_0_lang$j = "";
83
+ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
84
+ __name: "index",
85
+ setup(__props, { expose: __expose }) {
86
+ const proxyElement = vue.ref();
87
+ const expose = useExpose(proxyElement);
88
+ __expose(expose);
89
+ const attrs = vue.useAttrs();
90
+ return (_ctx, _cache) => {
91
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElCheckbox), vue.mergeProps(vue.unref(attrs), {
92
+ ref_key: "proxyElement",
93
+ ref: proxyElement
94
+ }), vue.createSlots({ _: 2 }, [
95
+ vue.renderList(_ctx.$slots, (value, key) => {
96
+ return {
97
+ name: key,
98
+ fn: vue.withCtx((slotProps) => [
99
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
100
+ ])
101
+ };
102
+ })
103
+ ]), 1040);
104
+ };
105
+ }
106
+ });
107
+ const index_vue_vue_type_style_index_0_lang$i = "";
108
+ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
109
+ __name: "index",
110
+ setup(__props, { expose: __expose }) {
111
+ const proxyElement = ref();
112
+ const expose = useExpose(proxyElement);
113
+ __expose(expose);
114
+ return (_ctx, _cache) => {
115
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElCollapse), {
116
+ ref_key: "proxyElement",
117
+ ref: proxyElement
118
+ }, vue.createSlots({ _: 2 }, [
119
+ vue.renderList(_ctx.$slots, (value, key) => {
120
+ return {
121
+ name: key,
122
+ fn: vue.withCtx((slotProps) => [
123
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
124
+ ])
125
+ };
126
+ })
127
+ ]), 1536);
128
+ };
129
+ }
130
+ });
131
+ const index_vue_vue_type_style_index_0_lang$h = "";
132
+ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
133
+ __name: "index",
134
+ props: {
135
+ defaultTime: {},
136
+ valueFormat: {}
137
+ },
138
+ setup(__props, { expose: __expose }) {
139
+ const proxyElement = vue.ref();
140
+ const expose = useExpose(proxyElement);
141
+ __expose(expose);
142
+ const props = __props;
143
+ 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
+ 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),
166
+ ref_key: "proxyElement",
167
+ ref: proxyElement
168
+ }), vue.createSlots({ _: 2 }, [
169
+ vue.renderList(_ctx.$slots, (value, key) => {
170
+ return {
171
+ name: key,
172
+ fn: vue.withCtx((slotProps) => [
173
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
174
+ ])
175
+ };
176
+ })
177
+ ]), 1040, ["default-time", "value-format"]);
178
+ };
179
+ }
180
+ });
181
+ const index_vue_vue_type_style_index_0_lang$g = "";
182
+ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
183
+ __name: "index",
184
+ setup(__props, { expose: __expose }) {
185
+ const proxyElement = vue.ref();
186
+ const expose = useExpose(proxyElement);
187
+ __expose(expose);
188
+ return (_ctx, _cache) => {
189
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDialog), vue.mergeProps(_ctx.$attrs, {
190
+ ref_key: "proxyElement",
191
+ ref: proxyElement
192
+ }), vue.createSlots({ _: 2 }, [
193
+ vue.renderList(_ctx.$slots, (value, key) => {
194
+ return {
195
+ name: key,
196
+ fn: vue.withCtx((slotProps) => [
197
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
198
+ ])
199
+ };
200
+ })
201
+ ]), 1040);
202
+ };
203
+ }
204
+ });
205
+ const index_vue_vue_type_style_index_0_lang$f = "";
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$h = /* @__PURE__ */ vue.defineComponent({
214
+ __name: "index",
215
+ setup(__props, { expose: __expose }) {
216
+ const proxyElement = vue.ref();
217
+ const expose = useExpose(proxyElement);
218
+ __expose(expose);
219
+ const attrs = vue.useAttrs();
220
+ useDataTestId();
221
+ return (_ctx, _cache) => {
222
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDrawer), vue.mergeProps(vue.unref(attrs), {
223
+ ref_key: "proxyElement",
224
+ ref: proxyElement
225
+ }), vue.createSlots({ _: 2 }, [
226
+ vue.renderList(_ctx.$slots, (value, key) => {
227
+ return {
228
+ name: key,
229
+ fn: vue.withCtx((slotProps) => [
230
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
231
+ ])
232
+ };
233
+ })
234
+ ]), 1040);
235
+ };
236
+ }
237
+ });
238
+ const index_vue_vue_type_style_index_0_lang$e = "";
239
+ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
240
+ __name: "index",
241
+ setup(__props, { expose: __expose }) {
242
+ const proxyElement = vue.ref();
243
+ const expose = useExpose(proxyElement);
244
+ __expose(expose);
245
+ const attrs = vue.useAttrs();
246
+ useDataTestId();
247
+ return (_ctx, _cache) => {
248
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDropdown), vue.mergeProps(vue.unref(attrs), {
249
+ ref_key: "proxyElement",
250
+ ref: proxyElement
251
+ }), vue.createSlots({ _: 2 }, [
252
+ vue.renderList(_ctx.$slots, (value, key) => {
253
+ return {
254
+ name: key,
255
+ fn: vue.withCtx((slotProps) => [
256
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
257
+ ])
258
+ };
259
+ })
260
+ ]), 1040);
261
+ };
262
+ }
263
+ });
264
+ const index_vue_vue_type_style_index_0_lang$d = "";
265
+ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
266
+ __name: "index",
267
+ setup(__props, { expose: __expose }) {
268
+ const proxyElement = vue.ref();
269
+ const expose = useExpose(proxyElement);
270
+ __expose(expose);
271
+ const attrs = vue.useAttrs();
272
+ return (_ctx, _cache) => {
273
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElForm), vue.mergeProps(vue.unref(attrs), {
274
+ ref_key: "proxyElement",
275
+ ref: proxyElement
276
+ }), vue.createSlots({ _: 2 }, [
277
+ vue.renderList(_ctx.$slots, (value, key) => {
278
+ return {
279
+ name: key,
280
+ fn: vue.withCtx((slotProps) => [
281
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
282
+ ])
283
+ };
284
+ })
285
+ ]), 1040);
286
+ };
287
+ }
288
+ });
289
+ const index_vue_vue_type_style_index_0_lang$c = "";
290
+ /*! Element Plus Icons Vue v2.3.1 */
291
+ var picture_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defineComponent({
292
+ name: "Picture",
293
+ __name: "picture",
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: "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"
302
+ }),
303
+ vue.createElementVNode("path", {
304
+ fill: "currentColor",
305
+ d: "M384 288q64 0 64 64t-64 64q-64 0-64-64t64-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"
306
+ })
307
+ ]));
308
+ }
309
+ });
310
+ var picture_default = picture_vue_vue_type_script_setup_true_lang_default;
311
+ const _hoisted_1 = { class: "error-slot" };
312
+ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
313
+ __name: "index",
314
+ props: {
315
+ src: { default: "" },
316
+ request: {}
317
+ },
318
+ setup(__props, { expose: __expose }) {
319
+ const proxyElement = vue.ref();
320
+ const expose = useExpose(proxyElement);
321
+ __expose(expose);
322
+ const props = __props;
323
+ const _src = vue.ref("");
324
+ vue.watch(() => props.src, async (newVal) => {
325
+ if (!newVal) {
326
+ return;
327
+ }
328
+ if (newVal.indexOf("/") > -1) {
329
+ _src.value = newVal;
330
+ return;
331
+ } else {
332
+ if (!props.request) {
333
+ _src.value = newVal;
334
+ return;
335
+ }
336
+ props.request({ id: props.src }).then((res) => {
337
+ const blob = res.data;
338
+ try {
339
+ URL.revokeObjectURL(_src.value);
340
+ } catch (e) {
341
+ }
342
+ _src.value = URL.createObjectURL(blob);
343
+ });
344
+ }
345
+ }, {
346
+ immediate: true
347
+ });
348
+ return (_ctx, _cache) => {
349
+ const _component_el_icon = vue.resolveComponent("el-icon");
350
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElImage), {
351
+ fit: "contain",
352
+ lazy: "",
353
+ src: _src.value,
354
+ ref_key: "proxyElement",
355
+ ref: proxyElement
356
+ }, vue.createSlots({ _: 2 }, [
357
+ vue.renderList(_ctx.$slots, (value, key) => {
358
+ return {
359
+ name: key,
360
+ fn: vue.withCtx((slotProps) => [
361
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
362
+ ])
363
+ };
364
+ }),
365
+ !_ctx.$slots.error ? {
366
+ name: "error",
367
+ fn: vue.withCtx(() => [
368
+ vue.createElementVNode("div", _hoisted_1, [
369
+ vue.createVNode(_component_el_icon, null, {
370
+ default: vue.withCtx(() => [
371
+ vue.createVNode(vue.unref(picture_default))
372
+ ]),
373
+ _: 1
374
+ })
375
+ ])
376
+ ]),
377
+ key: "0"
378
+ } : void 0
379
+ ]), 1032, ["src"]);
380
+ };
381
+ }
382
+ });
383
+ const index_vue_vue_type_style_index_0_lang$b = "";
384
+ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
385
+ __name: "ElInput",
386
+ props: {
387
+ "modelValue": {
388
+ default: ""
389
+ },
390
+ "modelModifiers": {}
391
+ },
392
+ emits: /* @__PURE__ */ vue.mergeModels(["change"], ["update:modelValue"]),
393
+ setup(__props, { expose: __expose, emit: __emit }) {
394
+ const input = vue.ref();
395
+ const expose = useExpose(input);
396
+ __expose(expose);
397
+ const model = vue.useModel(__props, "modelValue");
398
+ let preChangeVal = "";
399
+ const emits = __emit;
400
+ function changeHandler(val) {
401
+ if (preChangeVal === val)
402
+ return;
403
+ preChangeVal = val;
404
+ emits("change", val);
405
+ }
406
+ function inputHandler(val) {
407
+ if (model.value !== "" && val.trim() === "") {
408
+ changeHandler("");
409
+ }
410
+ model.value = val.trim();
411
+ }
412
+ const attrs = vue.useAttrs();
413
+ useDataTestId();
414
+ return (_ctx, _cache) => {
415
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElInput), vue.mergeProps({
416
+ ref_key: "input",
417
+ ref: input,
418
+ modelValue: model.value,
419
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event)
420
+ }, vue.unref(attrs), {
421
+ onInput: inputHandler,
422
+ onChange: changeHandler
423
+ }), vue.createSlots({ _: 2 }, [
424
+ vue.renderList(_ctx.$slots, (value, key) => {
425
+ return {
426
+ name: key,
427
+ fn: vue.withCtx((slotProps) => [
428
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
429
+ ])
430
+ };
431
+ })
432
+ ]), 1040, ["modelValue"]);
433
+ };
434
+ }
435
+ });
436
+ const ElInput_vue_vue_type_style_index_0_lang = "";
437
+ const index$2 = "";
438
+ const vLoading = {
439
+ mounted(el, binding, vnode, prevVnode) {
440
+ var _a, _b;
441
+ const vueInstance = vnode.ctx.proxy;
442
+ el.setAttribute(`element-loading-text`, (vueInstance == null ? void 0 : vueInstance.$t("login.tips.loading")) + "...");
443
+ el.setAttribute(`element-loading-spinner`, " ");
444
+ el.setAttribute(`element-loading-background`, "customLoading");
445
+ (_b = (_a = elementPlus.vLoading).mounted) == null ? void 0 : _b.call(_a, el, binding, vnode, prevVnode);
446
+ },
447
+ updated(el, binding, vnode, prevVnode) {
448
+ var _a, _b;
449
+ (_b = (_a = elementPlus.vLoading).updated) == null ? void 0 : _b.call(_a, el, binding, vnode, prevVnode);
450
+ },
451
+ unmounted(el, binding, vnode, prevVnode) {
452
+ var _a, _b;
453
+ (_b = (_a = elementPlus.vLoading).unmounted) == null ? void 0 : _b.call(_a, el, binding, vnode, prevVnode);
454
+ }
455
+ };
456
+ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
457
+ __name: "index",
458
+ setup(__props, { expose: __expose }) {
459
+ const proxyElement = vue.ref();
460
+ const expose = useExpose(proxyElement);
461
+ __expose(expose);
462
+ const attrs = vue.useAttrs();
463
+ useDataTestId();
464
+ return (_ctx, _cache) => {
465
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElMenu), vue.mergeProps(vue.unref(attrs), {
466
+ ref_key: "proxyElement",
467
+ ref: proxyElement
468
+ }), vue.createSlots({ _: 2 }, [
469
+ vue.renderList(_ctx.$slots, (value, key) => {
470
+ return {
471
+ name: key,
472
+ fn: vue.withCtx((slotProps) => [
473
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
474
+ ])
475
+ };
476
+ })
477
+ ]), 1040);
478
+ };
479
+ }
480
+ });
481
+ const index_vue_vue_type_style_index_0_lang$a = "";
482
+ const index$1 = "";
483
+ const index = "";
484
+ const install = elementPlus.ElNotification.install;
485
+ const defaultOption = {
486
+ duration: 2e3
487
+ };
488
+ const ElNotification = elementPlus.ElNotification;
489
+ const notificationTypes = [
490
+ "success",
491
+ "info",
492
+ "warning",
493
+ "error"
494
+ ];
495
+ notificationTypes.forEach((type) => {
496
+ ElNotification[type] = (options) => {
497
+ if (typeof options === "string") {
498
+ return elementPlus.ElNotification[type](options);
499
+ }
500
+ if (vue.isVNode(options)) {
501
+ return elementPlus.ElNotification[type](options);
502
+ }
503
+ let data = {
504
+ ...defaultOption,
505
+ ...options,
506
+ customClass: type,
507
+ type
508
+ };
509
+ return ElNotification(data);
510
+ };
511
+ });
512
+ ElNotification.install = (app) => {
513
+ install == null ? void 0 : install(app);
514
+ app.config.globalProperties.$notify = ElNotification;
515
+ };
516
+ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
517
+ __name: "index",
518
+ setup(__props, { expose: __expose }) {
519
+ const attrs = vue.useAttrs();
520
+ useDataTestId();
521
+ const proxyElement = vue.ref();
522
+ const expose = useExpose(proxyElement);
523
+ __expose(expose);
524
+ const defaultAttrs = {
525
+ pageSizes: [20, 50, 100],
526
+ layout: "sizes,prev, pager, next,total"
527
+ };
528
+ return (_ctx, _cache) => {
529
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPagination), vue.mergeProps({ ...defaultAttrs, ...vue.unref(attrs) }, {
530
+ ref_key: "proxyElement",
531
+ ref: proxyElement
532
+ }), vue.createSlots({ _: 2 }, [
533
+ vue.renderList(_ctx.$slots, (value, key) => {
534
+ return {
535
+ name: key,
536
+ fn: vue.withCtx((slotProps) => [
537
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
538
+ ])
539
+ };
540
+ })
541
+ ]), 1040);
542
+ };
543
+ }
544
+ });
545
+ const index_vue_vue_type_style_index_0_lang$9 = "";
546
+ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
547
+ __name: "index",
548
+ setup(__props, { expose: __expose }) {
549
+ const proxyElement = vue.ref();
550
+ const expose = useExpose(proxyElement);
551
+ __expose(expose);
552
+ return (_ctx, _cache) => {
553
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPopover), {
554
+ ref_key: "proxyElement",
555
+ ref: proxyElement
556
+ }, vue.createSlots({ _: 2 }, [
557
+ vue.renderList(_ctx.$slots, (value, key) => {
558
+ return {
559
+ name: key,
560
+ fn: vue.withCtx((slotProps) => [
561
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
562
+ ])
563
+ };
564
+ })
565
+ ]), 1536);
566
+ };
567
+ }
568
+ });
569
+ const index_vue_vue_type_style_index_0_lang$8 = "";
570
+ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
571
+ __name: "index",
572
+ setup(__props, { expose: __expose }) {
573
+ const proxyElement = vue.ref();
574
+ const expose = useExpose(proxyElement);
575
+ __expose(expose);
576
+ const attrs = vue.useAttrs();
577
+ return (_ctx, _cache) => {
578
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElRadio), vue.mergeProps(vue.unref(attrs), {
579
+ ref_key: "proxyElement",
580
+ ref: proxyElement
581
+ }), vue.createSlots({ _: 2 }, [
582
+ vue.renderList(_ctx.$slots, (value, key) => {
583
+ return {
584
+ name: key,
585
+ fn: vue.withCtx((slotProps) => [
586
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
587
+ ])
588
+ };
589
+ })
590
+ ]), 1040);
591
+ };
592
+ }
593
+ });
594
+ const index_vue_vue_type_style_index_0_lang$7 = "";
595
+ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
596
+ __name: "index",
597
+ props: {
598
+ round: {
599
+ type: Boolean,
600
+ default: false
601
+ }
602
+ },
603
+ setup(__props, { expose: __expose }) {
604
+ const proxyElement = vue.ref();
605
+ const expose = useExpose(proxyElement);
606
+ __expose(expose);
607
+ const attrs = vue.useAttrs();
608
+ useDataTestId();
609
+ return (_ctx, _cache) => {
610
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElRadioGroup), vue.mergeProps(vue.unref(attrs), {
611
+ class: { round: __props.round },
612
+ ref_key: "proxyElement",
613
+ ref: proxyElement
614
+ }), vue.createSlots({ _: 2 }, [
615
+ vue.renderList(_ctx.$slots, (value, key) => {
616
+ return {
617
+ name: key,
618
+ fn: vue.withCtx((slotProps) => [
619
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
620
+ ])
621
+ };
622
+ })
623
+ ]), 1040, ["class"]);
624
+ };
625
+ }
626
+ });
627
+ const index_vue_vue_type_style_index_0_lang$6 = "";
628
+ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
629
+ __name: "index",
630
+ setup(__props, { expose: __expose }) {
631
+ const proxyElement = vue.ref();
632
+ const expose = useExpose(proxyElement);
633
+ __expose(expose);
634
+ const attrs = vue.useAttrs();
635
+ useDataTestId();
636
+ return (_ctx, _cache) => {
637
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElSelect), vue.mergeProps(vue.unref(attrs), {
638
+ ref_key: "proxyElement",
639
+ ref: proxyElement
640
+ }), vue.createSlots({ _: 2 }, [
641
+ vue.renderList(_ctx.$slots, (value, key) => {
642
+ return {
643
+ name: key,
644
+ fn: vue.withCtx((slotProps) => [
645
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
646
+ ])
647
+ };
648
+ })
649
+ ]), 1040);
650
+ };
651
+ }
652
+ });
653
+ const index_vue_vue_type_style_index_0_lang$5 = "";
654
+ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
655
+ __name: "index",
656
+ setup(__props, { expose: __expose }) {
657
+ const proxyElement = vue.ref();
658
+ const expose = useExpose(proxyElement);
659
+ __expose(expose);
660
+ const attrs = vue.useAttrs();
661
+ useDataTestId();
662
+ return (_ctx, _cache) => {
663
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElSwitch), vue.mergeProps(vue.unref(attrs), {
664
+ ref_key: "proxyElement",
665
+ ref: proxyElement
666
+ }), vue.createSlots({ _: 2 }, [
667
+ vue.renderList(_ctx.$slots, (value, key) => {
668
+ return {
669
+ name: key,
670
+ fn: vue.withCtx((slotProps) => [
671
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
672
+ ])
673
+ };
674
+ })
675
+ ]), 1040);
676
+ };
677
+ }
678
+ });
679
+ const index_vue_vue_type_style_index_0_lang$4 = "";
680
+ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
681
+ __name: "index",
682
+ props: {
683
+ formatter: {
684
+ type: Function,
685
+ default: null
686
+ }
687
+ },
688
+ setup(__props) {
689
+ const props = __props;
690
+ function formatter_wrapper(row, column, cellValue, index2) {
691
+ if (props.formatter) {
692
+ return props.formatter(row, column, cellValue, index2);
693
+ }
694
+ return cellValue || "-";
695
+ }
696
+ return (_ctx, _cache) => {
697
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTableColumn), { formatter: formatter_wrapper }, vue.createSlots({ _: 2 }, [
698
+ vue.renderList(_ctx.$slots, (value, key) => {
699
+ return {
700
+ name: key,
701
+ fn: vue.withCtx((slotProps) => [
702
+ vue.renderSlot(_ctx.$slots, key, vue.normalizeProps(vue.guardReactiveProps(slotProps)))
703
+ ])
704
+ };
705
+ })
706
+ ]), 1024);
707
+ };
708
+ }
709
+ });
710
+ function useResizeTable() {
711
+ const instance = vue.getCurrentInstance();
712
+ const height = vue.ref();
713
+ let el = null;
714
+ vue.onMounted(() => {
715
+ resizeTable();
716
+ window.addEventListener("resize", resizeTable);
717
+ });
718
+ vue.onBeforeUnmount(() => {
719
+ window.removeEventListener("resize", resizeTable);
720
+ });
721
+ function getPxNumber(value) {
722
+ if (value.endsWith("px")) {
723
+ return Number(value.slice(0, -2));
724
+ }
725
+ return 0;
726
+ }
727
+ function getElementHeight(el2) {
728
+ const stylesheet = getComputedStyle(el2);
729
+ return el2.clientHeight || getPxNumber(stylesheet.height);
730
+ }
731
+ function resizeTable() {
732
+ var _a, _b;
733
+ el = (_b = (_a = instance == null ? void 0 : instance.proxy) == null ? void 0 : _a.$el) == null ? void 0 : _b.parentElement;
734
+ if (el) {
735
+ const stylesheet = getComputedStyle(el);
736
+ height.value = getElementHeight(el) - getPxNumber(stylesheet.paddingTop) - getPxNumber(stylesheet.paddingBottom);
737
+ }
738
+ }
739
+ return height;
740
+ }
741
+ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
742
+ __name: "index",
743
+ props: {
744
+ height: {
745
+ type: Number,
746
+ default: null
747
+ }
748
+ },
749
+ setup(__props, { expose: __expose }) {
750
+ const proxyElement = vue.ref();
751
+ const expose = useExpose(proxyElement);
752
+ __expose(expose);
753
+ const tableHeight = useResizeTable();
754
+ useDataTestId();
755
+ return (_ctx, _cache) => {
756
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTable), {
757
+ height: vue.unref(tableHeight),
758
+ ref_key: "proxyElement",
759
+ ref: proxyElement
760
+ }, vue.createSlots({ _: 2 }, [
761
+ vue.renderList(_ctx.$slots, (value, key) => {
762
+ return {
763
+ name: key,
764
+ fn: vue.withCtx((slotProps) => [
765
+ vue.renderSlot(_ctx.$slots, key, vue.normalizeProps(vue.guardReactiveProps(slotProps)))
766
+ ])
767
+ };
768
+ })
769
+ ]), 1032, ["height"]);
770
+ };
771
+ }
772
+ });
773
+ const index_vue_vue_type_style_index_0_lang$3 = "";
774
+ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
775
+ __name: "index",
776
+ setup(__props, { expose: __expose }) {
777
+ const proxyElement = vue.ref();
778
+ const expose = useExpose(proxyElement);
779
+ __expose(expose);
780
+ const attrs = vue.useAttrs();
781
+ return (_ctx, _cache) => {
782
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTimePicker), vue.mergeProps(vue.unref(attrs), {
783
+ ref_key: "proxyElement",
784
+ ref: proxyElement
785
+ }), vue.createSlots({ _: 2 }, [
786
+ vue.renderList(_ctx.$slots, (value, key) => {
787
+ return {
788
+ name: key,
789
+ fn: vue.withCtx((slotProps) => [
790
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
791
+ ])
792
+ };
793
+ })
794
+ ]), 1040);
795
+ };
796
+ }
797
+ });
798
+ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
799
+ __name: "index",
800
+ setup(__props, { expose: __expose }) {
801
+ const proxyElement = vue.ref();
802
+ const expose = useExpose(proxyElement);
803
+ __expose(expose);
804
+ return (_ctx, _cache) => {
805
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTransfer), {
806
+ ref_key: "proxyElement",
807
+ ref: proxyElement
808
+ }, null, 512);
809
+ };
810
+ }
811
+ });
812
+ const index_vue_vue_type_style_index_0_lang$2 = "";
813
+ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
814
+ __name: "index",
815
+ setup(__props, { expose: __expose }) {
816
+ const tree = vue.ref();
817
+ const expose = useExpose(tree);
818
+ __expose(expose);
819
+ return (_ctx, _cache) => {
820
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTree), {
821
+ ref_key: "tree",
822
+ ref: tree
823
+ }, vue.createSlots({ _: 2 }, [
824
+ vue.renderList(_ctx.$slots, (value, key) => {
825
+ return {
826
+ name: key,
827
+ fn: vue.withCtx((slotProps) => [
828
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
829
+ ])
830
+ };
831
+ })
832
+ ]), 1536);
833
+ };
834
+ }
835
+ });
836
+ const index_vue_vue_type_style_index_0_lang$1 = "";
837
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
838
+ __name: "index",
839
+ setup(__props, { expose: __expose }) {
840
+ const proxyElement = vue.ref();
841
+ const expose = useExpose(proxyElement);
842
+ __expose(expose);
843
+ return (_ctx, _cache) => {
844
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElUpload), {
845
+ class: "upload_wrapper",
846
+ ref_key: "proxyElement",
847
+ ref: proxyElement
848
+ }, vue.createSlots({ _: 2 }, [
849
+ vue.renderList(_ctx.$slots, (value, key) => {
850
+ return {
851
+ name: key,
852
+ fn: vue.withCtx((slotProps) => [
853
+ vue.renderSlot(_ctx.$slots, key, vue.mergeProps(slotProps, { key }))
854
+ ])
855
+ };
856
+ })
857
+ ]), 1536);
858
+ };
859
+ }
860
+ });
861
+ const index_vue_vue_type_style_index_0_lang = "";
862
+ const Adapter = {
863
+ ElInput: _sfc_main$d,
864
+ ElDropdown: _sfc_main$g,
865
+ ElMenu: _sfc_main$c,
866
+ ElRadioGroup: _sfc_main$8,
867
+ ElTable: _sfc_main$4,
868
+ ElTableColumn: _sfc_main$5,
869
+ ElSelect: _sfc_main$7,
870
+ ElPagination: _sfc_main$b,
871
+ ElButton: _sfc_main$n,
872
+ ElForm: _sfc_main$f,
873
+ ElCascader: _sfc_main$m,
874
+ ElRadio: _sfc_main$9,
875
+ ElCheckbox: _sfc_main$l,
876
+ ElDatePicker: _sfc_main$j,
877
+ ElTimePicker: _sfc_main$3,
878
+ ElDialog: _sfc_main$i,
879
+ ElSwitch: _sfc_main$6,
880
+ ElDrawer: _sfc_main$h,
881
+ ElPopover: _sfc_main$a,
882
+ ElTransfer: _sfc_main$2,
883
+ ElCollapse: _sfc_main$k,
884
+ ElImage: _sfc_main$e,
885
+ ElUpload: _sfc_main,
886
+ ElTree: _sfc_main$1
887
+ };
888
+ function adapterInstall(app) {
889
+ for (const [key, component] of Object.entries(Adapter)) {
890
+ app.component(key, component);
891
+ }
892
+ adapterLoading(app);
893
+ app.use(elementPlus.ElMessageBox);
894
+ app.use(ElNotification);
895
+ }
896
+ function adapterLoading(app) {
897
+ app.directive("loading", vLoading);
898
+ }
899
+ exports.adapterInstall = adapterInstall;
900
+ exports.adapterLoading = adapterLoading;
901
+ exports.default = Adapter;
902
+ //# sourceMappingURL=ElementPlusAdapter.cjs.map