mwl-components 0.0.9 → 0.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.
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
- import { defineComponent as H, useSlots as j, ref as M, resolveComponent as r, createBlock as o, openBlock as a, normalizeClass as G, createSlots as N, withCtx as s, renderSlot as k, createElementVNode as $, createElementBlock as v, createCommentVNode as f, toDisplayString as x, createVNode as U, watch as J, nextTick as K, computed as R, mergeProps as _, normalizeStyle as A, createTextVNode as W, Fragment as V, renderList as D, getCurrentInstance as Q, resolveDirective as X, withDirectives as q, resolveDynamicComponent as Z, normalizeProps as ee, guardReactiveProps as te, vShow as ae } from "vue";
2
- const le = { class: "flex items-center justify-between" }, ne = { class: "flex items-center" }, oe = { class: "text-16px font-700" }, re = { class: "max-w-200px" }, ue = {
1
+ import { defineComponent as H, useSlots as j, ref as M, resolveComponent as r, createBlock as o, openBlock as a, normalizeClass as G, createSlots as N, withCtx as s, renderSlot as k, createElementVNode as $, createElementBlock as v, createCommentVNode as f, toDisplayString as x, createVNode as U, watch as J, nextTick as K, computed as R, mergeProps as _, normalizeStyle as A, createTextVNode as W, Fragment as V, renderList as D, getCurrentInstance as Q, onMounted as X, resolveDirective as Z, withDirectives as q, resolveDynamicComponent as ee, normalizeProps as te, guardReactiveProps as ae, vShow as le } from "vue";
2
+ const ne = { class: "flex items-center justify-between" }, oe = { class: "flex items-center" }, re = { class: "text-16px font-700" }, ue = { class: "max-w-200px" }, de = {
3
3
  key: 0,
4
4
  class: "flex justify-end"
5
- }, de = {
5
+ }, se = {
6
6
  key: 0,
7
7
  class: "mt-8px flex items-center"
8
- }, se = /* @__PURE__ */ H({
8
+ }, ce = /* @__PURE__ */ H({
9
9
  name: "ContentWarp",
10
10
  __name: "index",
11
11
  props: {
@@ -28,16 +28,16 @@ const le = { class: "flex items-center justify-between" }, ne = { class: "flex i
28
28
  t.title ? {
29
29
  name: "header",
30
30
  fn: s(() => [
31
- $("div", le, [
32
- $("div", ne, [
33
- $("span", oe, x(t.title), 1),
31
+ $("div", ne, [
32
+ $("div", oe, [
33
+ $("span", re, x(t.title), 1),
34
34
  t.message ? (a(), o(g, {
35
35
  key: 0,
36
36
  effect: "dark",
37
37
  placement: "right"
38
38
  }, {
39
39
  content: s(() => [
40
- $("div", re, x(t.message), 1)
40
+ $("div", ue, x(t.message), 1)
41
41
  ]),
42
42
  default: s(() => [
43
43
  U(m, {
@@ -49,11 +49,11 @@ const le = { class: "flex items-center justify-between" }, ne = { class: "flex i
49
49
  _: 1
50
50
  })) : f("", !0)
51
51
  ]),
52
- u.buttonTip ? (a(), v("div", ue, [
52
+ u.buttonTip ? (a(), v("div", de, [
53
53
  k(c.$slots, "buttonTip", {}, void 0, !0)
54
54
  ])) : f("", !0)
55
55
  ]),
56
- u.descTip ? (a(), v("div", de, [
56
+ u.descTip ? (a(), v("div", se, [
57
57
  k(c.$slots, "descTip", {}, void 0, !0)
58
58
  ])) : f("", !0)
59
59
  ]),
@@ -67,7 +67,7 @@ const le = { class: "flex items-center justify-between" }, ne = { class: "flex i
67
67
  for (const [c, l] of u)
68
68
  d[c] = l;
69
69
  return d;
70
- }, ce = /* @__PURE__ */ T(se, [["__scopeId", "data-v-15c93817"]]), ie = { class: "dialog-header" }, me = /* @__PURE__ */ H({
70
+ }, ie = /* @__PURE__ */ T(ce, [["__scopeId", "data-v-15c93817"]]), me = { class: "dialog-header" }, pe = /* @__PURE__ */ H({
71
71
  name: "Dialog",
72
72
  __name: "index",
73
73
  props: {
@@ -128,7 +128,7 @@ const le = { class: "flex items-center justify-between" }, ne = { class: "flex i
128
128
  "append-to-body": ""
129
129
  }), N({
130
130
  header: s(() => [
131
- $("div", ie, [
131
+ $("div", me, [
132
132
  k(p.$slots, "title", {}, () => [
133
133
  W(x(t.title), 1)
134
134
  ]),
@@ -164,8 +164,8 @@ const le = { class: "flex items-center justify-between" }, ne = { class: "flex i
164
164
  ]), 1040, ["fullscreen", "width"]);
165
165
  };
166
166
  }
167
- }), pe = {}, he = /* @__PURE__ */ H({
168
- ...pe,
167
+ }), he = {}, fe = /* @__PURE__ */ H({
168
+ ...he,
169
169
  name: "EasyForm",
170
170
  __name: "index",
171
171
  props: {
@@ -376,7 +376,7 @@ const le = { class: "flex items-center justify-between" }, ne = { class: "flex i
376
376
  }, 8, ["model", "label-width", "inline"]);
377
377
  };
378
378
  }
379
- }), fe = /* @__PURE__ */ T(he, [["__scopeId", "data-v-9fb8ae2f"]]), ge = /* @__PURE__ */ H({
379
+ }), ge = /* @__PURE__ */ T(fe, [["__scopeId", "data-v-9fb8ae2f"]]), be = /* @__PURE__ */ H({
380
380
  __name: "tableColumnItem",
381
381
  props: {
382
382
  tableColumn: {}
@@ -425,7 +425,7 @@ const le = { class: "flex items-center justify-between" }, ne = { class: "flex i
425
425
  }, 8, ["align", "label"]));
426
426
  };
427
427
  }
428
- }), be = /* @__PURE__ */ H({
428
+ }), ye = /* @__PURE__ */ H({
429
429
  name: "EasyTable",
430
430
  __name: "index",
431
431
  props: {
@@ -478,12 +478,12 @@ const le = { class: "flex items-center justify-between" }, ne = { class: "flex i
478
478
  m.value = p(), i.value = null;
479
479
  }, 100);
480
480
  };
481
- return onMounted(() => {
481
+ return X(() => {
482
482
  m.value = p(), window.addEventListener("resize", b);
483
483
  }), onUnmounted(() => {
484
484
  window.removeEventListener("resize", b);
485
485
  }), (y, C) => {
486
- const S = r("el-button"), B = r("el-table-column"), E = r("el-table"), I = X("hasPermi");
486
+ const S = r("el-button"), B = r("el-table-column"), E = r("el-table"), I = Z("hasPermi");
487
487
  return a(), v("div", {
488
488
  ref_key: "tableRef",
489
489
  ref: l
@@ -494,7 +494,7 @@ const le = { class: "flex items-center justify-between" }, ne = { class: "flex i
494
494
  maxHeight: t.maxHeight ? t.maxHeight : m.value
495
495
  }), {
496
496
  default: s(() => [
497
- (a(!0), v(V, null, D(t.tableColumns, (Y, w) => (a(), o(ge, {
497
+ (a(!0), v(V, null, D(t.tableColumns, (Y, w) => (a(), o(be, {
498
498
  key: w,
499
499
  "table-column": { align: t.align, ...Y }
500
500
  }, N({ _: 2 }, [
@@ -539,7 +539,7 @@ const le = { class: "flex items-center justify-between" }, ne = { class: "flex i
539
539
  ], 512);
540
540
  };
541
541
  }
542
- }), ye = /* @__PURE__ */ T(be, [["__scopeId", "data-v-217a24bd"]]), ve = {
542
+ }), ve = /* @__PURE__ */ T(ye, [["__scopeId", "data-v-0851e0d5"]]), Ce = {
543
543
  name: "",
544
544
  components: {},
545
545
  props: {
@@ -549,13 +549,13 @@ const le = { class: "flex items-center justify-between" }, ne = { class: "flex i
549
549
  }
550
550
  }
551
551
  };
552
- function Ce(t, u, d, c, l, m) {
553
- return d.icon ? (a(), o(Z(d.icon), {
552
+ function ke(t, u, d, c, l, m) {
553
+ return d.icon ? (a(), o(ee(d.icon), {
554
554
  key: 0,
555
555
  class: "menu_icon"
556
556
  })) : f("", !0);
557
557
  }
558
- const L = /* @__PURE__ */ T(ve, [["render", Ce], ["__scopeId", "data-v-261ce99a"]]), ke = /* @__PURE__ */ H({
558
+ const L = /* @__PURE__ */ T(Ce, [["render", ke], ["__scopeId", "data-v-261ce99a"]]), De = /* @__PURE__ */ H({
559
559
  name: "subMenu",
560
560
  __name: "subMenu",
561
561
  props: {
@@ -610,7 +610,7 @@ const L = /* @__PURE__ */ T(ve, [["render", Ce], ["__scopeId", "data-v-261ce99a"
610
610
  ]));
611
611
  };
612
612
  }
613
- }), De = /* @__PURE__ */ H({
613
+ }), we = /* @__PURE__ */ H({
614
614
  name: "MenuTree",
615
615
  __name: "index",
616
616
  props: {
@@ -626,9 +626,9 @@ const L = /* @__PURE__ */ T(ve, [["render", Ce], ["__scopeId", "data-v-261ce99a"
626
626
  };
627
627
  return (l, m) => {
628
628
  const g = r("el-menu");
629
- return a(), o(g, ee(te(l.$attrs)), {
629
+ return a(), o(g, te(ae(l.$attrs)), {
630
630
  default: s(() => [
631
- (a(!0), v(V, null, D(t.menuList, (p) => (a(), o(ke, {
631
+ (a(!0), v(V, null, D(t.menuList, (p) => (a(), o(De, {
632
632
  routeData: p,
633
633
  onHandleMenuItemClick: c
634
634
  }, null, 8, ["routeData"]))), 256))
@@ -637,7 +637,7 @@ const L = /* @__PURE__ */ T(ve, [["render", Ce], ["__scopeId", "data-v-261ce99a"
637
637
  }, 16);
638
638
  };
639
639
  }
640
- }), we = /* @__PURE__ */ H({
640
+ }), _e = /* @__PURE__ */ H({
641
641
  name: "Pagination",
642
642
  __name: "index",
643
643
  props: {
@@ -701,29 +701,29 @@ const L = /* @__PURE__ */ T(ve, [["render", Ce], ["__scopeId", "data-v-261ce99a"
701
701
  onSizeChange: g,
702
702
  onCurrentChange: p
703
703
  }, null, 8, ["current-page", "page-size", "pager-count", "total"])), [
704
- [ae, t.total > 0]
704
+ [le, t.total > 0]
705
705
  ]);
706
706
  };
707
707
  }
708
- }), _e = /* @__PURE__ */ T(we, [["__scopeId", "data-v-1e34e383"]]), Ve = [
709
- ce,
710
- me,
711
- fe,
712
- ye,
713
- De,
714
- _e
715
- ], O = [], xe = (t) => {
716
- Ve.forEach((u) => {
708
+ }), Ve = /* @__PURE__ */ T(_e, [["__scopeId", "data-v-1e34e383"]]), xe = [
709
+ ie,
710
+ pe,
711
+ ge,
712
+ ve,
713
+ we,
714
+ Ve
715
+ ], O = [], $e = (t) => {
716
+ xe.forEach((u) => {
717
717
  O.push(u.name), t.component(u.name, u);
718
718
  }), console.log("mwl-components", O);
719
- }, He = { install: xe };
719
+ }, Se = { install: $e };
720
720
  export {
721
- ce as ContentWarp,
722
- me as Dialog,
723
- fe as EasyForm,
724
- ye as EasyTable,
725
- De as MenuTree,
726
- _e as Pagination,
727
- He as default,
728
- xe as install
721
+ ie as ContentWarp,
722
+ pe as Dialog,
723
+ ge as EasyForm,
724
+ ve as EasyTable,
725
+ we as MenuTree,
726
+ Ve as Pagination,
727
+ Se as default,
728
+ $e as install
729
729
  };
@@ -1 +1 @@
1
- .el-card[data-v-15c93817]{background-color:transparent;margin-bottom:10px}[data-v-15c93817] .el-card__body:has(>.el-form){padding:18px 20px 0}[data-v-15c93817] .el-card__body{padding:20px}.custom-dialog{padding:0}.custom-dialog .el-dialog__header{--el-dialog-padding-primary: 20px;margin-right:0!important;border-bottom:1px solid #eee;padding:var(--el-dialog-padding-primary);padding-bottom:10px}.dialog-header{display:flex;align-items:center;justify-content:space-between;margin-right:30px}.dialog-header .fullScreen{cursor:pointer;z-index:99}.el-dialog__headerbtn{top:8px}.el-dialog__body{padding:20px 30px;color:#606266;font-size:14px}.el-dialog__footer{padding:10px 20px 20px;border-top:1px solid #eee}[data-v-9fb8ae2f] .el-form-item__label{font-size:var(--el-font-size-base)}[data-v-217a24bd] .el-table,[data-v-217a24bd] th.el-table__cell,[data-v-217a24bd] tr{background-color:transparent!important}.menu_icon[data-v-261ce99a]{width:22px;height:22px;margin-right:5px;fill:currentColor;display:inline-block;font-size:16px}.pagination[data-v-1e34e383]{margin-top:15px;margin-bottom:15px;float:right}@media screen and (max-width: 1370px){.pagination[data-v-1e34e383]{margin-top:8px;margin-bottom:8px}}
1
+ .el-card[data-v-15c93817]{background-color:transparent;margin-bottom:10px}[data-v-15c93817] .el-card__body:has(>.el-form){padding:18px 20px 0}[data-v-15c93817] .el-card__body{padding:20px}.custom-dialog{padding:0}.custom-dialog .el-dialog__header{--el-dialog-padding-primary: 20px;margin-right:0!important;border-bottom:1px solid #eee;padding:var(--el-dialog-padding-primary);padding-bottom:10px}.dialog-header{display:flex;align-items:center;justify-content:space-between;margin-right:30px}.dialog-header .fullScreen{cursor:pointer;z-index:99}.el-dialog__headerbtn{top:8px}.el-dialog__body{padding:20px 30px;color:#606266;font-size:14px}.el-dialog__footer{padding:10px 20px 20px;border-top:1px solid #eee}[data-v-9fb8ae2f] .el-form-item__label{font-size:var(--el-font-size-base)}[data-v-0851e0d5] .el-table,[data-v-0851e0d5] th.el-table__cell,[data-v-0851e0d5] tr{background-color:transparent!important}.menu_icon[data-v-261ce99a]{width:22px;height:22px;margin-right:5px;fill:currentColor;display:inline-block;font-size:16px}.pagination[data-v-1e34e383]{margin-top:15px;margin-bottom:15px;float:right}@media screen and (max-width: 1370px){.pagination[data-v-1e34e383]{margin-top:8px;margin-bottom:8px}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mwl-components",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "module": "dist/index.js",