magtool 1.5.38 → 1.5.39
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/cpt/AiApp.js +117 -0
- package/dist/cpt/AiOrg.js +130 -0
- package/dist/cpt/AsaAdGroup.js +261 -0
- package/dist/cpt/AsaApp.js +126 -0
- package/dist/cpt/AsaCampaign.js +268 -0
- package/dist/cpt/AsaOrg.js +130 -0
- package/dist/cpt/Card.js +92 -0
- package/dist/cpt/Country.js +32 -0
- package/dist/cpt/CountryItem.js +56 -0
- package/dist/cpt/DatePicker.js +246 -0
- package/dist/cpt/EChart.js +271 -0
- package/dist/cpt/Form.js +75 -0
- package/dist/cpt/Header.js +786 -0
- package/dist/cpt/Icon.js +24 -0
- package/dist/cpt/Image.js +58 -0
- package/dist/cpt/Input.js +129 -0
- package/dist/cpt/Main.js +230 -0
- package/dist/cpt/MultipleSelect.js +143 -0
- package/dist/cpt/Nodata.js +39 -0
- package/dist/cpt/Org.js +99 -0
- package/dist/cpt/Page.js +74 -0
- package/dist/cpt/StatusItem.js +68 -0
- package/dist/cpt/StatusSelect.js +79 -0
- package/dist/cpt/Table.js +123 -0
- package/dist/cpt/Textarea.js +132 -0
- package/dist/cpt/Timezone.js +128 -0
- package/dist/cpt/chip.js +639 -0
- package/dist/cpt/component.js +21 -0
- package/dist/css/cpt/Card.css +1 -0
- package/dist/css/cpt/EChart.css +1 -0
- package/dist/css/cpt/Header.css +1 -0
- package/dist/css/cpt/Main.css +1 -0
- package/dist/css/cpt/MultipleSelect.css +1 -0
- package/dist/css/cpt/Nodata.css +1 -0
- package/dist/css/cpt/Page.css +1 -0
- package/dist/css/cpt/Table.css +1 -0
- package/dist/css/cpt/Textarea.css +1 -0
- package/dist/css/cpt/chip.css +1 -0
- package/dist/css/{magtool.css → css/scss.css} +1 -1
- package/dist/index.js +2 -2
- package/dist/util.js +5 -5
- package/dist/vendor.js +17 -14
- package/package.json +1 -1
- package/dist/component.js +0 -4427
package/dist/cpt/Icon.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineComponent as n, createElementBlock as t, openBlock as c, createElementVNode as o } from "vue";
|
|
2
|
+
const s = {
|
|
3
|
+
class: "MvcIcon",
|
|
4
|
+
"aria-hidden": "true"
|
|
5
|
+
}, a = ["xlink:href"], r = n({
|
|
6
|
+
name: "MvcIcon"
|
|
7
|
+
}), d = /* @__PURE__ */ Object.assign(r, {
|
|
8
|
+
props: {
|
|
9
|
+
name: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: "cloud"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
setup(e) {
|
|
15
|
+
return (l, i) => (c(), t("svg", s, [
|
|
16
|
+
o("use", {
|
|
17
|
+
"xlink:href": `#imc-${e.name}`
|
|
18
|
+
}, null, 8, a)
|
|
19
|
+
]));
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
d as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent as g, reactive as u, getCurrentInstance as y, onMounted as _, resolveComponent as f, createElementBlock as h, openBlock as C, createVNode as v, mergeProps as S, unref as n, withCtx as i, createElementVNode as o, toDisplayString as x } from "vue";
|
|
2
|
+
import { loadImage as I } from "../composition.js";
|
|
3
|
+
const w = { class: "SuperImage" }, $ = { class: "flexMode hc vc hp100 bg-gray1 radius4" }, b = { class: "fs10-i lh1" }, k = g({
|
|
4
|
+
name: "SuperImage"
|
|
5
|
+
}), M = /* @__PURE__ */ Object.assign(k, {
|
|
6
|
+
props: {
|
|
7
|
+
imageClass: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: ""
|
|
10
|
+
},
|
|
11
|
+
type: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: "icon"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
setup(l, { emit: r }) {
|
|
17
|
+
const c = l, a = u({
|
|
18
|
+
style: {},
|
|
19
|
+
diyClass: "hp100"
|
|
20
|
+
}), { proxy: m } = y();
|
|
21
|
+
_(() => {
|
|
22
|
+
d();
|
|
23
|
+
});
|
|
24
|
+
const p = r, d = async () => {
|
|
25
|
+
const e = await I(m.$attrs.src);
|
|
26
|
+
if (!e)
|
|
27
|
+
return;
|
|
28
|
+
const { height: t, width: s } = e;
|
|
29
|
+
t < s && (a.diyClass = ""), p("load", s, t);
|
|
30
|
+
};
|
|
31
|
+
return (e, t) => {
|
|
32
|
+
const s = f("el-image");
|
|
33
|
+
return C(), h("div", w, [
|
|
34
|
+
v(s, S({
|
|
35
|
+
"min-scale": 0.9,
|
|
36
|
+
"max-scale": 1.8,
|
|
37
|
+
"zoom-rate": 1.1
|
|
38
|
+
}, e.$attrs, {
|
|
39
|
+
class: [n(a).diyClass, c.imageClass],
|
|
40
|
+
style: n(a).style
|
|
41
|
+
}), {
|
|
42
|
+
placeholder: i(() => [...t[0] || (t[0] = [
|
|
43
|
+
o("i", { class: "imicon im-loading ani-rotate" }, null, -1)
|
|
44
|
+
])]),
|
|
45
|
+
error: i(() => [
|
|
46
|
+
o("div", $, [
|
|
47
|
+
o("span", b, x(e.$l("Fail")), 1)
|
|
48
|
+
])
|
|
49
|
+
]),
|
|
50
|
+
_: 1
|
|
51
|
+
}, 16, ["class", "style"])
|
|
52
|
+
]);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export {
|
|
57
|
+
M as default
|
|
58
|
+
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { defineComponent as b, reactive as E, getCurrentInstance as I, computed as u, watch as z, resolveComponent as D, resolveDirective as K, createElementBlock as d, openBlock as p, withDirectives as j, createBlock as O, mergeProps as P, unref as o, withKeys as f, createSlots as T, withCtx as a, renderSlot as r, normalizeClass as U, nextTick as m } from "vue";
|
|
2
|
+
const q = { class: "SuperInput" }, A = b({
|
|
3
|
+
name: "SuperInput"
|
|
4
|
+
}), G = /* @__PURE__ */ Object.assign(A, {
|
|
5
|
+
props: {
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: ""
|
|
9
|
+
},
|
|
10
|
+
placeholder: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: ""
|
|
13
|
+
},
|
|
14
|
+
icon: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ""
|
|
17
|
+
},
|
|
18
|
+
nobreak: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
21
|
+
},
|
|
22
|
+
focus: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
26
|
+
center: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !1
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
emits: ["change", "enter", "update:modelValue"],
|
|
32
|
+
setup(y, { expose: k, emit: h }) {
|
|
33
|
+
const t = y, n = E({
|
|
34
|
+
composition: !1,
|
|
35
|
+
v: ""
|
|
36
|
+
}), { proxy: i } = I(), s = h, v = () => {
|
|
37
|
+
n.composition = !0;
|
|
38
|
+
}, g = () => {
|
|
39
|
+
n.composition = !1;
|
|
40
|
+
}, x = () => {
|
|
41
|
+
n.composition || (s("update:modelValue", n.v), m(() => {
|
|
42
|
+
s("enter", n.v);
|
|
43
|
+
}));
|
|
44
|
+
}, w = () => {
|
|
45
|
+
if (t.nobreak) {
|
|
46
|
+
const e = window.event || arguments[0];
|
|
47
|
+
if (e.key === "Enter" || e.code === "Enter" || e.keyCode === 13)
|
|
48
|
+
return e.returnValue = !1, !1;
|
|
49
|
+
}
|
|
50
|
+
}, V = (e) => {
|
|
51
|
+
t.nobreak ? s("update:modelValue", e.replace(/\n/g, "")) : s("update:modelValue", e), s("change", e);
|
|
52
|
+
}, $ = (e) => {
|
|
53
|
+
m(() => {
|
|
54
|
+
i.$refs.input.focus(), e && i.$refs.input.select();
|
|
55
|
+
});
|
|
56
|
+
}, l = u(() => i.$slots), C = u(() => t.placeholder ? window.$l(t.placeholder) : " ");
|
|
57
|
+
return z(
|
|
58
|
+
() => t.modelValue,
|
|
59
|
+
(e) => {
|
|
60
|
+
e !== void 0 && e !== n.v && (n.v = e);
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
immediate: !0
|
|
64
|
+
}
|
|
65
|
+
), k({
|
|
66
|
+
focus: $
|
|
67
|
+
}), (e, c) => {
|
|
68
|
+
const _ = D("el-input"), B = K("focus");
|
|
69
|
+
return p(), d("div", q, [
|
|
70
|
+
j((p(), O(_, P({
|
|
71
|
+
ref: "input",
|
|
72
|
+
modelValue: o(n).v,
|
|
73
|
+
"onUpdate:modelValue": c[0] || (c[0] = (S) => o(n).v = S),
|
|
74
|
+
type: t.nobreak ? "textarea" : "text",
|
|
75
|
+
resize: "none",
|
|
76
|
+
clearable: "",
|
|
77
|
+
"input-style": t.center ? "text-align: center" : ""
|
|
78
|
+
}, e.$attrs, {
|
|
79
|
+
placeholder: o(C),
|
|
80
|
+
onChange: V,
|
|
81
|
+
onCompositionstart: v,
|
|
82
|
+
onCompositionend: g,
|
|
83
|
+
onKeydown: [
|
|
84
|
+
f(x, ["enter"]),
|
|
85
|
+
f(w, ["enter", "native"])
|
|
86
|
+
],
|
|
87
|
+
class: "wp100"
|
|
88
|
+
}), T({ _: 2 }, [
|
|
89
|
+
o(l).prefix || t.icon ? {
|
|
90
|
+
name: "prefix",
|
|
91
|
+
fn: a(() => [
|
|
92
|
+
o(l).prefix ? r(e.$slots, "prefix", { key: 0 }) : (p(), d("i", {
|
|
93
|
+
key: 1,
|
|
94
|
+
class: U(["imicon", `im-${t.icon}`])
|
|
95
|
+
}, null, 2))
|
|
96
|
+
]),
|
|
97
|
+
key: "0"
|
|
98
|
+
} : void 0,
|
|
99
|
+
o(l).append ? {
|
|
100
|
+
name: "append",
|
|
101
|
+
fn: a(() => [
|
|
102
|
+
r(e.$slots, "append")
|
|
103
|
+
]),
|
|
104
|
+
key: "1"
|
|
105
|
+
} : void 0,
|
|
106
|
+
o(l).prepend ? {
|
|
107
|
+
name: "prepend",
|
|
108
|
+
fn: a(() => [
|
|
109
|
+
r(e.$slots, "prepend")
|
|
110
|
+
]),
|
|
111
|
+
key: "2"
|
|
112
|
+
} : void 0,
|
|
113
|
+
o(l).suffix ? {
|
|
114
|
+
name: "suffix",
|
|
115
|
+
fn: a(() => [
|
|
116
|
+
r(e.$slots, "suffix")
|
|
117
|
+
]),
|
|
118
|
+
key: "3"
|
|
119
|
+
} : void 0
|
|
120
|
+
]), 1040, ["modelValue", "type", "input-style", "placeholder"])), [
|
|
121
|
+
[B, t.focus ? 300 : null, "time"]
|
|
122
|
+
])
|
|
123
|
+
]);
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
export {
|
|
128
|
+
G as default
|
|
129
|
+
};
|
package/dist/cpt/Main.js
ADDED
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { defineComponent as M, reactive as $, computed as v, resolveComponent as x, createElementBlock as N, openBlock as g, createElementVNode as o, createVNode as k, unref as b, withCtx as S, createBlock as O, createCommentVNode as z, Fragment as V, renderList as B, createTextVNode as E, toDisplayString as c } from "vue";
|
|
2
|
+
import { _ as I } from "../vendor.js";
|
|
3
|
+
const oe = M({
|
|
4
|
+
name: "MvcTableColumnFilter",
|
|
5
|
+
props: {
|
|
6
|
+
tableName: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: ""
|
|
9
|
+
},
|
|
10
|
+
group: {
|
|
11
|
+
type: Object,
|
|
12
|
+
default: /* @__PURE__ */ Object.create(null)
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
setup: (p, y) => {
|
|
16
|
+
var _;
|
|
17
|
+
const t = $({
|
|
18
|
+
options: [],
|
|
19
|
+
slots: []
|
|
20
|
+
}), f = p.tableName + "_Column";
|
|
21
|
+
let r = [];
|
|
22
|
+
(() => {
|
|
23
|
+
if (!y.slots.default) return;
|
|
24
|
+
const s = y.slots.default()[0].children[0].children, a = {
|
|
25
|
+
left: [],
|
|
26
|
+
center: [],
|
|
27
|
+
right: []
|
|
28
|
+
}, d = p.tableName ? JSON.parse(localStorage.getItem(f)) : {}, C = [void 0];
|
|
29
|
+
s.forEach((e) => {
|
|
30
|
+
window.$getType(e.type) === "Symbol" ? r = r.concat(e.children) : r.push(e);
|
|
31
|
+
}), r.forEach((e, n) => {
|
|
32
|
+
var h;
|
|
33
|
+
if (window.$getType(e.type), ((h = e.type) == null ? void 0 : h.name) === "ElTableColumn") {
|
|
34
|
+
let i = {
|
|
35
|
+
...e.props,
|
|
36
|
+
labelKey: e.props.label,
|
|
37
|
+
label: window.$l(e.props.label),
|
|
38
|
+
sort: n,
|
|
39
|
+
nomove: e.props.nomove || e.props.nomove === "" || e.props.label === "-" || e.props.type === "selection" || e.props.label === "Operation",
|
|
40
|
+
resizable: !0,
|
|
41
|
+
visible: e.props.visible !== !1
|
|
42
|
+
};
|
|
43
|
+
if (d != null && d.length && C.indexOf(e.props.prop) === -1) {
|
|
44
|
+
const { data: m } = d.filter1(
|
|
45
|
+
(u) => u.prop === e.props.prop
|
|
46
|
+
);
|
|
47
|
+
m && (i.sort = m.sort, i.fixed = m.fixed, i.visible = m.visible);
|
|
48
|
+
}
|
|
49
|
+
e.props.fixed ? a[e.props.fixed].push(i) : a.center.push(i), e.props = i;
|
|
50
|
+
}
|
|
51
|
+
}), t.columnInfo = a;
|
|
52
|
+
const w = [
|
|
53
|
+
...a.left,
|
|
54
|
+
...a.center.sort((e, n) => e.sort - n.sort),
|
|
55
|
+
...a.right
|
|
56
|
+
];
|
|
57
|
+
p.tableName && localStorage.setItem(f, JSON.stringify(w));
|
|
58
|
+
})();
|
|
59
|
+
let l = [];
|
|
60
|
+
if (r.forEach((s) => {
|
|
61
|
+
window.$getType(s) !== "String" && s.props.visible && l.push(s);
|
|
62
|
+
}), (_ = p.group) != null && _.label) {
|
|
63
|
+
const s = {
|
|
64
|
+
label: "Group By " + p.group.label,
|
|
65
|
+
// prop: props.group.value,
|
|
66
|
+
width: p.group.width,
|
|
67
|
+
fixed: "left",
|
|
68
|
+
visible: !0,
|
|
69
|
+
resizable: !0
|
|
70
|
+
};
|
|
71
|
+
l[0].props.type === "selection" ? l.splice(1, 0, {
|
|
72
|
+
...l[1],
|
|
73
|
+
props: s
|
|
74
|
+
}) : l.unshift({
|
|
75
|
+
...l[0],
|
|
76
|
+
props: s
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
return l = l.sort((s, a) => s.props.sort - a.props.sort), () => l;
|
|
80
|
+
}
|
|
81
|
+
}), L = { class: "MvcTableFooter" }, j = { class: "FooterArea xscroll nobar" }, A = { class: "flexMode vc g8" }, D = {
|
|
82
|
+
key: 1,
|
|
83
|
+
class: "flexMode vc g4 fs14"
|
|
84
|
+
}, P = { class: "txt-dark3" }, J = { class: "flexMode vc" }, U = { class: "txt-blue" }, G = {
|
|
85
|
+
key: 2,
|
|
86
|
+
class: "flexMode vc g4 fs14"
|
|
87
|
+
}, K = { class: "txt-dark3" }, R = { class: "flexMode vc" }, q = { class: "txt-blue" }, H = { class: "txt-dark7" }, Q = { class: "flexMode vc g4 fs14" }, W = { class: "txt-dark3" }, X = { class: "txt-dark7" }, Y = M({
|
|
88
|
+
name: "MvcTableFooter"
|
|
89
|
+
}), Z = /* @__PURE__ */ Object.assign(Y, {
|
|
90
|
+
props: {
|
|
91
|
+
pageNum: {
|
|
92
|
+
type: Number,
|
|
93
|
+
default: 1
|
|
94
|
+
},
|
|
95
|
+
pageSize: {
|
|
96
|
+
type: Number,
|
|
97
|
+
default: 50
|
|
98
|
+
},
|
|
99
|
+
pageCount: {
|
|
100
|
+
type: Number,
|
|
101
|
+
default: 0
|
|
102
|
+
},
|
|
103
|
+
pageSizes: {
|
|
104
|
+
type: Array,
|
|
105
|
+
default: () => [10, 20, 50, 100]
|
|
106
|
+
},
|
|
107
|
+
total: {
|
|
108
|
+
type: Number,
|
|
109
|
+
default: 0
|
|
110
|
+
},
|
|
111
|
+
filterTotal: {
|
|
112
|
+
type: Number,
|
|
113
|
+
default: 0
|
|
114
|
+
},
|
|
115
|
+
rows: {
|
|
116
|
+
type: Number,
|
|
117
|
+
default: 0
|
|
118
|
+
},
|
|
119
|
+
filterRows: {
|
|
120
|
+
type: Number,
|
|
121
|
+
default: 0
|
|
122
|
+
},
|
|
123
|
+
selectionLength: {
|
|
124
|
+
type: Number,
|
|
125
|
+
default: 0
|
|
126
|
+
},
|
|
127
|
+
remoteData: {
|
|
128
|
+
type: [String, Number],
|
|
129
|
+
default: ""
|
|
130
|
+
},
|
|
131
|
+
nosummary: {
|
|
132
|
+
type: Boolean,
|
|
133
|
+
default: !1
|
|
134
|
+
},
|
|
135
|
+
staticTotal: {
|
|
136
|
+
type: Boolean,
|
|
137
|
+
default: !1
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
setup(p, { emit: y }) {
|
|
141
|
+
const t = p, f = $({
|
|
142
|
+
summaryMode: 1
|
|
143
|
+
}), r = y, T = (e) => {
|
|
144
|
+
r("size-change", e);
|
|
145
|
+
}, l = (e) => {
|
|
146
|
+
r("page-change", e);
|
|
147
|
+
}, _ = (e) => {
|
|
148
|
+
r("summary-mode-change", e);
|
|
149
|
+
}, s = v(() => t.staticTotal ? !1 : t.filterTotal !== t.total), a = v(() => Number(t.pageCount) || 7), d = v(() => window.$getType(t.remoteData) === "String"), C = v(() => d.value ? "slot, ->, prev, pager, next, sizes" : "slot, ->"), w = [
|
|
150
|
+
{
|
|
151
|
+
label: window.$l("Current Page"),
|
|
152
|
+
value: 0
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
label: window.$l("All Page"),
|
|
156
|
+
value: 1
|
|
157
|
+
}
|
|
158
|
+
];
|
|
159
|
+
return (e, n) => {
|
|
160
|
+
const h = x("el-option"), i = x("el-select"), m = x("el-pagination");
|
|
161
|
+
return g(), N("div", L, [
|
|
162
|
+
o("div", j, [
|
|
163
|
+
k(m, {
|
|
164
|
+
ref: "pagination",
|
|
165
|
+
background: "",
|
|
166
|
+
layout: b(C),
|
|
167
|
+
total: t.total,
|
|
168
|
+
"current-page": t.pageNum,
|
|
169
|
+
"onUpdate:currentPage": n[1] || (n[1] = (u) => t.pageNum = u),
|
|
170
|
+
"page-size": t.pageSize,
|
|
171
|
+
"page-sizes": t.pageSizes,
|
|
172
|
+
"pager-count": b(a),
|
|
173
|
+
onSizeChange: T,
|
|
174
|
+
onCurrentChange: l,
|
|
175
|
+
class: "wp100"
|
|
176
|
+
}, {
|
|
177
|
+
default: S(() => [
|
|
178
|
+
o("div", A, [
|
|
179
|
+
t.nosummary ? z("", !0) : (g(), O(i, {
|
|
180
|
+
key: 0,
|
|
181
|
+
modelValue: b(f).summaryMode,
|
|
182
|
+
"onUpdate:modelValue": n[0] || (n[0] = (u) => b(f).summaryMode = u),
|
|
183
|
+
placeholder: " ",
|
|
184
|
+
class: "w160",
|
|
185
|
+
size: "normal",
|
|
186
|
+
onChange: _
|
|
187
|
+
}, {
|
|
188
|
+
prefix: S(() => [
|
|
189
|
+
E(c(e.$l("Sum")), 1)
|
|
190
|
+
]),
|
|
191
|
+
default: S(() => [
|
|
192
|
+
(g(), N(V, null, B(w, (u, F) => k(h, {
|
|
193
|
+
key: F,
|
|
194
|
+
label: u.label,
|
|
195
|
+
value: u.value
|
|
196
|
+
}, null, 8, ["label", "value"])), 64))
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
}, 8, ["modelValue"])),
|
|
200
|
+
t.selectionLength ? (g(), N("div", D, [
|
|
201
|
+
o("div", P, c(e.$l("Selected")), 1),
|
|
202
|
+
o("div", J, [
|
|
203
|
+
o("span", U, c(t.selectionLength), 1)
|
|
204
|
+
])
|
|
205
|
+
])) : z("", !0),
|
|
206
|
+
b(s) ? (g(), N("div", G, [
|
|
207
|
+
o("div", K, c(e.$l("Current")), 1),
|
|
208
|
+
o("div", R, [
|
|
209
|
+
o("span", q, c(e.$fa(t.filterTotal, 0)), 1),
|
|
210
|
+
n[2] || (n[2] = o("span", { class: "p0-2 txt-dark3" }, "/", -1)),
|
|
211
|
+
o("span", H, c(e.$fa(t.rows, 0)), 1)
|
|
212
|
+
])
|
|
213
|
+
])) : z("", !0),
|
|
214
|
+
o("div", Q, [
|
|
215
|
+
o("div", W, c(e.$l("Total")), 1),
|
|
216
|
+
o("div", X, c(e.$fa(t.total, 0)), 1)
|
|
217
|
+
])
|
|
218
|
+
])
|
|
219
|
+
]),
|
|
220
|
+
_: 1
|
|
221
|
+
}, 8, ["layout", "total", "current-page", "page-size", "page-sizes", "pager-count"])
|
|
222
|
+
])
|
|
223
|
+
]);
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
}), se = /* @__PURE__ */ I(Z, [["__scopeId", "data-v-58138e74"]]);
|
|
227
|
+
export {
|
|
228
|
+
oe as C,
|
|
229
|
+
se as F
|
|
230
|
+
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { defineComponent as E, reactive as O, getCurrentInstance as J, computed as v, watchPostEffect as P, resolveComponent as h, createElementBlock as u, openBlock as s, createVNode as j, createCommentVNode as b, mergeProps as D, unref as l, createSlots as F, withCtx as a, Fragment as L, renderList as T, createBlock as y, normalizeClass as $, renderSlot as c, createElementVNode as r, createTextVNode as S, toDisplayString as i } from "vue";
|
|
2
|
+
import { _ as U } from "../vendor.js";
|
|
3
|
+
const q = { class: "SuperMultipleSelect relative" }, G = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "flexMode vc hb h40 outsideIgnore"
|
|
6
|
+
}, H = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "flexMode vc hb h40 outsideIgnore"
|
|
9
|
+
}, K = { class: "flexMode vc g4 fs14 noevent" }, Q = { class: "txt-primary" }, R = { class: "txt-dark5" }, W = { class: "txt-primary" }, X = { class: "txt-dark5" }, Y = E({
|
|
10
|
+
name: "SuperMultipleSelect"
|
|
11
|
+
}), Z = /* @__PURE__ */ Object.assign(Y, {
|
|
12
|
+
props: {
|
|
13
|
+
modelValue: {
|
|
14
|
+
type: Array,
|
|
15
|
+
default: () => []
|
|
16
|
+
},
|
|
17
|
+
options: {
|
|
18
|
+
type: Array,
|
|
19
|
+
default: () => []
|
|
20
|
+
},
|
|
21
|
+
label: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "label"
|
|
24
|
+
},
|
|
25
|
+
value: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "value"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
emits: ["update:modelValue", "change"],
|
|
31
|
+
setup(C, { expose: V, emit: x }) {
|
|
32
|
+
const o = C, t = O({ v: [] }), { proxy: f } = J(), _ = x, m = () => {
|
|
33
|
+
_("update:modelValue", t.v), _("change", t.v);
|
|
34
|
+
}, M = () => {
|
|
35
|
+
t.v = o.options.map((e) => e[o.value]), m();
|
|
36
|
+
}, w = () => {
|
|
37
|
+
t.v = [], m();
|
|
38
|
+
}, A = () => {
|
|
39
|
+
f.$refs.select.blur();
|
|
40
|
+
}, N = v(() => o.options.length <= t.v.length && o.options.length !== 0), p = v(() => f.$attrs["multiple-limit"]), g = v(() => f.$attrs["collapse-tags"] !== void 0);
|
|
41
|
+
return P(() => {
|
|
42
|
+
JSON.stringify(o.modelValue) !== JSON.stringify(t.v) && (t.v = o.modelValue);
|
|
43
|
+
}), V({
|
|
44
|
+
blur: A
|
|
45
|
+
}), (e, d) => {
|
|
46
|
+
const k = h("el-button"), I = h("el-option"), z = h("el-select");
|
|
47
|
+
return s(), u("div", q, [
|
|
48
|
+
j(z, D({
|
|
49
|
+
ref: "select",
|
|
50
|
+
modelValue: l(t).v,
|
|
51
|
+
"onUpdate:modelValue": d[0] || (d[0] = (n) => l(t).v = n),
|
|
52
|
+
clearable: "",
|
|
53
|
+
placeholder: " ",
|
|
54
|
+
placement: "top"
|
|
55
|
+
}, e.$attrs, {
|
|
56
|
+
multiple: "",
|
|
57
|
+
onChange: m,
|
|
58
|
+
class: ["wp100 MultipleSelect", l(g) && "nowrap"]
|
|
59
|
+
}), F({
|
|
60
|
+
default: a(() => [
|
|
61
|
+
(s(!0), u(L, null, T(o.options, (n, B) => (s(), y(I, {
|
|
62
|
+
key: B,
|
|
63
|
+
label: e.$l(n[o.label]),
|
|
64
|
+
value: n[o.value],
|
|
65
|
+
disabled: n.disabled,
|
|
66
|
+
class: $(n.hide && "hide-i")
|
|
67
|
+
}, {
|
|
68
|
+
default: a(() => [
|
|
69
|
+
e.$slots.default ? c(e.$slots, "default", {
|
|
70
|
+
key: 0,
|
|
71
|
+
it: n
|
|
72
|
+
}, void 0, !0) : b("", !0)
|
|
73
|
+
]),
|
|
74
|
+
_: 2
|
|
75
|
+
}, 1032, ["label", "value", "disabled", "class"]))), 128))
|
|
76
|
+
]),
|
|
77
|
+
_: 2
|
|
78
|
+
}, [
|
|
79
|
+
e.$slots.prefix ? {
|
|
80
|
+
name: "prefix",
|
|
81
|
+
fn: a(() => [
|
|
82
|
+
c(e.$slots, "prefix", {}, void 0, !0)
|
|
83
|
+
]),
|
|
84
|
+
key: "0"
|
|
85
|
+
} : void 0,
|
|
86
|
+
l(p) ? void 0 : {
|
|
87
|
+
name: "header",
|
|
88
|
+
fn: a(() => [
|
|
89
|
+
e.$slots.header ? (s(), u("div", G, [
|
|
90
|
+
c(e.$slots, "header", {}, void 0, !0)
|
|
91
|
+
])) : (s(), u("div", H, [
|
|
92
|
+
l(N) ? (s(), y(k, {
|
|
93
|
+
key: 0,
|
|
94
|
+
type: "primary",
|
|
95
|
+
size: "default",
|
|
96
|
+
onClick: w
|
|
97
|
+
}, {
|
|
98
|
+
default: a(() => [
|
|
99
|
+
S(i(e.$l("Cancel All")), 1)
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
})) : (s(), y(k, {
|
|
103
|
+
key: 1,
|
|
104
|
+
size: "default",
|
|
105
|
+
onClick: M
|
|
106
|
+
}, {
|
|
107
|
+
default: a(() => [
|
|
108
|
+
S(i(e.$l("Select All")), 1)
|
|
109
|
+
]),
|
|
110
|
+
_: 1
|
|
111
|
+
})),
|
|
112
|
+
r("div", K, [
|
|
113
|
+
r("span", Q, i(l(t).v.length), 1),
|
|
114
|
+
d[1] || (d[1] = r("span", { class: "txt-dark3" }, "/", -1)),
|
|
115
|
+
r("span", R, i(l(p) || o.options.length), 1)
|
|
116
|
+
])
|
|
117
|
+
]))
|
|
118
|
+
]),
|
|
119
|
+
key: "1"
|
|
120
|
+
},
|
|
121
|
+
e.$slots.footer ? {
|
|
122
|
+
name: "footer",
|
|
123
|
+
fn: a(() => [
|
|
124
|
+
c(e.$slots, "footer", {}, void 0, !0)
|
|
125
|
+
]),
|
|
126
|
+
key: "2"
|
|
127
|
+
} : void 0
|
|
128
|
+
]), 1040, ["modelValue", "class"]),
|
|
129
|
+
l(p) ? (s(), u("div", {
|
|
130
|
+
key: 0,
|
|
131
|
+
class: $(["countArea abs flexMode vc p4 fs12", l(g) && "nowrap"])
|
|
132
|
+
}, [
|
|
133
|
+
r("span", W, i(l(t).v.length), 1),
|
|
134
|
+
d[2] || (d[2] = r("span", { class: "txt-dark3" }, "/", -1)),
|
|
135
|
+
r("span", X, i(l(p)), 1)
|
|
136
|
+
], 2)) : b("", !0)
|
|
137
|
+
]);
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
}), le = /* @__PURE__ */ U(Z, [["__scopeId", "data-v-f9e0f398"]]);
|
|
141
|
+
export {
|
|
142
|
+
le as default
|
|
143
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent as p, computed as n, resolveComponent as c, createElementBlock as d, openBlock as l, createVNode as m, unref as o } from "vue";
|
|
2
|
+
import { _ as u } from "../vendor.js";
|
|
3
|
+
const _ = { class: "SuperNodata" }, r = {
|
|
4
|
+
data: "No Data",
|
|
5
|
+
selection: "Unselected"
|
|
6
|
+
}, f = p({
|
|
7
|
+
name: "SuperNodata"
|
|
8
|
+
}), y = /* @__PURE__ */ Object.assign(f, {
|
|
9
|
+
props: {
|
|
10
|
+
size: {
|
|
11
|
+
type: [String, Number],
|
|
12
|
+
default: "48"
|
|
13
|
+
},
|
|
14
|
+
type: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "data",
|
|
17
|
+
validate: (t) => r[t]
|
|
18
|
+
},
|
|
19
|
+
txt: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: ""
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
setup(t) {
|
|
25
|
+
const e = t, a = n(() => Number(e.size)), s = n(() => e.txt ? window.$l(e.txt) : window.$l(r[e.type]));
|
|
26
|
+
return (g, x) => {
|
|
27
|
+
const i = c("el-empty");
|
|
28
|
+
return l(), d("div", _, [
|
|
29
|
+
m(i, {
|
|
30
|
+
"image-size": o(a),
|
|
31
|
+
description: o(s)
|
|
32
|
+
}, null, 8, ["image-size", "description"])
|
|
33
|
+
]);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}), z = /* @__PURE__ */ u(y, [["__scopeId", "data-v-0714983f"]]);
|
|
37
|
+
export {
|
|
38
|
+
z as default
|
|
39
|
+
};
|