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 +46 -46
- package/dist/mwl-components.css +1 -1
- package/package.json +1 -1
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,
|
|
2
|
-
const
|
|
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
|
-
},
|
|
5
|
+
}, se = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "mt-8px flex items-center"
|
|
8
|
-
},
|
|
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",
|
|
32
|
-
$("div",
|
|
33
|
-
$("span",
|
|
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",
|
|
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",
|
|
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",
|
|
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
|
-
},
|
|
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",
|
|
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
|
-
}),
|
|
168
|
-
...
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
|
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 =
|
|
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(
|
|
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
|
-
}),
|
|
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
|
|
553
|
-
return d.icon ? (a(), o(
|
|
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(
|
|
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
|
-
}),
|
|
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,
|
|
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(
|
|
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
|
-
}),
|
|
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
|
-
[
|
|
704
|
+
[le, t.total > 0]
|
|
705
705
|
]);
|
|
706
706
|
};
|
|
707
707
|
}
|
|
708
|
-
}),
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
], O = [],
|
|
716
|
-
|
|
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
|
-
},
|
|
719
|
+
}, Se = { install: $e };
|
|
720
720
|
export {
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
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
|
};
|
package/dist/mwl-components.css
CHANGED
|
@@ -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-
|
|
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}}
|