dmx-admin-ui 1.2.108
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/chart-pMtPOqau.js +384 -0
- package/dist/dmx-admin-ui-dev.css +1 -0
- package/dist/group-DvVjK71m.js +133 -0
- package/dist/group-table-DqWxXK71.js +139 -0
- package/dist/group-tabs-DwdpscKQ.js +114 -0
- package/dist/index-CuoBjxHd.js +18858 -0
- package/dist/index.js +7 -0
- package/dist/index.umd.cjs +43 -0
- package/dist/js/Sortable.min.js +2 -0
- package/dist/js/axios.min.js +1 -0
- package/dist/js/cos-js-sdk-v5.min.js +1 -0
- package/dist/js/design.js +4 -0
- package/dist/js/echarts.min.js +45 -0
- package/dist/js/echarts.min.lite.js +1 -0
- package/dist/js/regions.min.js +1 -0
- package/dist/wavy-lines.svg +25 -0
- package/package.json +22 -0
- package/types/admin.d.ts +68 -0
- package/types/global.d.ts +38 -0
- package/types/index.d.ts +48 -0
- package/types/vite.d.ts +0 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
// @unocss-include
|
|
2
|
+
import { defineAsyncComponent as w, resolveComponent as f, createElementBlock as o, openBlock as n, createElementVNode as l, createCommentVNode as g, createBlock as c, Fragment as a, renderList as m, normalizeStyle as C, createTextVNode as _, toDisplayString as p, withCtx as y, resolveDynamicComponent as j, mergeProps as z, normalizeClass as v } from "vue";
|
|
3
|
+
import { _ as O } from "./index-CuoBjxHd.js";
|
|
4
|
+
const T = {
|
|
5
|
+
name: "form-group",
|
|
6
|
+
components: {
|
|
7
|
+
inputItem: w(() => import("./index-CuoBjxHd.js").then((r) => r.c))
|
|
8
|
+
},
|
|
9
|
+
emits: ["change", "update:modelValue"],
|
|
10
|
+
props: {
|
|
11
|
+
size: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
init: Object,
|
|
16
|
+
modelValue: Array | Object
|
|
17
|
+
},
|
|
18
|
+
data() {
|
|
19
|
+
return {
|
|
20
|
+
dataType: "Array",
|
|
21
|
+
limit: 1,
|
|
22
|
+
key: 1,
|
|
23
|
+
list: [],
|
|
24
|
+
cols: []
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
created() {
|
|
28
|
+
this.cols = this.init.cols;
|
|
29
|
+
const r = this.cols.filter((e) => !e.width).length;
|
|
30
|
+
console.log(r);
|
|
31
|
+
const t = `calc(${(100 / r).toFixed(1) + "%"} - ${(80 / r).toFixed(1) + "px"})`;
|
|
32
|
+
console.log(t), this.init.size && this.cols.forEach((e) => {
|
|
33
|
+
e.size = this.init.size, e.width || (e.width = t);
|
|
34
|
+
}), this.init.limit > 1 && (this.limit = this.init.limit), this.modelValue && this.modelValue.constructor.name === "Object" ? (this.dataType = "Object", this.list = [this.modelValue]) : this.modelValue && this.modelValue.constructor.name === "Array" ? this.list = this.modelValue : this.limit === 1 && (this.dataType = "Object"), this.$watch(
|
|
35
|
+
"list",
|
|
36
|
+
function(e, b) {
|
|
37
|
+
this.dataType === "Object" && (e = e[0]), this.$emit("update:modelValue", e), this.$emit("change", e);
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
deep: !0
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
},
|
|
44
|
+
methods: {
|
|
45
|
+
change() {
|
|
46
|
+
this.key++;
|
|
47
|
+
},
|
|
48
|
+
del(r) {
|
|
49
|
+
this.list.splice(r, 1), this.key++;
|
|
50
|
+
},
|
|
51
|
+
add() {
|
|
52
|
+
this.list.push({});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}, A = { class: "input-group-table" }, I = { align: "left" }, B = { style: { "line-height": "1.2" } }, E = ["onClick"], F = { class: "text-3 op-70 pl-sm" };
|
|
56
|
+
function N(r, t, e, b, i, u) {
|
|
57
|
+
const V = f("el-tooltip"), x = f("inputItem");
|
|
58
|
+
return n(), o("div", A, [
|
|
59
|
+
l("table", null, [
|
|
60
|
+
l("colgroup", null, [
|
|
61
|
+
t[1] || (t[1] = l("col", { width: 40 }, null, -1)),
|
|
62
|
+
(n(!0), o(a, null, m(i.cols, (s) => (n(), o("col", {
|
|
63
|
+
style: C({ width: s.width })
|
|
64
|
+
}, null, 4))), 256)),
|
|
65
|
+
t[2] || (t[2] = l("col", { width: 40 }, null, -1))
|
|
66
|
+
]),
|
|
67
|
+
l("thead", null, [
|
|
68
|
+
l("tr", null, [
|
|
69
|
+
t[4] || (t[4] = l("th", null, null, -1)),
|
|
70
|
+
(n(!0), o(a, null, m(i.cols, (s) => (n(), o("th", I, [
|
|
71
|
+
l("div", B, [
|
|
72
|
+
_(p(s.title) + " ", 1),
|
|
73
|
+
s.info ? (n(), c(V, {
|
|
74
|
+
key: 0,
|
|
75
|
+
content: s.info,
|
|
76
|
+
placement: "bottom",
|
|
77
|
+
effect: "light"
|
|
78
|
+
}, {
|
|
79
|
+
default: y(() => [...t[3] || (t[3] = [
|
|
80
|
+
l("i", { class: "i-ri-question-line op-70" }, null, -1)
|
|
81
|
+
])]),
|
|
82
|
+
_: 1
|
|
83
|
+
}, 8, ["content"])) : g("", !0)
|
|
84
|
+
])
|
|
85
|
+
]))), 256)),
|
|
86
|
+
t[5] || (t[5] = l("th", { align: "right" }, null, -1))
|
|
87
|
+
])
|
|
88
|
+
]),
|
|
89
|
+
(n(), c(j(i.limit > 1 ? "a-draggable" : "span"), z({ tag: "tbody" }, i.limit > 1 ? { filter: ".del", handle: ".sort", list: i.list, onChange: u.change } : {}), {
|
|
90
|
+
default: y(() => [
|
|
91
|
+
(n(!0), o(a, null, m(i.list, (s, h) => (n(), o("tr", null, [
|
|
92
|
+
t[7] || (t[7] = l("td", null, [
|
|
93
|
+
l("div", {
|
|
94
|
+
class: "sort op-70",
|
|
95
|
+
title: "拖动排序"
|
|
96
|
+
}, [
|
|
97
|
+
l("i", { class: "i-ri-menu-line" })
|
|
98
|
+
])
|
|
99
|
+
], -1)),
|
|
100
|
+
(n(!0), o(a, null, m(i.cols, (d) => (n(), o("td", null, [
|
|
101
|
+
(n(), c(x, {
|
|
102
|
+
clearable: d.clearable ?? e.init.clearable ?? !1,
|
|
103
|
+
cols: i.cols,
|
|
104
|
+
index: h,
|
|
105
|
+
key: i.key,
|
|
106
|
+
prop: d,
|
|
107
|
+
modelValue: s[d.field],
|
|
108
|
+
"onUpdate:modelValue": (k) => s[d.field] = k
|
|
109
|
+
}, null, 8, ["clearable", "cols", "index", "prop", "modelValue", "onUpdate:modelValue"]))
|
|
110
|
+
]))), 256)),
|
|
111
|
+
l("td", null, [
|
|
112
|
+
l("div", {
|
|
113
|
+
title: "删除",
|
|
114
|
+
class: "del op-70 flex",
|
|
115
|
+
onClick: (d) => u.del(h)
|
|
116
|
+
}, [...t[6] || (t[6] = [
|
|
117
|
+
l("i", { class: "i-ri-delete-bin-line" }, null, -1)
|
|
118
|
+
])], 8, E)
|
|
119
|
+
])
|
|
120
|
+
]))), 256))
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}, 16))
|
|
124
|
+
]),
|
|
125
|
+
i.list.length < i.limit ? (n(), o("div", {
|
|
126
|
+
key: 0,
|
|
127
|
+
class: v(["add flex justify-center items-center info-hide", { "add-small": e.init.size === "small" }]),
|
|
128
|
+
onClick: t[0] || (t[0] = (...s) => u.add && u.add(...s))
|
|
129
|
+
}, [
|
|
130
|
+
t[8] || (t[8] = l("i", { class: "i-ri-add-line font-xl" }, null, -1)),
|
|
131
|
+
t[9] || (t[9] = l("span", null, "添加数据", -1)),
|
|
132
|
+
l("span", F, "(" + p(i.list.length) + "/" + p(i.limit) + ")", 1)
|
|
133
|
+
], 2)) : g("", !0)
|
|
134
|
+
]);
|
|
135
|
+
}
|
|
136
|
+
const U = /* @__PURE__ */ O(T, [["render", N], ["__scopeId", "data-v-5b3688e9"]]);
|
|
137
|
+
export {
|
|
138
|
+
U as default
|
|
139
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
// @unocss-include
|
|
2
|
+
import { resolveComponent as r, createElementBlock as l, openBlock as i, createVNode as T, withCtx as f, Fragment as _, renderList as y, createBlock as h, createElementVNode as o, normalizeStyle as V, createCommentVNode as p, toDisplayString as b, createTextVNode as $ } from "vue";
|
|
3
|
+
import { _ as j } from "./index-CuoBjxHd.js";
|
|
4
|
+
const x = {
|
|
5
|
+
name: "group-tabs",
|
|
6
|
+
components: {
|
|
7
|
+
inputItem: defineAsyncComponent(() => import("./index-CuoBjxHd.js").then((t) => t.c))
|
|
8
|
+
},
|
|
9
|
+
emits: ["change", "update:modelValue"],
|
|
10
|
+
props: {
|
|
11
|
+
init: Object,
|
|
12
|
+
size: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: ""
|
|
15
|
+
},
|
|
16
|
+
modelValue: Array | Object
|
|
17
|
+
},
|
|
18
|
+
data() {
|
|
19
|
+
return {
|
|
20
|
+
tabs: [],
|
|
21
|
+
dataType: "Array",
|
|
22
|
+
limit: 1,
|
|
23
|
+
key: 1,
|
|
24
|
+
alignTop: !1,
|
|
25
|
+
list: [],
|
|
26
|
+
cols: []
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
created() {
|
|
30
|
+
this.init.tabs && typeof this.init.tabs == "function" ? this.tabs = this.init.tabs(this.modelValue) : this.init.tabs && (this.tabs = this.init.tabs), this.init.cols && (Array.isArray(this.init.cols) ? this.cols = this.init.cols : typeof this.init.cols == "object" && (this.cols = [this.init.cols]), this.init.size && this.cols.forEach((t) => {
|
|
31
|
+
t.size = this.init.size;
|
|
32
|
+
}), this.init.alignTop && (this.alignTop = !0), this.init.limit > 1 && (this.limit = this.init.limit), this.modelValue && this.modelValue.constructor.name === "Object" ? (this.dataType = "Object", this.list = [this.modelValue]) : this.modelValue && this.modelValue.constructor.name === "Array" && (this.list = this.modelValue), this.limit === 1 && (this.dataType = "Object", this.modelValue || (this.list = [{}])), this.$watch(
|
|
33
|
+
"list",
|
|
34
|
+
function(t, d) {
|
|
35
|
+
this.dataType === "Object" && (t = t[0]), console.log(t, this.dataType), this.$emit("update:modelValue", t), this.$emit("change", t);
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
deep: !0
|
|
39
|
+
}
|
|
40
|
+
));
|
|
41
|
+
},
|
|
42
|
+
methods: {
|
|
43
|
+
change() {
|
|
44
|
+
this.key++;
|
|
45
|
+
},
|
|
46
|
+
del(t) {
|
|
47
|
+
this.list.splice(t, 1), this.key++;
|
|
48
|
+
},
|
|
49
|
+
add() {
|
|
50
|
+
this.list.push({});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}, v = { class: "group-tabs" }, w = { class: "input-group-item" }, A = { class: "item" }, O = { class: "input w-full" }, z = { class: "input-item-box" }, C = { class: "input-item-input" }, N = {
|
|
54
|
+
key: 0,
|
|
55
|
+
class: "input-item-info text-3 op-70 pt-xs leading-15"
|
|
56
|
+
};
|
|
57
|
+
function U(t, d, n, W, c, B) {
|
|
58
|
+
const m = r("inputItem"), g = r("el-tab-pane"), k = r("el-tabs");
|
|
59
|
+
return i(), l("div", v, [
|
|
60
|
+
T(k, { type: "border-card" }, {
|
|
61
|
+
default: f(() => [
|
|
62
|
+
(i(!0), l(_, null, y(c.tabs, (a, s) => (i(), h(g, {
|
|
63
|
+
label: a.title
|
|
64
|
+
}, {
|
|
65
|
+
default: f(() => [
|
|
66
|
+
o("div", w, [
|
|
67
|
+
o("div", A, [
|
|
68
|
+
o("div", O, [
|
|
69
|
+
(i(!0), l(_, null, y(c.cols, (e) => (i(), l("div", {
|
|
70
|
+
class: "input-item",
|
|
71
|
+
style: V({ width: e.inputWidth ? e.inputWidth : "100%" })
|
|
72
|
+
}, [
|
|
73
|
+
o("div", z, [
|
|
74
|
+
e.title ? (i(), l("div", {
|
|
75
|
+
key: 0,
|
|
76
|
+
class: "input-item-title",
|
|
77
|
+
style: V(`width:${e.labelWidth || n.init.labelWidth};`)
|
|
78
|
+
}, b(e.title) + ": ", 5)) : p("", !0),
|
|
79
|
+
o("div", C, [
|
|
80
|
+
e.field ? (i(), h(m, {
|
|
81
|
+
key: 0,
|
|
82
|
+
modelValue: n.modelValue[a.key || s][e.field],
|
|
83
|
+
"onUpdate:modelValue": (u) => n.modelValue[a.key || s][e.field] = u,
|
|
84
|
+
index: s,
|
|
85
|
+
prop: e
|
|
86
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "index", "prop"])) : c.cols.length === 1 ? (i(), h(m, {
|
|
87
|
+
key: 1,
|
|
88
|
+
modelValue: n.modelValue[a.key || s],
|
|
89
|
+
"onUpdate:modelValue": (u) => n.modelValue[a.key || s] = u,
|
|
90
|
+
index: s,
|
|
91
|
+
prop: e
|
|
92
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "index", "prop"])) : p("", !0)
|
|
93
|
+
])
|
|
94
|
+
]),
|
|
95
|
+
e.info ? (i(), l("div", N, [
|
|
96
|
+
d[0] || (d[0] = o("i", { class: "i-ri-error-warning-line" }, null, -1)),
|
|
97
|
+
$(" " + b(e.info), 1)
|
|
98
|
+
])) : p("", !0)
|
|
99
|
+
], 4))), 256))
|
|
100
|
+
])
|
|
101
|
+
])
|
|
102
|
+
])
|
|
103
|
+
]),
|
|
104
|
+
_: 2
|
|
105
|
+
}, 1032, ["label"]))), 256))
|
|
106
|
+
]),
|
|
107
|
+
_: 1
|
|
108
|
+
})
|
|
109
|
+
]);
|
|
110
|
+
}
|
|
111
|
+
const S = /* @__PURE__ */ j(x, [["render", U]]);
|
|
112
|
+
export {
|
|
113
|
+
S as default
|
|
114
|
+
};
|