dmx-admin-ui 1.2.214 → 1.2.216
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-BRevKVik.js → editor-ai6gL-jz.js} +1 -1
- package/dist/group-C00RZq1o.js +148 -0
- package/dist/{group-table-D-oPhTlB.js → group-table-Cg9nOpuQ.js} +2 -2
- package/dist/{group-tabs-DB-qI5N1.js → group-tabs-CxuHw41b.js} +2 -2
- package/dist/{group-tabs-plus-C1EDSr_I.js → group-tabs-plus-QcefY6bu.js} +2 -2
- package/dist/{index-nzA5Kzs4.js → index-CJ8Azqo0.js} +3349 -3656
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/input-item-DTLPPJQX.js +4 -0
- package/package.json +1 -1
- package/types/admin.d.ts +50 -16
- package/types/components.d.ts +1097 -0
- package/types/global.d.ts +65 -1202
- package/dist/group-CWzdsWUy.js +0 -133
- package/dist/input-item-sNk6m9U0.js +0 -4
package/dist/group-CWzdsWUy.js
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
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-nzA5Kzs4.js";
|
|
3
|
-
const O = {
|
|
4
|
-
name: "form-group",
|
|
5
|
-
components: {
|
|
6
|
-
inputItem: T(() => import("./input-item-sNk6m9U0.js"))
|
|
7
|
-
},
|
|
8
|
-
emits: ["change", "update:modelValue"],
|
|
9
|
-
props: {
|
|
10
|
-
init: Object,
|
|
11
|
-
disabled: Boolean,
|
|
12
|
-
size: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: ""
|
|
15
|
-
},
|
|
16
|
-
modelValue: Array | Object
|
|
17
|
-
},
|
|
18
|
-
data() {
|
|
19
|
-
return {
|
|
20
|
-
config: { text: "添加数据" },
|
|
21
|
-
dataType: "Array",
|
|
22
|
-
limit: 1,
|
|
23
|
-
key: 1,
|
|
24
|
-
alignTop: !1,
|
|
25
|
-
list: [],
|
|
26
|
-
cols: []
|
|
27
|
-
};
|
|
28
|
-
},
|
|
29
|
-
created() {
|
|
30
|
-
this.cols = this.init.cols, (this.init.size || this.size) && this.cols.forEach((e) => {
|
|
31
|
-
e.size = this.init.size || this.size;
|
|
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(
|
|
33
|
-
"list",
|
|
34
|
-
function(e, t) {
|
|
35
|
-
this.dataType === "Object" && (e = e[0]), this.$emit("update:modelValue", e), this.$emit("change", e);
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
deep: !0
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
},
|
|
42
|
-
methods: {
|
|
43
|
-
change() {
|
|
44
|
-
this.key++;
|
|
45
|
-
},
|
|
46
|
-
change2(e, t, r) {
|
|
47
|
-
r.field ? this.list[t][r.field] = e : this.list[t] = e;
|
|
48
|
-
},
|
|
49
|
-
del(e) {
|
|
50
|
-
this.list.splice(e, 1), this.key++;
|
|
51
|
-
},
|
|
52
|
-
add() {
|
|
53
|
-
this.list.push({});
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}, w = { class: "input-group-item" }, A = {
|
|
57
|
-
key: 0,
|
|
58
|
-
class: "sort",
|
|
59
|
-
title: "拖动排序"
|
|
60
|
-
}, B = { class: "item" }, I = { class: "input w-full" }, E = {
|
|
61
|
-
key: 0,
|
|
62
|
-
class: "input-item-title break-all"
|
|
63
|
-
}, N = { class: "input-item-input" }, S = {
|
|
64
|
-
key: 0,
|
|
65
|
-
class: "input-item-info text-3 op-70 pt-xs",
|
|
66
|
-
style: { "line-height": "1.5" }
|
|
67
|
-
}, D = ["onClick"], P = { class: "text-3 op-70 pl-sm" };
|
|
68
|
-
function U(e, t, r, W, i, c) {
|
|
69
|
-
const y = k("inputItem");
|
|
70
|
-
return s(), n("div", {
|
|
71
|
-
class: p(["input-group", i.limit == 1 ? "input-group-one" : ""])
|
|
72
|
-
}, [
|
|
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 } : {})), {
|
|
74
|
-
default: z(() => [
|
|
75
|
-
(s(!0), n(f, null, g(i.list, (a, m) => (s(), n("div", w, [
|
|
76
|
-
i.limit != 1 ? (s(), n("div", A, [...t[1] || (t[1] = [
|
|
77
|
-
o("i", { class: "i-ri-menu-line" }, null, -1)
|
|
78
|
-
])])) : d("", !0),
|
|
79
|
-
o("div", B, [
|
|
80
|
-
o("div", I, [
|
|
81
|
-
(s(!0), n(f, null, g(i.cols, (l) => (s(), n("div", {
|
|
82
|
-
class: "input-item",
|
|
83
|
-
style: b({ width: l.inputWidth ? l.inputWidth : "100%" })
|
|
84
|
-
}, [
|
|
85
|
-
o("div", {
|
|
86
|
-
class: p(["input-item-box", { "input-item-box-h": i.alignTop }])
|
|
87
|
-
}, [
|
|
88
|
-
l.title ? (s(), n("div", E, u(l.title) + ": ", 1)) : d("", !0),
|
|
89
|
-
o("div", N, [
|
|
90
|
-
(s(), h(y, {
|
|
91
|
-
size: r.size,
|
|
92
|
-
cols: i.cols,
|
|
93
|
-
index: m,
|
|
94
|
-
key: i.key,
|
|
95
|
-
prop: l,
|
|
96
|
-
"onUpdate:modelValue": (_) => c.change2(_, m, l),
|
|
97
|
-
"model-value": l.field ? a[l.field] : a
|
|
98
|
-
}, null, 8, ["size", "cols", "index", "prop", "onUpdate:modelValue", "model-value"]))
|
|
99
|
-
])
|
|
100
|
-
], 2),
|
|
101
|
-
l.info ? (s(), n("div", S, [
|
|
102
|
-
t[2] || (t[2] = o("i", { class: "i-ri-error-warning-line" }, null, -1)),
|
|
103
|
-
C(" " + u(l.info), 1)
|
|
104
|
-
])) : d("", !0)
|
|
105
|
-
], 4))), 256))
|
|
106
|
-
]),
|
|
107
|
-
i.limit != 1 ? (s(), n("div", {
|
|
108
|
-
key: 0,
|
|
109
|
-
class: "del flex items-center justify-center",
|
|
110
|
-
onClick: (l) => c.del(m)
|
|
111
|
-
}, [...t[3] || (t[3] = [
|
|
112
|
-
o("i", { class: "i-ri-close-line" }, null, -1)
|
|
113
|
-
])], 8, D)) : d("", !0)
|
|
114
|
-
])
|
|
115
|
-
]))), 256))
|
|
116
|
-
]),
|
|
117
|
-
_: 1
|
|
118
|
-
}, 16)),
|
|
119
|
-
i.limit != 1 && i.list.length < i.limit ? (s(), n("div", {
|
|
120
|
-
key: 0,
|
|
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))
|
|
123
|
-
}, [
|
|
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)
|
|
128
|
-
], 2);
|
|
129
|
-
}
|
|
130
|
-
const R = /* @__PURE__ */ j(O, [["render", U], ["__scopeId", "data-v-daf418bc"]]);
|
|
131
|
-
export {
|
|
132
|
-
R as default
|
|
133
|
-
};
|