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