dmx-admin-ui 1.2.203 → 1.2.204
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/editor-D1I1YxoR.js +9501 -0
- package/dist/{group-kiH8b5ye.js → group-DJMTzFfu.js} +36 -35
- package/dist/{group-table-iHfaR0Ty.js → group-table-CuvD2HpY.js} +25 -24
- package/dist/{group-tabs-Bnu0pRvw.js → group-tabs-D4FsSm5L.js} +17 -16
- package/dist/{group-tabs-plus-3v_n5_ON.js → group-tabs-plus-DikkYQG1.js} +25 -24
- package/dist/index-Ch2BX97e.js +10276 -0
- package/dist/index.css +1 -1
- package/dist/index.js +5 -4
- package/dist/input-item-C-KhRAnN.js +4 -0
- package/dist/js/regions.min.js +2 -0
- package/package.json +3 -6
- package/types/global.d.ts +1105 -8
- package/types/plugins/cache.d.ts +8 -0
- package/types/plugins/copy.d.ts +2 -0
- package/types/plugins/index.d.ts +7 -0
- package/types/plugins/layer.d.ts +42 -0
- package/types/plugins/loadjs.d.ts +1 -0
- package/types/plugins/page.d.ts +9 -0
- package/types/plugins/req.d.ts +67 -0
- package/types/plugins/store.d.ts +4 -0
- package/types/plugins/util/areas.d.ts +2 -0
- package/types/plugins/util/csv.d.ts +5 -0
- package/types/plugins/util/index.d.ts +33 -0
- package/types/plugins/util/time.d.ts +6 -0
- package/dist/index-DQgXcIoh.js +0 -18571
- package/dist/index.umd.cjs +0 -42
- package/types/admin.d.ts +0 -68
- package/types/index.d.ts +0 -48
- package/types/vite.d.ts +0 -0
- package/vite.js +0 -13
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { resolveComponent as k, openBlock as s, createElementBlock as n, normalizeClass as
|
|
2
|
-
import { _ as j } from "./index-
|
|
1
|
+
import { resolveComponent as k, openBlock as s, createElementBlock as n, normalizeClass as p, createBlock as h, resolveDynamicComponent as v, normalizeProps as x, guardReactiveProps as V, withCtx as z, Fragment as f, renderList as g, createElementVNode as o, createCommentVNode as d, normalizeStyle as b, toDisplayString as u, createTextVNode as C, defineAsyncComponent as T } from "vue";
|
|
2
|
+
import { _ as j } from "./index-Ch2BX97e.js";
|
|
3
3
|
const O = {
|
|
4
4
|
name: "form-group",
|
|
5
5
|
components: {
|
|
6
|
-
inputItem: T(() => import("./
|
|
6
|
+
inputItem: T(() => import("./input-item-C-KhRAnN.js"))
|
|
7
7
|
},
|
|
8
8
|
emits: ["change", "update:modelValue"],
|
|
9
9
|
props: {
|
|
10
10
|
init: Object,
|
|
11
|
+
disabled: Boolean,
|
|
11
12
|
size: {
|
|
12
13
|
type: String,
|
|
13
14
|
default: ""
|
|
@@ -26,12 +27,12 @@ const O = {
|
|
|
26
27
|
};
|
|
27
28
|
},
|
|
28
29
|
created() {
|
|
29
|
-
this.cols = this.init.cols, (this.init.size || this.size) && this.cols.forEach((
|
|
30
|
-
|
|
30
|
+
this.cols = this.init.cols, (this.init.size || this.size) && this.cols.forEach((e) => {
|
|
31
|
+
e.size = this.init.size || this.size;
|
|
31
32
|
}), this.init.alignTop && (this.alignTop = !0), this.init.config && (this.config = this.init.config), 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(
|
|
32
33
|
"list",
|
|
33
|
-
function(
|
|
34
|
-
this.dataType === "Object" && (
|
|
34
|
+
function(e, t) {
|
|
35
|
+
this.dataType === "Object" && (e = e[0]), this.$emit("update:modelValue", e), this.$emit("change", e);
|
|
35
36
|
},
|
|
36
37
|
{
|
|
37
38
|
deep: !0
|
|
@@ -42,11 +43,11 @@ const O = {
|
|
|
42
43
|
change() {
|
|
43
44
|
this.key++;
|
|
44
45
|
},
|
|
45
|
-
change2(
|
|
46
|
-
r.field ? this.list[
|
|
46
|
+
change2(e, t, r) {
|
|
47
|
+
r.field ? this.list[t][r.field] = e : this.list[t] = e;
|
|
47
48
|
},
|
|
48
|
-
del(
|
|
49
|
-
this.list.splice(
|
|
49
|
+
del(e) {
|
|
50
|
+
this.list.splice(e, 1), this.key++;
|
|
50
51
|
},
|
|
51
52
|
add() {
|
|
52
53
|
this.list.push({});
|
|
@@ -56,7 +57,7 @@ const O = {
|
|
|
56
57
|
key: 0,
|
|
57
58
|
class: "sort",
|
|
58
59
|
title: "拖动排序"
|
|
59
|
-
},
|
|
60
|
+
}, B = { class: "item" }, I = { class: "input w-full" }, E = {
|
|
60
61
|
key: 0,
|
|
61
62
|
class: "input-item-title break-all"
|
|
62
63
|
}, N = { class: "input-item-input" }, S = {
|
|
@@ -64,29 +65,29 @@ const O = {
|
|
|
64
65
|
class: "input-item-info text-3 op-70 pt-xs",
|
|
65
66
|
style: { "line-height": "1.5" }
|
|
66
67
|
}, D = ["onClick"], P = { class: "text-3 op-70 pl-sm" };
|
|
67
|
-
function U(
|
|
68
|
+
function U(e, t, r, W, i, c) {
|
|
68
69
|
const y = k("inputItem");
|
|
69
70
|
return s(), n("div", {
|
|
70
|
-
class:
|
|
71
|
+
class: p(["input-group", i.limit == 1 ? "input-group-one" : ""])
|
|
71
72
|
}, [
|
|
72
|
-
(s(),
|
|
73
|
+
(s(), h(v(i.limit > 1 ? "a-draggable" : "span"), x(V(i.limit > 1 ? { filter: ".del", handle: ".sort", list: i.list, onChange: c.change } : {})), {
|
|
73
74
|
default: z(() => [
|
|
74
75
|
(s(!0), n(f, null, g(i.list, (a, m) => (s(), n("div", w, [
|
|
75
|
-
i.limit != 1 ? (s(), n("div", A, [...
|
|
76
|
+
i.limit != 1 ? (s(), n("div", A, [...t[1] || (t[1] = [
|
|
76
77
|
o("i", { class: "i-ri-menu-line" }, null, -1)
|
|
77
|
-
])])) :
|
|
78
|
-
o("div",
|
|
79
|
-
o("div",
|
|
78
|
+
])])) : d("", !0),
|
|
79
|
+
o("div", B, [
|
|
80
|
+
o("div", I, [
|
|
80
81
|
(s(!0), n(f, null, g(i.cols, (l) => (s(), n("div", {
|
|
81
82
|
class: "input-item",
|
|
82
83
|
style: b({ width: l.inputWidth ? l.inputWidth : "100%" })
|
|
83
84
|
}, [
|
|
84
85
|
o("div", {
|
|
85
|
-
class:
|
|
86
|
+
class: p(["input-item-box", { "input-item-box-h": i.alignTop }])
|
|
86
87
|
}, [
|
|
87
|
-
l.title ? (s(), n("div", E,
|
|
88
|
+
l.title ? (s(), n("div", E, u(l.title) + ": ", 1)) : d("", !0),
|
|
88
89
|
o("div", N, [
|
|
89
|
-
(s(),
|
|
90
|
+
(s(), h(y, {
|
|
90
91
|
size: r.size,
|
|
91
92
|
cols: i.cols,
|
|
92
93
|
index: m,
|
|
@@ -98,18 +99,18 @@ function U(t, e, r, W, i, c) {
|
|
|
98
99
|
])
|
|
99
100
|
], 2),
|
|
100
101
|
l.info ? (s(), n("div", S, [
|
|
101
|
-
|
|
102
|
-
C(" " +
|
|
103
|
-
])) :
|
|
102
|
+
t[2] || (t[2] = o("i", { class: "i-ri-error-warning-line" }, null, -1)),
|
|
103
|
+
C(" " + u(l.info), 1)
|
|
104
|
+
])) : d("", !0)
|
|
104
105
|
], 4))), 256))
|
|
105
106
|
]),
|
|
106
107
|
i.limit != 1 ? (s(), n("div", {
|
|
107
108
|
key: 0,
|
|
108
|
-
class: "del",
|
|
109
|
+
class: "del flex items-center justify-center",
|
|
109
110
|
onClick: (l) => c.del(m)
|
|
110
|
-
}, [...
|
|
111
|
+
}, [...t[3] || (t[3] = [
|
|
111
112
|
o("i", { class: "i-ri-close-line" }, null, -1)
|
|
112
|
-
])], 8, D)) :
|
|
113
|
+
])], 8, D)) : d("", !0)
|
|
113
114
|
])
|
|
114
115
|
]))), 256))
|
|
115
116
|
]),
|
|
@@ -117,16 +118,16 @@ function U(t, e, r, W, i, c) {
|
|
|
117
118
|
}, 16)),
|
|
118
119
|
i.limit != 1 && i.list.length < i.limit ? (s(), n("div", {
|
|
119
120
|
key: 0,
|
|
120
|
-
class:
|
|
121
|
-
onClick:
|
|
121
|
+
class: p(["add flex justify-center items-center", { "add-small": r.init.size === "small" }]),
|
|
122
|
+
onClick: t[0] || (t[0] = (...a) => c.add && c.add(...a))
|
|
122
123
|
}, [
|
|
123
|
-
|
|
124
|
-
o("span", null,
|
|
125
|
-
o("span", P, "(" +
|
|
126
|
-
], 2)) :
|
|
124
|
+
t[4] || (t[4] = o("i", { class: "i-ri-add-line font-xl" }, null, -1)),
|
|
125
|
+
o("span", null, u(i.config.text), 1),
|
|
126
|
+
o("span", P, "(" + u(i.list.length) + "/" + u(i.limit) + ")", 1)
|
|
127
|
+
], 2)) : d("", !0)
|
|
127
128
|
], 2);
|
|
128
129
|
}
|
|
129
|
-
const R = /* @__PURE__ */ j(O, [["render", U], ["__scopeId", "data-v-
|
|
130
|
+
const R = /* @__PURE__ */ j(O, [["render", U], ["__scopeId", "data-v-daf418bc"]]);
|
|
130
131
|
export {
|
|
131
132
|
R as default
|
|
132
133
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { resolveComponent as f, openBlock as n, createElementBlock as
|
|
2
|
-
import { _ as O } from "./index-
|
|
1
|
+
import { resolveComponent as f, openBlock as n, createElementBlock as o, createElementVNode as l, Fragment as a, renderList as c, normalizeStyle as w, createTextVNode as C, toDisplayString as h, createBlock as p, withCtx as g, createCommentVNode as y, resolveDynamicComponent as v, mergeProps as _, normalizeClass as j, defineAsyncComponent as z } from "vue";
|
|
2
|
+
import { _ as O } from "./index-Ch2BX97e.js";
|
|
3
3
|
const T = {
|
|
4
4
|
name: "form-group",
|
|
5
5
|
components: {
|
|
6
|
-
inputItem: z(() => import("./
|
|
6
|
+
inputItem: z(() => import("./input-item-C-KhRAnN.js"))
|
|
7
7
|
},
|
|
8
8
|
emits: ["change", "update:modelValue"],
|
|
9
9
|
props: {
|
|
@@ -11,6 +11,7 @@ const T = {
|
|
|
11
11
|
type: String,
|
|
12
12
|
default: ""
|
|
13
13
|
},
|
|
14
|
+
disabled: Boolean,
|
|
14
15
|
init: Object,
|
|
15
16
|
modelValue: Array | Object
|
|
16
17
|
},
|
|
@@ -25,7 +26,7 @@ const T = {
|
|
|
25
26
|
},
|
|
26
27
|
created() {
|
|
27
28
|
this.cols = this.init.cols;
|
|
28
|
-
const
|
|
29
|
+
const r = this.cols.filter((e) => !e.width).length, t = `calc(${(100 / r).toFixed(1) + "%"} - ${(80 / r).toFixed(1) + "px"})`;
|
|
29
30
|
this.init.size && this.cols.forEach((e) => {
|
|
30
31
|
e.size = this.init.size, e.width || (e.width = t);
|
|
31
32
|
}), 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(
|
|
@@ -42,37 +43,37 @@ const T = {
|
|
|
42
43
|
change() {
|
|
43
44
|
this.key++;
|
|
44
45
|
},
|
|
45
|
-
change2(
|
|
46
|
-
e.field ? this.list[t][e.field] =
|
|
46
|
+
change2(r, t, e) {
|
|
47
|
+
e.field ? this.list[t][e.field] = r : this.list[t] = r;
|
|
47
48
|
},
|
|
48
|
-
del(
|
|
49
|
-
this.list.splice(
|
|
49
|
+
del(r) {
|
|
50
|
+
this.list.splice(r, 1), this.key++;
|
|
50
51
|
},
|
|
51
52
|
add() {
|
|
52
53
|
this.list.push({});
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
|
-
}, A = { class: "input-group-table" },
|
|
56
|
-
function N(
|
|
56
|
+
}, A = { class: "input-group-table" }, B = { align: "left" }, I = { style: { "line-height": "1.2" } }, E = ["onClick"], F = { class: "text-3 op-70 pl-sm" };
|
|
57
|
+
function N(r, t, e, b, i, u) {
|
|
57
58
|
const V = f("el-tooltip"), k = f("inputItem");
|
|
58
|
-
return n(),
|
|
59
|
+
return n(), o("div", A, [
|
|
59
60
|
l("table", null, [
|
|
60
61
|
l("colgroup", null, [
|
|
61
62
|
t[1] || (t[1] = l("col", { width: 40 }, null, -1)),
|
|
62
|
-
(n(!0),
|
|
63
|
-
style: w({ width:
|
|
63
|
+
(n(!0), o(a, null, c(i.cols, (s) => (n(), o("col", {
|
|
64
|
+
style: w({ width: s.width })
|
|
64
65
|
}, null, 4))), 256)),
|
|
65
66
|
t[2] || (t[2] = l("col", { width: 40 }, null, -1))
|
|
66
67
|
]),
|
|
67
68
|
l("thead", null, [
|
|
68
69
|
l("tr", null, [
|
|
69
70
|
t[4] || (t[4] = l("th", null, null, -1)),
|
|
70
|
-
(n(!0),
|
|
71
|
-
l("div",
|
|
72
|
-
C(h(
|
|
73
|
-
|
|
71
|
+
(n(!0), o(a, null, c(i.cols, (s) => (n(), o("th", B, [
|
|
72
|
+
l("div", I, [
|
|
73
|
+
C(h(s.title) + " ", 1),
|
|
74
|
+
s.info ? (n(), p(V, {
|
|
74
75
|
key: 0,
|
|
75
|
-
content:
|
|
76
|
+
content: s.info,
|
|
76
77
|
placement: "bottom",
|
|
77
78
|
effect: "light"
|
|
78
79
|
}, {
|
|
@@ -88,7 +89,7 @@ function N(s, t, e, b, i, u) {
|
|
|
88
89
|
]),
|
|
89
90
|
(n(), p(v(i.limit > 1 ? "a-draggable" : "span"), _({ tag: "tbody" }, i.limit > 1 ? { filter: ".del", handle: ".sort", list: i.list, onChange: u.change } : {}), {
|
|
90
91
|
default: g(() => [
|
|
91
|
-
(n(!0),
|
|
92
|
+
(n(!0), o(a, null, c(i.list, (s, m) => (n(), o("tr", null, [
|
|
92
93
|
t[7] || (t[7] = l("td", null, [
|
|
93
94
|
l("div", {
|
|
94
95
|
class: "sort op-70",
|
|
@@ -97,7 +98,7 @@ function N(s, t, e, b, i, u) {
|
|
|
97
98
|
l("i", { class: "i-ri-menu-line" })
|
|
98
99
|
])
|
|
99
100
|
], -1)),
|
|
100
|
-
(n(!0),
|
|
101
|
+
(n(!0), o(a, null, c(i.cols, (d) => (n(), o("td", null, [
|
|
101
102
|
(n(), p(k, {
|
|
102
103
|
clearable: d.clearable ?? e.init.clearable ?? !1,
|
|
103
104
|
cols: i.cols,
|
|
@@ -105,7 +106,7 @@ function N(s, t, e, b, i, u) {
|
|
|
105
106
|
key: i.key,
|
|
106
107
|
prop: d,
|
|
107
108
|
"onUpdate:modelValue": (x) => u.change2(x, m, d),
|
|
108
|
-
"model-value": d.field ?
|
|
109
|
+
"model-value": d.field ? s[d.field] : s
|
|
109
110
|
}, null, 8, ["clearable", "cols", "index", "prop", "onUpdate:modelValue", "model-value"]))
|
|
110
111
|
]))), 256)),
|
|
111
112
|
l("td", null, [
|
|
@@ -122,10 +123,10 @@ function N(s, t, e, b, i, u) {
|
|
|
122
123
|
_: 1
|
|
123
124
|
}, 16))
|
|
124
125
|
]),
|
|
125
|
-
i.list.length < i.limit ? (n(),
|
|
126
|
+
i.list.length < i.limit ? (n(), o("div", {
|
|
126
127
|
key: 0,
|
|
127
128
|
class: j(["add flex justify-center items-center info-hide", { "add-small": e.init.size === "small" }]),
|
|
128
|
-
onClick: t[0] || (t[0] = (...
|
|
129
|
+
onClick: t[0] || (t[0] = (...s) => u.add && u.add(...s))
|
|
129
130
|
}, [
|
|
130
131
|
t[8] || (t[8] = l("i", { class: "i-ri-add-line font-xl" }, null, -1)),
|
|
131
132
|
t[9] || (t[9] = l("span", null, "添加数据", -1)),
|
|
@@ -133,7 +134,7 @@ function N(s, t, e, b, i, u) {
|
|
|
133
134
|
], 2)) : y("", !0)
|
|
134
135
|
]);
|
|
135
136
|
}
|
|
136
|
-
const U = /* @__PURE__ */ O(T, [["render", N], ["__scopeId", "data-v-
|
|
137
|
+
const U = /* @__PURE__ */ O(T, [["render", N], ["__scopeId", "data-v-f21e961d"]]);
|
|
137
138
|
export {
|
|
138
139
|
U as default
|
|
139
140
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { resolveComponent as r, openBlock as i, createElementBlock as l, createVNode as k, withCtx as f, Fragment as _, renderList as
|
|
2
|
-
import { _ as
|
|
3
|
-
const
|
|
1
|
+
import { resolveComponent as r, openBlock as i, createElementBlock as l, createVNode as k, withCtx as f, Fragment as _, renderList as b, createBlock as h, createElementVNode as o, normalizeStyle as V, toDisplayString as y, createCommentVNode as p, createTextVNode as T, defineAsyncComponent as j } from "vue";
|
|
2
|
+
import { _ as x } from "./index-Ch2BX97e.js";
|
|
3
|
+
const w = {
|
|
4
4
|
name: "group-tabs",
|
|
5
5
|
components: {
|
|
6
|
-
inputItem:
|
|
6
|
+
inputItem: j(() => import("./input-item-C-KhRAnN.js"))
|
|
7
7
|
},
|
|
8
8
|
emits: ["change", "update:modelValue"],
|
|
9
9
|
props: {
|
|
10
10
|
init: Object,
|
|
11
|
+
disabled: Boolean,
|
|
11
12
|
size: {
|
|
12
13
|
type: String,
|
|
13
14
|
default: ""
|
|
@@ -49,31 +50,31 @@ const x = {
|
|
|
49
50
|
this.list.push({});
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
|
-
},
|
|
53
|
+
}, A = { class: "group-tabs" }, O = { class: "input-group-item" }, z = { class: "item" }, B = { class: "input w-full" }, C = { class: "input-item-box" }, N = { class: "input-item-input" }, U = {
|
|
53
54
|
key: 0,
|
|
54
55
|
class: "input-item-info text-3 op-70 pt-xs leading-15"
|
|
55
56
|
};
|
|
56
|
-
function W(e, d, n,
|
|
57
|
+
function W(e, d, n, E, u, I) {
|
|
57
58
|
const m = r("inputItem"), g = r("el-tab-pane"), v = r("el-tabs");
|
|
58
|
-
return i(), l("div",
|
|
59
|
+
return i(), l("div", A, [
|
|
59
60
|
k(v, { type: "border-card" }, {
|
|
60
61
|
default: f(() => [
|
|
61
|
-
(i(!0), l(_, null,
|
|
62
|
+
(i(!0), l(_, null, b(u.tabs, (a, s) => (i(), h(g, {
|
|
62
63
|
label: a.label
|
|
63
64
|
}, {
|
|
64
65
|
default: f(() => [
|
|
65
|
-
o("div",
|
|
66
|
-
o("div",
|
|
67
|
-
o("div",
|
|
68
|
-
(i(!0), l(_, null,
|
|
66
|
+
o("div", O, [
|
|
67
|
+
o("div", z, [
|
|
68
|
+
o("div", B, [
|
|
69
|
+
(i(!0), l(_, null, b(u.cols, (t) => (i(), l("div", {
|
|
69
70
|
class: "input-item",
|
|
70
|
-
style:
|
|
71
|
+
style: V({ width: t.inputWidth ? t.inputWidth : "100%" })
|
|
71
72
|
}, [
|
|
72
73
|
o("div", C, [
|
|
73
74
|
t.title ? (i(), l("div", {
|
|
74
75
|
key: 0,
|
|
75
76
|
class: "input-item-title",
|
|
76
|
-
style:
|
|
77
|
+
style: V(`width:${t.labelWidth || n.init.labelWidth};`)
|
|
77
78
|
}, y(t.title) + ": ", 5)) : p("", !0),
|
|
78
79
|
o("div", N, [
|
|
79
80
|
t.field ? (i(), h(m, {
|
|
@@ -107,7 +108,7 @@ function W(e, d, n, B, u, E) {
|
|
|
107
108
|
})
|
|
108
109
|
]);
|
|
109
110
|
}
|
|
110
|
-
const
|
|
111
|
+
const F = /* @__PURE__ */ x(w, [["render", W]]);
|
|
111
112
|
export {
|
|
112
|
-
|
|
113
|
+
F as default
|
|
113
114
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolveComponent as d, openBlock as
|
|
2
|
-
import { _ as A } from "./index-
|
|
1
|
+
import { resolveComponent as d, openBlock as o, createElementBlock as a, createVNode as y, withCtx as u, createElementVNode as n, createBlock as f, createTextVNode as c, createCommentVNode as r, toDisplayString as b, Fragment as g, renderList as k, normalizeStyle as V, normalizeClass as j, defineAsyncComponent as z } from "vue";
|
|
2
|
+
import { _ as A } from "./index-Ch2BX97e.js";
|
|
3
3
|
function U(e, t) {
|
|
4
4
|
if (t <= 0 || t >= e.length) return [...e];
|
|
5
5
|
const i = [...e];
|
|
@@ -10,14 +10,15 @@ function O(e, t) {
|
|
|
10
10
|
const i = [...e];
|
|
11
11
|
return [i[t], i[t + 1]] = [i[t + 1], i[t]], i;
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const B = {
|
|
14
14
|
name: "group-tabs-plus",
|
|
15
15
|
components: {
|
|
16
|
-
inputItem: z(() => import("./
|
|
16
|
+
inputItem: z(() => import("./input-item-C-KhRAnN.js"))
|
|
17
17
|
},
|
|
18
18
|
emits: ["change", "update:modelValue"],
|
|
19
19
|
props: {
|
|
20
20
|
init: Object,
|
|
21
|
+
disabled: Boolean,
|
|
21
22
|
size: {
|
|
22
23
|
type: String,
|
|
23
24
|
default: ""
|
|
@@ -67,7 +68,7 @@ const D = {
|
|
|
67
68
|
this.list.push({}), this.tab = this.list.length - 1;
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
|
-
},
|
|
71
|
+
}, D = { class: "group-tabs-plus pb bg-main" }, N = { class: "flex justify-between pr pb-3 b-b" }, W = { class: "flex justify-end" }, x = { class: "input-group-item" }, E = { class: "item" }, I = { class: "input w-full" }, S = { class: "input-item-input" }, F = {
|
|
71
72
|
key: 0,
|
|
72
73
|
class: "input-item-info text-3 op-70 pt-xs leading-15"
|
|
73
74
|
}, L = { class: "flex justify-end mt mr" }, P = {
|
|
@@ -76,7 +77,7 @@ const D = {
|
|
|
76
77
|
};
|
|
77
78
|
function q(e, t, i, G, s, p) {
|
|
78
79
|
const m = d("el-button"), v = d("inputItem"), T = d("el-tab-pane"), w = d("el-tabs");
|
|
79
|
-
return
|
|
80
|
+
return o(), a("div", D, [
|
|
80
81
|
y(w, {
|
|
81
82
|
class: "group-tabs-plus-tabs",
|
|
82
83
|
type: "card",
|
|
@@ -84,9 +85,9 @@ function q(e, t, i, G, s, p) {
|
|
|
84
85
|
"onUpdate:modelValue": t[0] || (t[0] = (_) => s.tab = _)
|
|
85
86
|
}, {
|
|
86
87
|
default: u(() => [
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
s.tab > 0 ? (
|
|
88
|
+
n("div", N, [
|
|
89
|
+
n("div", W, [
|
|
90
|
+
s.tab > 0 ? (o(), f(m, {
|
|
90
91
|
key: 0,
|
|
91
92
|
type: "default",
|
|
92
93
|
size: "small",
|
|
@@ -97,7 +98,7 @@ function q(e, t, i, G, s, p) {
|
|
|
97
98
|
])]),
|
|
98
99
|
_: 1
|
|
99
100
|
}, 8, ["onClick"])) : r("", !0),
|
|
100
|
-
s.tab >= 0 && s.tab < s.list.length - 1 ? (
|
|
101
|
+
s.tab >= 0 && s.tab < s.list.length - 1 ? (o(), f(m, {
|
|
101
102
|
key: 1,
|
|
102
103
|
type: "default",
|
|
103
104
|
size: "small",
|
|
@@ -121,28 +122,28 @@ function q(e, t, i, G, s, p) {
|
|
|
121
122
|
_: 1
|
|
122
123
|
}, 8, ["onClick"])
|
|
123
124
|
]),
|
|
124
|
-
(
|
|
125
|
+
(o(!0), a(g, null, k(s.list, (_, h) => (o(), f(T, {
|
|
125
126
|
label: "数据/" + (h + 1),
|
|
126
127
|
name: h
|
|
127
128
|
}, {
|
|
128
129
|
default: u(() => [
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
(
|
|
130
|
+
n("div", x, [
|
|
131
|
+
n("div", E, [
|
|
132
|
+
n("div", I, [
|
|
133
|
+
(o(!0), a(g, null, k(s.cols, (l) => (o(), a("div", {
|
|
133
134
|
class: "input-item",
|
|
134
135
|
style: V({ width: l.inputWidth ? l.inputWidth : "100%" })
|
|
135
136
|
}, [
|
|
136
|
-
|
|
137
|
+
n("div", {
|
|
137
138
|
class: j(["input-item-box", i.init.alignTop ? "flex flex-col gap-2 *:w-full!" : "text-right"])
|
|
138
139
|
}, [
|
|
139
|
-
l.title ? (
|
|
140
|
+
l.title ? (o(), a("div", {
|
|
140
141
|
key: 0,
|
|
141
142
|
class: "input-item-title",
|
|
142
143
|
style: V(`width:${l.labelWidth || i.init.labelWidth};`)
|
|
143
144
|
}, b(l.title) + ": ", 5)) : r("", !0),
|
|
144
|
-
|
|
145
|
-
l.field ? (
|
|
145
|
+
n("div", S, [
|
|
146
|
+
l.field ? (o(), f(v, {
|
|
146
147
|
key: s.key,
|
|
147
148
|
modelValue: s.list[h][l.field],
|
|
148
149
|
"onUpdate:modelValue": (C) => s.list[h][l.field] = C,
|
|
@@ -151,15 +152,15 @@ function q(e, t, i, G, s, p) {
|
|
|
151
152
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "index", "prop"])) : r("", !0)
|
|
152
153
|
])
|
|
153
154
|
], 2),
|
|
154
|
-
l.info ? (
|
|
155
|
-
t[3] || (t[3] =
|
|
155
|
+
l.info ? (o(), a("div", F, [
|
|
156
|
+
t[3] || (t[3] = n("i", { class: "i-ri-error-warning-line" }, null, -1)),
|
|
156
157
|
c(" " + b(l.info), 1)
|
|
157
158
|
])) : r("", !0)
|
|
158
159
|
], 4))), 256))
|
|
159
160
|
])
|
|
160
161
|
])
|
|
161
162
|
]),
|
|
162
|
-
|
|
163
|
+
n("div", L, [
|
|
163
164
|
y(m, {
|
|
164
165
|
type: "danger",
|
|
165
166
|
size: "small",
|
|
@@ -178,10 +179,10 @@ function q(e, t, i, G, s, p) {
|
|
|
178
179
|
]),
|
|
179
180
|
_: 1
|
|
180
181
|
}, 8, ["modelValue"]),
|
|
181
|
-
s.list.length === 0 ? (
|
|
182
|
+
s.list.length === 0 ? (o(), a("div", P, "点击右上方按钮添加数据")) : r("", !0)
|
|
182
183
|
]);
|
|
183
184
|
}
|
|
184
|
-
const K = /* @__PURE__ */ A(
|
|
185
|
+
const K = /* @__PURE__ */ A(B, [["render", q]]);
|
|
185
186
|
export {
|
|
186
187
|
K as default
|
|
187
188
|
};
|