mwl-components 0.1.3 → 0.1.4

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.
package/dist/index.js DELETED
@@ -1,807 +0,0 @@
1
- import { defineComponent as M, useAttrs as X, ref as Y, resolveComponent as d, createBlock as p, openBlock as r, mergeProps as P, withCtx as i, renderSlot as C, useSlots as V, normalizeClass as Z, createSlots as L, createElementVNode as I, createElementBlock as x, createCommentVNode as E, toDisplayString as $, watch as ee, nextTick as te, computed as O, unref as B, normalizeStyle as U, createTextVNode as j, createVNode as N, mergeModels as ne, useModel as oe, getCurrentInstance as K, Fragment as D, renderList as W, resolveDynamicComponent as H, h as z, inject as ae, onMounted as le, onUnmounted as re, withDirectives as G, vShow as J, normalizeProps as se, guardReactiveProps as ue } from "vue";
2
- import { configProviderContextKey as ce } from "element-plus";
3
- const ie = /* @__PURE__ */ M({
4
- name: "EasyButton",
5
- inheritAttrs: !1,
6
- __name: "index",
7
- setup(e) {
8
- const { onClick: n, ...t } = X(), s = Y(!1), c = async () => {
9
- console.log("Button clicked"), s.value = !0;
10
- try {
11
- await n?.();
12
- } catch (u) {
13
- console.error("Error in button onClick handler:", u);
14
- } finally {
15
- s.value = !1;
16
- }
17
- };
18
- return (u, g) => {
19
- const o = d("el-button");
20
- return r(), p(o, P(t, {
21
- loading: s.value,
22
- onClick: c
23
- }), {
24
- default: i(() => [
25
- C(u.$slots, "default")
26
- ]),
27
- _: 3
28
- }, 16, ["loading"]);
29
- };
30
- }
31
- }), de = { class: "card-header" }, me = {
32
- key: 0,
33
- class: "card-header__message"
34
- }, pe = /* @__PURE__ */ M({
35
- name: "ContentWarp",
36
- __name: "index",
37
- props: {
38
- title: String,
39
- message: String
40
- },
41
- setup(e) {
42
- const n = V(), t = Y("content-wrap");
43
- return (s, c) => {
44
- const u = d("ElCard");
45
- return r(), p(u, {
46
- class: Z([t.value]),
47
- shadow: "never"
48
- }, L({
49
- default: i(() => [
50
- C(s.$slots, "default", {}, void 0, !0)
51
- ]),
52
- _: 2
53
- }, [
54
- e.title ? {
55
- name: "header",
56
- fn: i(() => [
57
- I("div", de, [
58
- I("span", null, $(e.title), 1),
59
- e.message ? (r(), x("span", me, $(e.message), 1)) : E("", !0)
60
- ])
61
- ]),
62
- key: "0"
63
- } : void 0,
64
- n.footer ? {
65
- name: "footer",
66
- fn: i(() => [
67
- C(s.$slots, "footer", {}, void 0, !0)
68
- ]),
69
- key: "1"
70
- } : void 0
71
- ]), 1032, ["class"]);
72
- };
73
- }
74
- }), F = (e, n) => {
75
- const t = e.__vccOpts || e;
76
- for (const [s, c] of n)
77
- t[s] = c;
78
- return t;
79
- }, fe = /* @__PURE__ */ F(pe, [["__scopeId", "data-v-fdaaba5e"]]), ge = { class: "dialog-header" }, he = /* @__PURE__ */ M({
80
- name: "Dialog",
81
- __name: "index",
82
- props: {
83
- title: {
84
- type: String,
85
- default: ""
86
- },
87
- fullscreen: {
88
- type: Boolean,
89
- default: !1
90
- },
91
- scroll: {
92
- type: Boolean,
93
- default: !1
94
- },
95
- width: {
96
- type: String,
97
- default: "61.8%"
98
- },
99
- maxHeight: {
100
- type: [String, Number],
101
- default: ""
102
- }
103
- },
104
- setup(e) {
105
- const n = V(), t = e, s = Y(t.fullscreen), c = () => {
106
- s.value = !B(s);
107
- }, u = Y(t.maxHeight);
108
- ee(
109
- () => s.value,
110
- async (o) => {
111
- if (await te(), o) {
112
- const a = document.documentElement.offsetHeight;
113
- u.value = `${a - 55 - 40 - (n.footer ? 63 : 0)}px`;
114
- } else
115
- u.value = t.maxHeight;
116
- },
117
- {
118
- immediate: !0
119
- }
120
- );
121
- const g = O(() => {
122
- if (t.maxHeight)
123
- return {
124
- height: B(u)
125
- };
126
- });
127
- return (o, a) => {
128
- const f = d("FullScreen"), k = d("el-icon"), _ = d("ElScrollbar"), h = d("ElDialog");
129
- return r(), p(h, P({
130
- "close-on-click-modal": !1,
131
- "destroy-on-close": "",
132
- draggable: "",
133
- "lock-scroll": "",
134
- class: "custom-dialog",
135
- "append-to-body": ""
136
- }, o.$attrs, {
137
- fullscreen: s.value,
138
- width: e.width
139
- }), L({
140
- default: i(() => [
141
- e.scroll ? (r(), p(_, {
142
- key: 0,
143
- style: U(g.value)
144
- }, {
145
- default: i(() => [
146
- C(o.$slots, "default")
147
- ]),
148
- _: 3
149
- }, 8, ["style"])) : C(o.$slots, "default", { key: 1 })
150
- ]),
151
- _: 2
152
- }, [
153
- e.title ? {
154
- name: "header",
155
- fn: i(() => [
156
- I("div", ge, [
157
- C(o.$slots, "title", {}, () => [
158
- j($(e.title), 1)
159
- ]),
160
- I("div", { onClick: c }, [
161
- N(k, { class: "fullScreen" }, {
162
- default: i(() => [
163
- N(f)
164
- ]),
165
- _: 1
166
- })
167
- ])
168
- ])
169
- ]),
170
- key: "0"
171
- } : void 0,
172
- n.footer ? {
173
- name: "footer",
174
- fn: i(() => [
175
- C(o.$slots, "footer")
176
- ]),
177
- key: "1"
178
- } : void 0
179
- ]), 1040, ["fullscreen", "width"]);
180
- };
181
- }
182
- }), ye = { key: 1 }, be = (e) => {
183
- let n = e.label;
184
- if (e.label && typeof e.label == "function" && (n = e.label()), e.type.indexOf("select") > -1 || e.type.indexOf("cascader") > -1 || e.type.indexOf("date") > -1)
185
- return `请选择${n}`;
186
- if (e.type.indexOf("text") > -1 || e.type.indexOf("number") > -1)
187
- return `请输入${n}`;
188
- }, T = {
189
- valueFormat: "YYYY-MM-DD HH:mm:ss",
190
- format: "YYYY-MM-DD HH:mm:ss"
191
- }, ve = (e) => {
192
- const { options: n } = e;
193
- return {
194
- default: () => n?.map((t) => z(d("el-option"), {
195
- label: t.label,
196
- value: t.value,
197
- key: t.value
198
- }))
199
- };
200
- }, A = {
201
- clearable: !0
202
- }, ke = [
203
- {
204
- type: "slider",
205
- component: "el-slider"
206
- },
207
- {
208
- type: "text",
209
- component: "el-input",
210
- attrs: {
211
- ...A
212
- }
213
- },
214
- {
215
- type: "textarea",
216
- component: "el-input",
217
- attrs: {
218
- ...A
219
- }
220
- },
221
- {
222
- type: "number",
223
- component: "el-input-number",
224
- attrs: {
225
- controlsPosition: "right"
226
- }
227
- },
228
- {
229
- type: "switch",
230
- component: "el-switch"
231
- },
232
- {
233
- type: "checkbox",
234
- component: "el-checkbox-group",
235
- slots: (e) => {
236
- const { options: n } = e;
237
- return {
238
- default: () => n?.map((t) => z(
239
- d("el-checkbox"),
240
- {
241
- value: t.value
242
- },
243
- {
244
- default: () => t.label
245
- }
246
- ))
247
- };
248
- }
249
- },
250
- {
251
- type: "radio",
252
- component: "el-radio-group",
253
- slots: (e) => {
254
- const { options: n } = e;
255
- return {
256
- default: () => n?.map((t) => z(
257
- d("el-radio"),
258
- {
259
- value: t.value
260
- },
261
- {
262
- default: () => t.label
263
- }
264
- ))
265
- };
266
- }
267
- },
268
- {
269
- type: "select",
270
- component: "el-select",
271
- slots: ve
272
- },
273
- {
274
- type: "select-v2",
275
- component: "el-select-v2"
276
- },
277
- {
278
- type: "tree-select",
279
- component: "el-tree-select",
280
- attrs: {
281
- ...A,
282
- checkStrictly: !0,
283
- //是否严格的遵循父子不互相关联的做法,默认为 false
284
- renderAfterExpand: !0
285
- // 是否在第一次展开时即渲染子节点,默认为 false
286
- }
287
- },
288
- {
289
- type: "date,dates",
290
- component: "el-date-picker",
291
- attrs: {
292
- showConfirm: !1,
293
- valueFormat: "YYYY-MM-DD",
294
- format: "YYYY-MM-DD"
295
- }
296
- },
297
- {
298
- type: "datetime,week",
299
- component: "el-date-picker",
300
- attrs: {
301
- showConfirm: !1,
302
- ...T
303
- }
304
- },
305
- {
306
- type: "month,months",
307
- component: "el-date-picker",
308
- attrs: {
309
- showConfirm: !1,
310
- valueFormat: "YYYY-MM",
311
- format: "YYYY-MM"
312
- }
313
- },
314
- {
315
- type: "year,years",
316
- component: "el-date-picker",
317
- attrs: {
318
- showConfirm: !1,
319
- valueFormat: "YYYY",
320
- format: "YYYY"
321
- }
322
- },
323
- {
324
- type: "datetimerange,daterange,monthrange,yearrange",
325
- component: "el-date-picker",
326
- attrs: {
327
- showConfirm: !1,
328
- rangeSeparator: "至",
329
- startPlaceholder: "开始日期",
330
- endPlaceholder: "结束日期",
331
- ...T
332
- }
333
- },
334
- {
335
- type: "cascader",
336
- component: "el-cascader",
337
- attrs: {
338
- clearable: !0
339
- }
340
- },
341
- {
342
- type: "upload",
343
- component: "el-upload"
344
- },
345
- {
346
- type: "custom",
347
- component: "el-form-item"
348
- }
349
- ], _e = /* @__PURE__ */ M({
350
- name: "EasyForm",
351
- __name: "index",
352
- props: /* @__PURE__ */ ne({
353
- inline: {
354
- type: Boolean,
355
- default: !0
356
- },
357
- // // 表单数据对象
358
- // formData: {
359
- // type: Object as PropType<Record<string, any>>,
360
- // required: true,
361
- // },
362
- // 表单项配置数组
363
- formItems: {
364
- type: Array,
365
- default: () => []
366
- },
367
- // 表单标签宽度
368
- labelWidth: {
369
- type: [String, Number],
370
- default: "120px"
371
- },
372
- // 表单项宽度
373
- itemWidth: {
374
- type: [String],
375
- default: "200px"
376
- }
377
- }, {
378
- modelValue: {
379
- default: {},
380
- type: Object
381
- },
382
- modelModifiers: {}
383
- }),
384
- emits: ["update:modelValue"],
385
- setup(e) {
386
- const n = oe(e, "modelValue"), t = K(), s = (o) => {
387
- c(o, "formRef");
388
- }, c = (o, a) => {
389
- if (!o) {
390
- delete t?.exposeProxy?.[a], delete t?.exposed?.[a];
391
- return;
392
- }
393
- t.exposeProxy = {
394
- ...t?.exposed,
395
- [a]: o
396
- }, t.exposed = {
397
- ...t?.exposed,
398
- [a]: o
399
- };
400
- }, u = V(), g = (o, a, f) => {
401
- const { value: k, component: _, ...h } = a, m = ke.find(
402
- (b) => !!o && b.type.indexOf(o) > -1
403
- ), w = m?.component === "el-select" && a.props, y = a.options && !w ? m?.slots?.(a) : {};
404
- if (!m && !a.component)
405
- return new Error(`未找到type为${o}的组件且当前也未传递component`);
406
- const l = H(m?.component || _);
407
- if (l)
408
- return z(
409
- l,
410
- {
411
- ...m?.attrs,
412
- // 这里的ref还是从配置注入吧。不是每次都要用到ref
413
- // ref: (el: any) => {
414
- // setRefs(el, formItem.prop)
415
- // },
416
- ...h,
417
- //外部传入的 优先级最高
418
- placeholder: h.placeholder || be(a)
419
- },
420
- { ...y, ...f }
421
- );
422
- };
423
- return (o, a) => {
424
- const f = d("el-form-item"), k = d("el-form");
425
- return r(), p(k, P({
426
- model: n.value,
427
- "label-width": e.labelWidth,
428
- inline: e.inline,
429
- "scroll-to-error": !0
430
- }, { ...o.$attrs }, {
431
- ref: s,
432
- class: "easy-form"
433
- }), {
434
- default: i(() => [
435
- (r(!0), x(D, null, W(e.formItems, ({ id: _, type: h, rule: m, width: w, slots: y, ...l }, b) => (r(), x(D, null, [
436
- h != "custom" && !l.hidden ? (r(), p(f, {
437
- prop: l.prop,
438
- key: b,
439
- "label-width": l.labelWidth,
440
- rules: m,
441
- required: l.required
442
- }, {
443
- label: i(() => [
444
- l.label && typeof l.label == "function" ? (r(), p(H(l.label), { key: 0 })) : (r(), x("span", ye, $(l.label), 1))
445
- ]),
446
- default: i(() => [
447
- u[l.prop] ? C(o.$slots, l.prop, {
448
- key: 0,
449
- item: l
450
- }, void 0, !0) : (r(), p(H(g(h, { ...l, type: h }, y)), {
451
- key: 1,
452
- modelValue: n.value[l.prop],
453
- "onUpdate:modelValue": (v) => n.value[l.prop] = v,
454
- modelModifiers: { trim: !0 },
455
- style: U({ width: w || e.itemWidth })
456
- }, null, 8, ["modelValue", "onUpdate:modelValue", "style"]))
457
- ]),
458
- _: 2
459
- }, 1032, ["prop", "label-width", "rules", "required"])) : E("", !0),
460
- h == "custom" ? (r(), x(D, { key: 1 }, [
461
- y?.[l.prop] ? (r(), p(H(y[l.prop]), { key: 0 })) : C(o.$slots, l.prop, {
462
- key: 1,
463
- item: { width: w, rule: m, ...l }
464
- }, void 0, !0)
465
- ], 64)) : E("", !0)
466
- ], 64))), 256)),
467
- u.append ? (r(), p(f, { key: 0 }, {
468
- default: i(() => [
469
- C(o.$slots, "append", {}, void 0, !0)
470
- ]),
471
- _: 3
472
- })) : E("", !0)
473
- ]),
474
- _: 3
475
- }, 16, ["model", "label-width", "inline"]);
476
- };
477
- }
478
- }), xe = /* @__PURE__ */ F(_e, [["__scopeId", "data-v-ebcd5674"]]), Ce = /* @__PURE__ */ M({
479
- name: "EasyTable",
480
- __name: "index",
481
- props: {
482
- data: {
483
- type: Array,
484
- required: !0,
485
- default: () => []
486
- },
487
- tableColumns: {
488
- type: Array,
489
- default: () => []
490
- },
491
- buttons: {
492
- type: Array,
493
- default: () => []
494
- },
495
- buttonWidth: {
496
- type: [Number, String],
497
- default: 120
498
- },
499
- align: {
500
- type: String,
501
- default: "center"
502
- },
503
- height: {
504
- type: Number || String,
505
- default: void 0
506
- },
507
- maxHeight: {
508
- type: String || Number,
509
- default: void 0
510
- },
511
- footerHeight: {
512
- type: Number,
513
- default: 65
514
- }
515
- },
516
- setup(e) {
517
- const n = ae(ce), t = e, s = O(() => t.buttonWidth.toString().indexOf("px") > -1 ? t.buttonWidth.toString().slice(0, -2) : t.buttonWidth), c = Y(), u = Y("auto");
518
- let g = K();
519
- const o = () => {
520
- let m = "auto";
521
- if (g?.parent?.attrs?.class?.indexOf("content-wrap") > -1) {
522
- let l = t.footerHeight;
523
- n?.value?.size === "small" ? l = l - 8 : n?.value?.size === "large" && (l = l + 8);
524
- try {
525
- const b = g?.refs.tableRef, { top: v } = b?.getBoundingClientRect();
526
- m = document.documentElement.clientHeight - v - l - 20;
527
- } catch {
528
- }
529
- return m;
530
- }
531
- return m;
532
- }, a = Y(), f = () => {
533
- a.value && clearTimeout(a.value), a.value = setTimeout(() => {
534
- u.value = o(), a.value = null;
535
- }, 100);
536
- };
537
- le(() => {
538
- u.value = o(), window.addEventListener("resize", f);
539
- }), re(() => {
540
- window.removeEventListener("resize", f);
541
- });
542
- const k = d("el-table-column"), _ = V(), h = (m) => {
543
- const { slots: w = {}, children: y = [], ...l } = m;
544
- if (y && y.length > 0) {
545
- const b = y.map((v) => h(v));
546
- return z(
547
- k,
548
- {
549
- align: t.align,
550
- ...l
551
- },
552
- // default 插槽默认使用 childrenNode 不能被slots 覆盖
553
- { ...w, default: () => b }
554
- );
555
- }
556
- return z(
557
- k,
558
- {
559
- align: t.align,
560
- ...l
561
- },
562
- // 最里层的表格列 default 插槽 slots传递的优先级最高 模版直接传递的可被 slots 覆盖
563
- {
564
- default: (b) => _[m.prop] && _[m.prop](b),
565
- ...w
566
- }
567
- );
568
- };
569
- return (m, w) => {
570
- const y = d("el-button"), l = d("el-table-column"), b = d("el-table");
571
- return r(), x("div", {
572
- ref_key: "tableRef",
573
- ref: c
574
- }, [
575
- N(b, P({ style: { width: "100%" } }, m.$attrs, {
576
- data: e.data,
577
- height: e.height,
578
- maxHeight: e.maxHeight ? e.maxHeight : u.value
579
- }), {
580
- default: i(() => [
581
- (r(!0), x(D, null, W(e.tableColumns, (v, S) => (r(), p(H(h(v)), { key: S }))), 128)),
582
- e.buttons && e.buttons.length ? (r(), p(l, {
583
- key: 0,
584
- align: "center",
585
- fixed: "right",
586
- label: "操作",
587
- width: s.value
588
- }, {
589
- default: i((v) => [
590
- (r(!0), x(D, null, W(e.buttons, (S, Q) => G((r(), p(y, P({ ref_for: !0 }, { ...S }, {
591
- key: Q,
592
- type: S.type.includes("del") ? "danger" : "primary",
593
- onClick: () => {
594
- S.click?.(v.row);
595
- },
596
- disabled: S.disabled?.(v.row) || !1,
597
- link: S.link?.(v.row) || !0
598
- }), {
599
- default: i(() => [
600
- j($(S.label), 1)
601
- ]),
602
- _: 2
603
- }, 1040, ["type", "onClick", "disabled", "link"])), [
604
- [J, S.show?.(v.row) || !0]
605
- ])), 128))
606
- ]),
607
- _: 1
608
- }, 8, ["width"])) : E("", !0)
609
- ]),
610
- _: 1
611
- }, 16, ["data", "height", "maxHeight"])
612
- ], 512);
613
- };
614
- }
615
- }), we = /* @__PURE__ */ F(Ce, [["__scopeId", "data-v-1c87357b"]]), Se = {
616
- name: "",
617
- components: {},
618
- props: {
619
- icon: {
620
- type: String,
621
- default: ""
622
- }
623
- }
624
- };
625
- function Me(e, n, t, s, c, u) {
626
- return t.icon ? (r(), p(H(t.icon), {
627
- key: 0,
628
- class: "menu_icon"
629
- })) : E("", !0);
630
- }
631
- const R = /* @__PURE__ */ F(Se, [["render", Me], ["__scopeId", "data-v-261ce99a"]]), Ye = /* @__PURE__ */ M({
632
- name: "subMenu",
633
- __name: "subMenu",
634
- props: {
635
- routeData: {
636
- type: Object,
637
- default: () => ({})
638
- }
639
- },
640
- emits: ["handleMenuItemClick"],
641
- setup(e, { emit: n }) {
642
- const t = n;
643
- function s(c) {
644
- t("handleMenuItemClick", c);
645
- }
646
- return (c, u) => {
647
- const g = d("subMenu", !0), o = d("el-sub-menu"), a = d("el-menu-item");
648
- return e.routeData.children && e.routeData.children.length > 0 ? (r(), p(o, {
649
- key: 0,
650
- index: e.routeData.path
651
- }, {
652
- title: i(() => [
653
- N(R, {
654
- icon: e.routeData.meta.icon
655
- }, null, 8, ["icon"]),
656
- I("span", null, $(e.routeData.meta.title), 1)
657
- ]),
658
- default: i(() => [
659
- (r(!0), x(D, null, W(e.routeData.children, (f, k) => (r(), p(g, {
660
- onHandleMenuItemClick: s,
661
- routeData: f,
662
- key: k
663
- }, null, 8, ["routeData"]))), 128))
664
- ]),
665
- _: 1
666
- }, 8, ["index"])) : (r(), x("div", {
667
- key: 1,
668
- onClick: u[0] || (u[0] = (f) => s(e.routeData))
669
- }, [
670
- N(a, {
671
- index: e.routeData.path
672
- }, {
673
- title: i(() => [
674
- I("span", null, $(e.routeData.meta.title), 1)
675
- ]),
676
- default: i(() => [
677
- N(R, {
678
- icon: e.routeData.meta.icon
679
- }, null, 8, ["icon"])
680
- ]),
681
- _: 1
682
- }, 8, ["index"])
683
- ]));
684
- };
685
- }
686
- }), De = /* @__PURE__ */ M({
687
- name: "MenuTree",
688
- __name: "index",
689
- props: {
690
- menuList: {
691
- type: Array,
692
- default: () => []
693
- }
694
- },
695
- emits: ["handleMenuItemClick"],
696
- setup(e, { emit: n }) {
697
- const t = n, s = (c) => {
698
- t("handleMenuItemClick", c);
699
- };
700
- return (c, u) => {
701
- const g = d("el-menu");
702
- return r(), p(g, se(ue(c.$attrs)), {
703
- default: i(() => [
704
- (r(!0), x(D, null, W(e.menuList, (o) => (r(), p(Ye, {
705
- routeData: o,
706
- onHandleMenuItemClick: s
707
- }, null, 8, ["routeData"]))), 256))
708
- ]),
709
- _: 1
710
- }, 16);
711
- };
712
- }
713
- }), $e = /* @__PURE__ */ M({
714
- name: "Pagination",
715
- __name: "index",
716
- props: {
717
- // 总条目数
718
- total: {
719
- required: !0,
720
- type: Number
721
- },
722
- // 当前页数:pageNo
723
- page: {
724
- type: Number,
725
- default: 1
726
- },
727
- // 每页显示条目个数:pageSize
728
- limit: {
729
- type: Number,
730
- default: 20
731
- },
732
- // 设置最大页码按钮数。 页码按钮的数量,当总页数超过该值时会折叠
733
- // 移动端页码按钮的数量端默认值 5
734
- pagerCount: {
735
- type: Number,
736
- default: document.body.clientWidth < 992 ? 5 : 7
737
- },
738
- onPagination: { type: Function }
739
- },
740
- emits: ["update:page", "update:limit", "pagination"],
741
- setup(e, { emit: n }) {
742
- const t = e, s = n, c = O({
743
- get() {
744
- return t.page;
745
- },
746
- set(a) {
747
- s("update:page", a);
748
- }
749
- }), u = O({
750
- get() {
751
- return t.limit;
752
- },
753
- set(a) {
754
- s("update:limit", a);
755
- }
756
- }), g = (a) => {
757
- c.value * a > t.total && (c.value = 1), s("pagination", { page: c.value, limit: a });
758
- }, o = (a) => {
759
- s("pagination", { page: a, limit: u.value });
760
- };
761
- return (a, f) => {
762
- const k = d("el-pagination");
763
- return G((r(), p(k, {
764
- "current-page": c.value,
765
- "onUpdate:currentPage": f[0] || (f[0] = (_) => c.value = _),
766
- "page-size": u.value,
767
- "onUpdate:pageSize": f[1] || (f[1] = (_) => u.value = _),
768
- background: !0,
769
- "page-sizes": [10, 20, 30, 50, 100],
770
- "pager-count": e.pagerCount,
771
- total: e.total,
772
- class: "pagination",
773
- layout: "total, sizes, prev, pager, next, jumper",
774
- onSizeChange: g,
775
- onCurrentChange: o
776
- }, null, 8, ["current-page", "page-size", "pager-count", "total"])), [
777
- [J, e.total > 0]
778
- ]);
779
- };
780
- }
781
- }), He = /* @__PURE__ */ F($e, [["__scopeId", "data-v-1e34e383"]]), Ee = [
782
- ie,
783
- fe,
784
- he,
785
- xe,
786
- // EasyFormH,
787
- we,
788
- De,
789
- He
790
- ], q = [], Ne = (e, n) => {
791
- Ee.forEach((t) => {
792
- q.push(t.name), e.component(t.name, t);
793
- }), console.log("mwl-components", q);
794
- }, Pe = { install: Ne };
795
- export {
796
- fe as ContentWarp,
797
- he as Dialog,
798
- ie as EasyButton,
799
- xe as EasyForm,
800
- we as EasyTable,
801
- De as MenuTree,
802
- He as Pagination,
803
- ke as componentsMap,
804
- Pe as default,
805
- be as getPlaceholder,
806
- Ne as install
807
- };