mwl-components 0.0.12 → 0.0.13
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 +109 -112
- package/dist/mwl-components.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as $, useSlots as
|
|
2
|
-
import { ElCard as ae, ElTooltip as le, ElIcon as ne, ElDialog as oe, ElScrollbar as re, ElForm as ue, ElFormItem as B, ElInput as R, ElRadio as de, ElCheckbox as se, ElSelect as ie, ElOption as ce, ElCascader as me, ElSwitch as fe, ElDatePicker as O, ElTableColumn as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as $, useSlots as P, ref as E, createBlock as r, openBlock as a, unref as i, normalizeClass as L, createSlots as W, withCtx as s, renderSlot as C, createElementVNode as x, createElementBlock as g, createCommentVNode as p, toDisplayString as V, createVNode as S, watch as q, nextTick as G, computed as Y, resolveComponent as H, mergeProps as D, normalizeStyle as T, createTextVNode as M, Fragment as w, renderList as k, getCurrentInstance as J, onMounted as K, onUnmounted as Q, resolveDynamicComponent as X, normalizeProps as Z, guardReactiveProps as _, withDirectives as ee, vShow as te } from "vue";
|
|
2
|
+
import { ElCard as ae, ElTooltip as le, ElIcon as ne, ElDialog as oe, ElScrollbar as re, ElForm as ue, ElFormItem as B, ElInput as R, ElRadio as de, ElCheckbox as se, ElSelect as ie, ElOption as ce, ElCascader as me, ElSwitch as fe, ElDatePicker as O, ElTableColumn as z, ElTable as he, ElButton as pe, ElSubMenu as ge, ElMenuItem as be, ElMenu as ye, ElPagination as ve } from "element-plus";
|
|
3
|
+
const Ce = { class: "flex items-center justify-between" }, ke = { class: "flex items-center" }, De = { class: "text-16px font-700" }, we = { class: "max-w-200px" }, Ve = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex justify-end"
|
|
6
|
-
},
|
|
6
|
+
}, xe = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "mt-8px flex items-center"
|
|
9
|
-
},
|
|
9
|
+
}, $e = /* @__PURE__ */ $({
|
|
10
10
|
name: "ContentWarp",
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: {
|
|
@@ -14,32 +14,32 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
14
14
|
message: String
|
|
15
15
|
},
|
|
16
16
|
setup(t) {
|
|
17
|
-
const u =
|
|
18
|
-
return (
|
|
17
|
+
const u = P(), d = E("content-wrap");
|
|
18
|
+
return (c, n) => (a(), r(i(ae), {
|
|
19
19
|
class: L([d.value, "mb-[10px]"]),
|
|
20
20
|
shadow: "never"
|
|
21
21
|
}, W({
|
|
22
22
|
default: s(() => [
|
|
23
|
-
C(
|
|
23
|
+
C(c.$slots, "default", {}, void 0, !0)
|
|
24
24
|
]),
|
|
25
25
|
_: 2
|
|
26
26
|
}, [
|
|
27
27
|
t.title ? {
|
|
28
28
|
name: "header",
|
|
29
29
|
fn: s(() => [
|
|
30
|
-
x("div",
|
|
31
|
-
x("div",
|
|
32
|
-
x("span",
|
|
33
|
-
t.message ? (a(), r(
|
|
30
|
+
x("div", Ce, [
|
|
31
|
+
x("div", ke, [
|
|
32
|
+
x("span", De, V(t.title), 1),
|
|
33
|
+
t.message ? (a(), r(i(le), {
|
|
34
34
|
key: 0,
|
|
35
35
|
effect: "dark",
|
|
36
36
|
placement: "right"
|
|
37
37
|
}, {
|
|
38
38
|
content: s(() => [
|
|
39
|
-
x("div",
|
|
39
|
+
x("div", we, V(t.message), 1)
|
|
40
40
|
]),
|
|
41
41
|
default: s(() => [
|
|
42
|
-
S(
|
|
42
|
+
S(i(ne), {
|
|
43
43
|
size: 14,
|
|
44
44
|
class: "ml-5px",
|
|
45
45
|
icon: "ep:question-filled"
|
|
@@ -48,12 +48,12 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
48
48
|
_: 1
|
|
49
49
|
})) : p("", !0)
|
|
50
50
|
]),
|
|
51
|
-
u.buttonTip ? (a(), g("div",
|
|
52
|
-
C(
|
|
51
|
+
u.buttonTip ? (a(), g("div", Ve, [
|
|
52
|
+
C(c.$slots, "buttonTip", {}, void 0, !0)
|
|
53
53
|
])) : p("", !0)
|
|
54
54
|
]),
|
|
55
|
-
u.descTip ? (a(), g("div",
|
|
56
|
-
C(
|
|
55
|
+
u.descTip ? (a(), g("div", xe, [
|
|
56
|
+
C(c.$slots, "descTip", {}, void 0, !0)
|
|
57
57
|
])) : p("", !0)
|
|
58
58
|
]),
|
|
59
59
|
key: "0"
|
|
@@ -62,10 +62,10 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
62
62
|
}
|
|
63
63
|
}), F = (t, u) => {
|
|
64
64
|
const d = t.__vccOpts || t;
|
|
65
|
-
for (const [
|
|
66
|
-
d[
|
|
65
|
+
for (const [c, n] of u)
|
|
66
|
+
d[c] = n;
|
|
67
67
|
return d;
|
|
68
|
-
},
|
|
68
|
+
}, Ee = /* @__PURE__ */ F($e, [["__scopeId", "data-v-cce44bc6"]]), Se = { class: "dialog-header" }, He = /* @__PURE__ */ $({
|
|
69
69
|
name: "Dialog",
|
|
70
70
|
__name: "index",
|
|
71
71
|
props: {
|
|
@@ -91,11 +91,11 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
setup(t) {
|
|
94
|
-
const u =
|
|
95
|
-
|
|
94
|
+
const u = P(), d = t, c = E(!1), n = () => {
|
|
95
|
+
c.value = !unref(c);
|
|
96
96
|
}, m = E(d.maxHeight);
|
|
97
97
|
q(
|
|
98
|
-
() =>
|
|
98
|
+
() => c.value,
|
|
99
99
|
async (h) => {
|
|
100
100
|
if (await G(), h) {
|
|
101
101
|
const f = document.documentElement.offsetHeight;
|
|
@@ -115,9 +115,9 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
115
115
|
});
|
|
116
116
|
return console.log(d), (h, f) => {
|
|
117
117
|
const y = H("el-button");
|
|
118
|
-
return a(), r(
|
|
118
|
+
return a(), r(i(oe), D(h.$attrs, {
|
|
119
119
|
"close-on-click-modal": !1,
|
|
120
|
-
fullscreen:
|
|
120
|
+
fullscreen: c.value,
|
|
121
121
|
width: t.width,
|
|
122
122
|
"destroy-on-close": "",
|
|
123
123
|
draggable: "",
|
|
@@ -126,7 +126,7 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
126
126
|
"append-to-body": ""
|
|
127
127
|
}), W({
|
|
128
128
|
header: s(() => [
|
|
129
|
-
x("div",
|
|
129
|
+
x("div", Se, [
|
|
130
130
|
C(h.$slots, "title", {}, () => [
|
|
131
131
|
M(V(t.title), 1)
|
|
132
132
|
]),
|
|
@@ -140,9 +140,9 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
140
140
|
])
|
|
141
141
|
]),
|
|
142
142
|
default: s(() => [
|
|
143
|
-
t.scroll ? (a(), r(
|
|
143
|
+
t.scroll ? (a(), r(i(re), {
|
|
144
144
|
key: 0,
|
|
145
|
-
style:
|
|
145
|
+
style: T(b.value)
|
|
146
146
|
}, {
|
|
147
147
|
default: s(() => [
|
|
148
148
|
C(h.$slots, "default")
|
|
@@ -162,8 +162,8 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
162
162
|
]), 1040, ["fullscreen", "width"]);
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
-
}),
|
|
166
|
-
...
|
|
165
|
+
}), Me = {}, Ue = /* @__PURE__ */ $({
|
|
166
|
+
...Me,
|
|
167
167
|
name: "EasyForm",
|
|
168
168
|
__name: "index",
|
|
169
169
|
props: {
|
|
@@ -204,7 +204,7 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
204
204
|
}
|
|
205
205
|
}), (m, b) => {
|
|
206
206
|
const h = H("el-input-number"), f = H("el-radio-group"), y = H("el-checkbox-group");
|
|
207
|
-
return a(), r(
|
|
207
|
+
return a(), r(i(ue), {
|
|
208
208
|
ref_key: "formRef",
|
|
209
209
|
ref: d,
|
|
210
210
|
model: t.formData,
|
|
@@ -214,14 +214,14 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
214
214
|
}, {
|
|
215
215
|
default: s(() => [
|
|
216
216
|
(a(!0), g(w, null, k(t.formItems, ({ type: o, ...e }) => (a(), g(w, null, [
|
|
217
|
-
o != "custom" && !e.hidden ? (a(), r(
|
|
217
|
+
o != "custom" && !e.hidden ? (a(), r(i(B), {
|
|
218
218
|
key: 0,
|
|
219
219
|
label: e.label,
|
|
220
220
|
prop: e.prop,
|
|
221
221
|
rules: e.rule
|
|
222
222
|
}, {
|
|
223
223
|
default: s(() => [
|
|
224
|
-
o == "text" || o == "" ? (a(), r(
|
|
224
|
+
o == "text" || o == "" ? (a(), r(i(R), D({
|
|
225
225
|
key: 0,
|
|
226
226
|
placeholder: "请输入" + e.label
|
|
227
227
|
}, { ref_for: !0 }, { ...e }, {
|
|
@@ -230,7 +230,7 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
230
230
|
"show-word-limit": "",
|
|
231
231
|
style: { width: e.width ? e.width : t.itemWidth }
|
|
232
232
|
}), null, 16, ["placeholder", "modelValue", "onUpdate:modelValue", "style"])) : p("", !0),
|
|
233
|
-
o == "textarea" ? (a(), r(
|
|
233
|
+
o == "textarea" ? (a(), r(i(R), D({
|
|
234
234
|
key: 1,
|
|
235
235
|
ref_for: !0
|
|
236
236
|
}, { ...e }, {
|
|
@@ -255,7 +255,7 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
255
255
|
onChange: (l) => e.change && e.change(t.formData[e.prop])
|
|
256
256
|
}, { ref_for: !0 }, { ...e }), {
|
|
257
257
|
default: s(() => [
|
|
258
|
-
(a(!0), g(w, null, k(e.options, (l, v) => (a(), r(
|
|
258
|
+
(a(!0), g(w, null, k(e.options, (l, v) => (a(), r(i(de), {
|
|
259
259
|
key: v,
|
|
260
260
|
value: l.value
|
|
261
261
|
}, {
|
|
@@ -275,7 +275,7 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
275
275
|
onChange: (l) => e.change && e.change(t.formData[e.prop])
|
|
276
276
|
}, { ref_for: !0 }, { ...e }), {
|
|
277
277
|
default: s(() => [
|
|
278
|
-
(a(!0), g(w, null, k(e.options, (l, v) => (a(), r(
|
|
278
|
+
(a(!0), g(w, null, k(e.options, (l, v) => (a(), r(i(se), {
|
|
279
279
|
key: v,
|
|
280
280
|
value: l.value
|
|
281
281
|
}, {
|
|
@@ -287,7 +287,7 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
287
287
|
]),
|
|
288
288
|
_: 2
|
|
289
289
|
}, 1040, ["modelValue", "onUpdate:modelValue", "style", "onChange"])) : p("", !0),
|
|
290
|
-
o == "select" || o == "multipleselect" ? (a(), r(
|
|
290
|
+
o == "select" || o == "multipleselect" ? (a(), r(i(ie), D({
|
|
291
291
|
key: 5,
|
|
292
292
|
modelValue: t.formData[e.prop],
|
|
293
293
|
"onUpdate:modelValue": (l) => t.formData[e.prop] = l,
|
|
@@ -296,7 +296,7 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
296
296
|
onChange: (l) => e.change && e.change(t.formData[e.prop])
|
|
297
297
|
}, { ref_for: !0 }, { ...e }), {
|
|
298
298
|
default: s(() => [
|
|
299
|
-
(a(!0), g(w, null, k(e.options, (l, v) => (a(), r(
|
|
299
|
+
(a(!0), g(w, null, k(e.options, (l, v) => (a(), r(i(ce), {
|
|
300
300
|
key: v,
|
|
301
301
|
label: e.defaultProp ? l[e.defaultProp.label] : l.label,
|
|
302
302
|
value: e.defaultProp ? l[e.defaultProp.value] : l.value
|
|
@@ -304,13 +304,13 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
304
304
|
]),
|
|
305
305
|
_: 2
|
|
306
306
|
}, 1040, ["modelValue", "onUpdate:modelValue", "style", "onChange"])) : p("", !0),
|
|
307
|
-
o == "cascader" ? (a(), r(
|
|
307
|
+
o == "cascader" ? (a(), r(i(me), {
|
|
308
308
|
key: 6,
|
|
309
309
|
modelValue: t.formData[e.prop],
|
|
310
310
|
"onUpdate:modelValue": (l) => t.formData[e.prop] = l,
|
|
311
311
|
options: e.options || [],
|
|
312
312
|
props: e.defaultProp || { label: "label", value: "value" },
|
|
313
|
-
style:
|
|
313
|
+
style: T({ width: e.width ? e.width : t.itemWidth }),
|
|
314
314
|
disabled: e.disabled,
|
|
315
315
|
clearable: e.clearable,
|
|
316
316
|
placeholder: e.placeholder,
|
|
@@ -319,15 +319,15 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
319
319
|
"disabled-date": e.disabledDate,
|
|
320
320
|
onChange: (l) => e.change && e.change(t.formData[e.prop])
|
|
321
321
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "props", "style", "disabled", "clearable", "placeholder", "popper-class", "teleported", "disabled-date", "onChange"])) : p("", !0),
|
|
322
|
-
o === "switch" ? (a(), r(
|
|
322
|
+
o === "switch" ? (a(), r(i(fe), {
|
|
323
323
|
key: 7,
|
|
324
324
|
modelValue: t.formData[e.prop],
|
|
325
325
|
"onUpdate:modelValue": (l) => t.formData[e.prop] = l,
|
|
326
326
|
disabled: e.disabled,
|
|
327
|
-
style:
|
|
327
|
+
style: T({ width: e.width ? e.width : t.itemWidth }),
|
|
328
328
|
onChange: (l) => e.change && e.change(t.formData[e.prop])
|
|
329
329
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "style", "onChange"])) : p("", !0),
|
|
330
|
-
o == "date" || o == "datetime" || o == "year" || o == "month" ? (a(), r(
|
|
330
|
+
o == "date" || o == "datetime" || o == "year" || o == "month" ? (a(), r(i(O), D({
|
|
331
331
|
key: 8,
|
|
332
332
|
style: { width: e.width ? e.width : t.itemWidth },
|
|
333
333
|
modelValue: t.formData[e.prop],
|
|
@@ -342,7 +342,7 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
342
342
|
type: o,
|
|
343
343
|
onChange: (l) => e.change && e.change(t.formData[e.prop])
|
|
344
344
|
}), null, 16, ["style", "modelValue", "onUpdate:modelValue", "format", "value-format", "disabled", "clearable", "placeholder", "disabled-date", "type", "onChange"])) : p("", !0),
|
|
345
|
-
o == "daterange" ? (a(), r(
|
|
345
|
+
o == "daterange" ? (a(), r(i(O), {
|
|
346
346
|
key: 9,
|
|
347
347
|
modelValue: t.formData[e.prop],
|
|
348
348
|
"onUpdate:modelValue": (l) => t.formData[e.prop] = l,
|
|
@@ -363,7 +363,7 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
363
363
|
item: e
|
|
364
364
|
}, void 0, !0) : p("", !0)
|
|
365
365
|
], 64))), 256)),
|
|
366
|
-
S(
|
|
366
|
+
S(i(B), null, {
|
|
367
367
|
default: s(() => [
|
|
368
368
|
C(m.$slots, "append", {}, void 0, !0)
|
|
369
369
|
]),
|
|
@@ -374,19 +374,19 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
374
374
|
}, 8, ["model", "label-width", "inline"]);
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
|
-
}),
|
|
377
|
+
}), Ie = /* @__PURE__ */ F(Ue, [["__scopeId", "data-v-b55b4189"]]), We = /* @__PURE__ */ $({
|
|
378
378
|
__name: "tableColumnItem",
|
|
379
379
|
props: {
|
|
380
380
|
tableColumn: {}
|
|
381
381
|
},
|
|
382
382
|
setup(t) {
|
|
383
|
-
const u =
|
|
383
|
+
const u = P(), d = t, c = () => {
|
|
384
384
|
const { tableColumn: n } = d;
|
|
385
385
|
return n.children?.length || delete n.children, n;
|
|
386
386
|
};
|
|
387
387
|
return (n, m) => {
|
|
388
388
|
const b = H("tableColumnItem", !0);
|
|
389
|
-
return !n.tableColumn.children || n.tableColumn.children?.length == 0 ? (a(), r(
|
|
389
|
+
return !n.tableColumn.children || n.tableColumn.children?.length == 0 ? (a(), r(i(z), D({ key: 0 }, { ...c() }, {
|
|
390
390
|
prop: n.tableColumn.prop,
|
|
391
391
|
label: n.tableColumn.label
|
|
392
392
|
}), W({ _: 2 }, [
|
|
@@ -399,7 +399,7 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
399
399
|
]),
|
|
400
400
|
key: "0"
|
|
401
401
|
} : void 0
|
|
402
|
-
]), 1040, ["prop", "label"])) : (a(), r(
|
|
402
|
+
]), 1040, ["prop", "label"])) : (a(), r(i(z), {
|
|
403
403
|
key: 1,
|
|
404
404
|
align: n.tableColumn.align,
|
|
405
405
|
label: n.tableColumn.label
|
|
@@ -423,7 +423,7 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
423
423
|
}, 8, ["align", "label"]));
|
|
424
424
|
};
|
|
425
425
|
}
|
|
426
|
-
}),
|
|
426
|
+
}), Fe = /* @__PURE__ */ $({
|
|
427
427
|
name: "EasyTable",
|
|
428
428
|
__name: "index",
|
|
429
429
|
props: {
|
|
@@ -458,7 +458,7 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
458
458
|
}
|
|
459
459
|
},
|
|
460
460
|
setup(t) {
|
|
461
|
-
const u = t, d = Y(() => (u.buttonWidth.toString().indexOf("px") > -1 ? u.buttonWidth.toString().slice(0, -2) : u.buttonWidth, u.buttonWidth)),
|
|
461
|
+
const u = t, d = Y(() => (u.buttonWidth.toString().indexOf("px") > -1 ? u.buttonWidth.toString().slice(0, -2) : u.buttonWidth, u.buttonWidth)), c = P(), n = E(), m = E("auto");
|
|
462
462
|
let b = J();
|
|
463
463
|
const h = () => {
|
|
464
464
|
let o = "auto";
|
|
@@ -484,26 +484,26 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
484
484
|
ref_key: "tableRef",
|
|
485
485
|
ref: n
|
|
486
486
|
}, [
|
|
487
|
-
S(
|
|
487
|
+
S(i(he), D({ style: { width: "100%" } }, o.$attrs, {
|
|
488
488
|
data: t.data,
|
|
489
489
|
height: t.height,
|
|
490
490
|
maxHeight: t.maxHeight ? t.maxHeight : m.value
|
|
491
491
|
}), {
|
|
492
492
|
default: s(() => [
|
|
493
|
-
(a(!0), g(w, null, k(t.tableColumns, (l, v) => (a(), r(
|
|
493
|
+
(a(!0), g(w, null, k(t.tableColumns, (l, v) => (a(), r(We, {
|
|
494
494
|
key: v,
|
|
495
495
|
"table-column": { align: t.align, ...l }
|
|
496
496
|
}, W({ _: 2 }, [
|
|
497
|
-
k(
|
|
497
|
+
k(c, (U, I) => ({
|
|
498
498
|
name: I,
|
|
499
|
-
fn: s(({ row:
|
|
500
|
-
C(o.$slots, I, { row:
|
|
501
|
-
M(V(
|
|
499
|
+
fn: s(({ row: N }) => [
|
|
500
|
+
C(o.$slots, I, { row: N }, () => [
|
|
501
|
+
M(V(N[I]), 1)
|
|
502
502
|
], !0)
|
|
503
503
|
])
|
|
504
504
|
}))
|
|
505
505
|
]), 1032, ["table-column"]))), 128)),
|
|
506
|
-
t.buttons && t.buttons.length ? (a(), r(
|
|
506
|
+
t.buttons && t.buttons.length ? (a(), r(i(z), {
|
|
507
507
|
key: 0,
|
|
508
508
|
align: "center",
|
|
509
509
|
fixed: "right",
|
|
@@ -511,7 +511,7 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
511
511
|
width: d.value
|
|
512
512
|
}, {
|
|
513
513
|
default: s((l) => [
|
|
514
|
-
(a(!0), g(w, null, k(t.buttons, (v, U) => (a(), r(
|
|
514
|
+
(a(!0), g(w, null, k(t.buttons, (v, U) => (a(), r(i(pe), {
|
|
515
515
|
key: U,
|
|
516
516
|
type: v.type.includes("del") ? "danger" : "primary",
|
|
517
517
|
onClick: () => {
|
|
@@ -532,7 +532,7 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
532
532
|
}, 16, ["data", "height", "maxHeight"])
|
|
533
533
|
], 512));
|
|
534
534
|
}
|
|
535
|
-
}),
|
|
535
|
+
}), Ye = /* @__PURE__ */ F(Fe, [["__scopeId", "data-v-283c4a1e"]]), Pe = {
|
|
536
536
|
name: "",
|
|
537
537
|
components: {},
|
|
538
538
|
props: {
|
|
@@ -542,13 +542,13 @@ const ve = { class: "flex items-center justify-between" }, Ce = { class: "flex i
|
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
};
|
|
545
|
-
function Te(t, u, d,
|
|
545
|
+
function Te(t, u, d, c, n, m) {
|
|
546
546
|
return d.icon ? (a(), r(X(d.icon), {
|
|
547
547
|
key: 0,
|
|
548
548
|
class: "menu_icon"
|
|
549
549
|
})) : p("", !0);
|
|
550
550
|
}
|
|
551
|
-
const j = /* @__PURE__ */ F(
|
|
551
|
+
const j = /* @__PURE__ */ F(Pe, [["render", Te], ["__scopeId", "data-v-261ce99a"]]), ze = /* @__PURE__ */ $({
|
|
552
552
|
name: "subMenu",
|
|
553
553
|
__name: "subMenu",
|
|
554
554
|
props: {
|
|
@@ -560,12 +560,12 @@ const j = /* @__PURE__ */ F(Ye, [["render", Te], ["__scopeId", "data-v-261ce99a"
|
|
|
560
560
|
emits: ["handleMenuItemClick"],
|
|
561
561
|
setup(t, { emit: u }) {
|
|
562
562
|
const d = u;
|
|
563
|
-
function
|
|
563
|
+
function c(n) {
|
|
564
564
|
d("handleMenuItemClick", n);
|
|
565
565
|
}
|
|
566
566
|
return (n, m) => {
|
|
567
567
|
const b = H("subMenu", !0);
|
|
568
|
-
return t.routeData.children && t.routeData.children.length > 0 ? (a(), r(
|
|
568
|
+
return t.routeData.children && t.routeData.children.length > 0 ? (a(), r(i(ge), {
|
|
569
569
|
key: 0,
|
|
570
570
|
index: t.routeData.path
|
|
571
571
|
}, {
|
|
@@ -577,7 +577,7 @@ const j = /* @__PURE__ */ F(Ye, [["render", Te], ["__scopeId", "data-v-261ce99a"
|
|
|
577
577
|
]),
|
|
578
578
|
default: s(() => [
|
|
579
579
|
(a(!0), g(w, null, k(t.routeData.children, (h, f) => (a(), r(b, {
|
|
580
|
-
onHandleMenuItemClick:
|
|
580
|
+
onHandleMenuItemClick: c,
|
|
581
581
|
routeData: h,
|
|
582
582
|
key: f
|
|
583
583
|
}, null, 8, ["routeData"]))), 128))
|
|
@@ -585,9 +585,9 @@ const j = /* @__PURE__ */ F(Ye, [["render", Te], ["__scopeId", "data-v-261ce99a"
|
|
|
585
585
|
_: 1
|
|
586
586
|
}, 8, ["index"])) : (a(), g("div", {
|
|
587
587
|
key: 1,
|
|
588
|
-
onClick: m[0] || (m[0] = (h) =>
|
|
588
|
+
onClick: m[0] || (m[0] = (h) => c(t.routeData))
|
|
589
589
|
}, [
|
|
590
|
-
S(
|
|
590
|
+
S(i(be), {
|
|
591
591
|
index: t.routeData.path
|
|
592
592
|
}, {
|
|
593
593
|
title: s(() => [
|
|
@@ -614,20 +614,20 @@ const j = /* @__PURE__ */ F(Ye, [["render", Te], ["__scopeId", "data-v-261ce99a"
|
|
|
614
614
|
},
|
|
615
615
|
emits: ["handleMenuItemClick"],
|
|
616
616
|
setup(t, { emit: u }) {
|
|
617
|
-
const d = u,
|
|
617
|
+
const d = u, c = (n) => {
|
|
618
618
|
d("handleMenuItemClick", n);
|
|
619
619
|
};
|
|
620
|
-
return (n, m) => (a(), r(
|
|
620
|
+
return (n, m) => (a(), r(i(ye), Z(_(n.$attrs)), {
|
|
621
621
|
default: s(() => [
|
|
622
622
|
(a(!0), g(w, null, k(t.menuList, (b) => (a(), r(ze, {
|
|
623
623
|
routeData: b,
|
|
624
|
-
onHandleMenuItemClick:
|
|
624
|
+
onHandleMenuItemClick: c
|
|
625
625
|
}, null, 8, ["routeData"]))), 256))
|
|
626
626
|
]),
|
|
627
627
|
_: 1
|
|
628
628
|
}, 16));
|
|
629
629
|
}
|
|
630
|
-
}),
|
|
630
|
+
}), Be = /* @__PURE__ */ $({
|
|
631
631
|
name: "Pagination",
|
|
632
632
|
__name: "index",
|
|
633
633
|
props: {
|
|
@@ -656,64 +656,61 @@ const j = /* @__PURE__ */ F(Ye, [["render", Te], ["__scopeId", "data-v-261ce99a"
|
|
|
656
656
|
},
|
|
657
657
|
emits: ["update:page", "update:limit", "pagination"],
|
|
658
658
|
setup(t, { emit: u }) {
|
|
659
|
-
const d = t,
|
|
659
|
+
const d = t, c = u, n = Y({
|
|
660
660
|
get() {
|
|
661
661
|
return d.page;
|
|
662
662
|
},
|
|
663
663
|
set(f) {
|
|
664
|
-
|
|
664
|
+
c("update:page", f);
|
|
665
665
|
}
|
|
666
666
|
}), m = Y({
|
|
667
667
|
get() {
|
|
668
668
|
return d.limit;
|
|
669
669
|
},
|
|
670
670
|
set(f) {
|
|
671
|
-
|
|
671
|
+
c("update:limit", f);
|
|
672
672
|
}
|
|
673
673
|
}), b = (f) => {
|
|
674
|
-
n.value * f > d.total && (n.value = 1),
|
|
674
|
+
n.value * f > d.total && (n.value = 1), c("pagination", { page: n.value, limit: f });
|
|
675
675
|
}, h = (f) => {
|
|
676
|
-
|
|
677
|
-
};
|
|
678
|
-
return (f, y) => {
|
|
679
|
-
const o = H("el-pagination");
|
|
680
|
-
return ee((a(), r(o, {
|
|
681
|
-
"current-page": n.value,
|
|
682
|
-
"onUpdate:currentPage": y[0] || (y[0] = (e) => n.value = e),
|
|
683
|
-
"page-size": m.value,
|
|
684
|
-
"onUpdate:pageSize": y[1] || (y[1] = (e) => m.value = e),
|
|
685
|
-
background: !0,
|
|
686
|
-
"page-sizes": [10, 20, 30, 50, 100],
|
|
687
|
-
"pager-count": t.pagerCount,
|
|
688
|
-
total: t.total,
|
|
689
|
-
class: "pagination",
|
|
690
|
-
layout: "total, sizes, prev, pager, next, jumper",
|
|
691
|
-
onSizeChange: b,
|
|
692
|
-
onCurrentChange: h
|
|
693
|
-
}, null, 8, ["current-page", "page-size", "pager-count", "total"])), [
|
|
694
|
-
[te, t.total > 0]
|
|
695
|
-
]);
|
|
676
|
+
c("pagination", { page: f, limit: m.value });
|
|
696
677
|
};
|
|
678
|
+
return (f, y) => ee((a(), r(i(ve), {
|
|
679
|
+
"current-page": n.value,
|
|
680
|
+
"onUpdate:currentPage": y[0] || (y[0] = (o) => n.value = o),
|
|
681
|
+
"page-size": m.value,
|
|
682
|
+
"onUpdate:pageSize": y[1] || (y[1] = (o) => m.value = o),
|
|
683
|
+
background: !0,
|
|
684
|
+
"page-sizes": [10, 20, 30, 50, 100],
|
|
685
|
+
"pager-count": t.pagerCount,
|
|
686
|
+
total: t.total,
|
|
687
|
+
class: "pagination",
|
|
688
|
+
layout: "total, sizes, prev, pager, next, jumper",
|
|
689
|
+
onSizeChange: b,
|
|
690
|
+
onCurrentChange: h
|
|
691
|
+
}, null, 8, ["current-page", "page-size", "pager-count", "total"])), [
|
|
692
|
+
[te, t.total > 0]
|
|
693
|
+
]);
|
|
697
694
|
}
|
|
698
|
-
}),
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
695
|
+
}), Re = /* @__PURE__ */ F(Be, [["__scopeId", "data-v-e3fa4ed7"]]), Oe = [
|
|
696
|
+
Ee,
|
|
697
|
+
He,
|
|
698
|
+
Ie,
|
|
699
|
+
Ye,
|
|
703
700
|
Ne,
|
|
704
|
-
|
|
705
|
-
], A = [],
|
|
706
|
-
|
|
701
|
+
Re
|
|
702
|
+
], A = [], je = (t) => {
|
|
703
|
+
Oe.forEach((u) => {
|
|
707
704
|
A.push(u.name), t.component(u.name, u);
|
|
708
705
|
}), console.log("mwl-components", A);
|
|
709
|
-
},
|
|
706
|
+
}, qe = { install: je };
|
|
710
707
|
export {
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
708
|
+
Ee as ContentWarp,
|
|
709
|
+
He as Dialog,
|
|
710
|
+
Ie as EasyForm,
|
|
711
|
+
Ye as EasyTable,
|
|
715
712
|
Ne as MenuTree,
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
713
|
+
Re as Pagination,
|
|
714
|
+
qe as default,
|
|
715
|
+
je as install
|
|
719
716
|
};
|
package/dist/mwl-components.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.el-card[data-v-cce44bc6]{background-color:transparent;margin-bottom:10px}[data-v-cce44bc6] .el-card__body:has(>.el-form){padding:18px 20px 0}[data-v-cce44bc6] .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-b55b4189] .el-form-item__label{font-size:var(--el-font-size-base)}[data-v-283c4a1e] .el-table,[data-v-283c4a1e] th.el-table__cell,[data-v-283c4a1e] 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-
|
|
1
|
+
.el-card[data-v-cce44bc6]{background-color:transparent;margin-bottom:10px}[data-v-cce44bc6] .el-card__body:has(>.el-form){padding:18px 20px 0}[data-v-cce44bc6] .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-b55b4189] .el-form-item__label{font-size:var(--el-font-size-base)}[data-v-283c4a1e] .el-table,[data-v-283c4a1e] th.el-table__cell,[data-v-283c4a1e] 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-e3fa4ed7]{margin-top:15px;margin-bottom:15px;float:right}@media screen and (max-width: 1370px){.pagination[data-v-e3fa4ed7]{margin-top:8px;margin-bottom:8px}}
|