dmx-admin-ui 1.2.213 → 1.2.215
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-BNZ3nJ-P.js → editor-BxFkQHFp.js} +1 -1
- package/dist/{group-C9FPWFVu.js → group-mnARPp_U.js} +2 -2
- package/dist/{group-table-Dq0aMGbb.js → group-table-BI-619ae.js} +40 -39
- package/dist/{group-tabs-kuceT9Uq.js → group-tabs-BWVCufEZ.js} +2 -2
- package/dist/{group-tabs-plus-KySNPbBA.js → group-tabs-plus-DhZiAQ8V.js} +2 -2
- package/dist/{index-DfbmXPlo.js → index-CQE7gaAd.js} +3074 -3403
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/input-item-BlNqPMgV.js +4 -0
- package/package.json +1 -1
- package/types/admin.d.ts +47 -12
- package/types/components.d.ts +1097 -0
- package/types/global.d.ts +65 -1202
- package/dist/input-item-Ca7yyVxf.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as xr, openBlock as Ri, createElementBlock as wl, createVNode as ye, withCtx as le, createElementVNode as ie, createTextVNode as Ve, createBlock as Bl, toDisplayString as El, normalizeClass as to } from "vue";
|
|
2
|
-
import { u as Al, m as xl, _ as Fl } from "./index-
|
|
2
|
+
import { u as Al, m as xl, _ as Fl } from "./index-CQE7gaAd.js";
|
|
3
3
|
var eo;
|
|
4
4
|
typeof global > "u" ? ("ActiveXObject" in window && console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
|
|
5
5
|
Sorry, wangEditor V5+ versions do not support IE browser.`), Hi(), zi()) : global && (!((eo = global.navigator) === null || eo === void 0) && eo.userAgent.match("QQBrowser")) && (Hi(), zi());
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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-
|
|
2
|
+
import { _ as j } from "./index-CQE7gaAd.js";
|
|
3
3
|
const O = {
|
|
4
4
|
name: "form-group",
|
|
5
5
|
components: {
|
|
6
|
-
inputItem: T(() => import("./input-item-
|
|
6
|
+
inputItem: T(() => import("./input-item-BlNqPMgV.js"))
|
|
7
7
|
},
|
|
8
8
|
emits: ["change", "update:modelValue"],
|
|
9
9
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { resolveComponent as f, openBlock as n, createElementBlock as o, createElementVNode as
|
|
2
|
-
import { _ as O } from "./index-
|
|
1
|
+
import { resolveComponent as f, openBlock as n, createElementBlock as o, createElementVNode as e, 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 _, mergeProps as v, normalizeClass as j, defineAsyncComponent as z } from "vue";
|
|
2
|
+
import { _ as O } from "./index-CQE7gaAd.js";
|
|
3
3
|
const T = {
|
|
4
4
|
name: "form-group",
|
|
5
5
|
components: {
|
|
6
|
-
inputItem: z(() => import("./input-item-
|
|
6
|
+
inputItem: z(() => import("./input-item-BlNqPMgV.js"))
|
|
7
7
|
},
|
|
8
8
|
emits: ["change", "update:modelValue"],
|
|
9
9
|
props: {
|
|
@@ -17,6 +17,7 @@ const T = {
|
|
|
17
17
|
},
|
|
18
18
|
data() {
|
|
19
19
|
return {
|
|
20
|
+
config: { text: "添加数据" },
|
|
20
21
|
dataType: "Array",
|
|
21
22
|
limit: 1,
|
|
22
23
|
key: 1,
|
|
@@ -26,13 +27,13 @@ const T = {
|
|
|
26
27
|
},
|
|
27
28
|
created() {
|
|
28
29
|
this.cols = this.init.cols;
|
|
29
|
-
const r = this.cols.filter((
|
|
30
|
-
this.init.size && this.cols.forEach((
|
|
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(
|
|
30
|
+
const r = this.cols.filter((l) => !l.width).length, t = `calc(${(100 / r).toFixed(1) + "%"} - ${(80 / r).toFixed(1) + "px"})`;
|
|
31
|
+
this.init.size && this.cols.forEach((l) => {
|
|
32
|
+
l.size = this.init.size, l.width || (l.width = t);
|
|
33
|
+
}), this.init.limit > 1 && (this.limit = this.init.limit), this.init.config && (this.config = this.init.config), 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(
|
|
33
34
|
"list",
|
|
34
|
-
function(
|
|
35
|
-
this.dataType === "Object" && (
|
|
35
|
+
function(l, b) {
|
|
36
|
+
this.dataType === "Object" && (l = l[0]), this.$emit("update:modelValue", l), this.$emit("change", l);
|
|
36
37
|
},
|
|
37
38
|
{
|
|
38
39
|
deep: !0
|
|
@@ -43,8 +44,8 @@ const T = {
|
|
|
43
44
|
change() {
|
|
44
45
|
this.key++;
|
|
45
46
|
},
|
|
46
|
-
change2(r, t,
|
|
47
|
-
|
|
47
|
+
change2(r, t, l) {
|
|
48
|
+
l.field ? this.list[t][l.field] = r : this.list[t] = r;
|
|
48
49
|
},
|
|
49
50
|
del(r) {
|
|
50
51
|
this.list.splice(r, 1), this.key++;
|
|
@@ -54,68 +55,68 @@ const T = {
|
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
}, 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,
|
|
58
|
-
const
|
|
58
|
+
function N(r, t, l, b, i, u) {
|
|
59
|
+
const x = f("el-tooltip"), V = f("inputItem");
|
|
59
60
|
return n(), o("div", A, [
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
t[1] || (t[1] =
|
|
61
|
+
e("table", null, [
|
|
62
|
+
e("colgroup", null, [
|
|
63
|
+
t[1] || (t[1] = e("col", { width: 40 }, null, -1)),
|
|
63
64
|
(n(!0), o(a, null, c(i.cols, (s) => (n(), o("col", {
|
|
64
65
|
style: w({ width: s.width })
|
|
65
66
|
}, null, 4))), 256)),
|
|
66
|
-
t[2] || (t[2] =
|
|
67
|
+
t[2] || (t[2] = e("col", { width: 40 }, null, -1))
|
|
67
68
|
]),
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
t[4] || (t[4] =
|
|
69
|
+
e("thead", null, [
|
|
70
|
+
e("tr", null, [
|
|
71
|
+
t[4] || (t[4] = e("th", null, null, -1)),
|
|
71
72
|
(n(!0), o(a, null, c(i.cols, (s) => (n(), o("th", B, [
|
|
72
|
-
|
|
73
|
+
e("div", I, [
|
|
73
74
|
C(h(s.title) + " ", 1),
|
|
74
|
-
s.info ? (n(), p(
|
|
75
|
+
s.info ? (n(), p(x, {
|
|
75
76
|
key: 0,
|
|
76
77
|
content: s.info,
|
|
77
78
|
placement: "bottom",
|
|
78
79
|
effect: "light"
|
|
79
80
|
}, {
|
|
80
81
|
default: g(() => [...t[3] || (t[3] = [
|
|
81
|
-
|
|
82
|
+
e("i", { class: "i-ri-question-line op-70" }, null, -1)
|
|
82
83
|
])]),
|
|
83
84
|
_: 1
|
|
84
85
|
}, 8, ["content"])) : y("", !0)
|
|
85
86
|
])
|
|
86
87
|
]))), 256)),
|
|
87
|
-
t[5] || (t[5] =
|
|
88
|
+
t[5] || (t[5] = e("th", { align: "right" }, null, -1))
|
|
88
89
|
])
|
|
89
90
|
]),
|
|
90
|
-
(n(), p(
|
|
91
|
+
(n(), p(_(i.limit > 1 ? "a-draggable" : "span"), v({ tag: "tbody" }, i.limit > 1 ? { filter: ".del", handle: ".sort", list: i.list, onChange: u.change } : {}), {
|
|
91
92
|
default: g(() => [
|
|
92
93
|
(n(!0), o(a, null, c(i.list, (s, m) => (n(), o("tr", null, [
|
|
93
|
-
t[7] || (t[7] =
|
|
94
|
-
|
|
94
|
+
t[7] || (t[7] = e("td", null, [
|
|
95
|
+
e("div", {
|
|
95
96
|
class: "sort op-70",
|
|
96
97
|
title: "拖动排序"
|
|
97
98
|
}, [
|
|
98
|
-
|
|
99
|
+
e("i", { class: "i-ri-menu-line" })
|
|
99
100
|
])
|
|
100
101
|
], -1)),
|
|
101
102
|
(n(!0), o(a, null, c(i.cols, (d) => (n(), o("td", null, [
|
|
102
|
-
(n(), p(
|
|
103
|
-
clearable: d.clearable ??
|
|
103
|
+
(n(), p(V, {
|
|
104
|
+
clearable: d.clearable ?? l.init.clearable ?? !1,
|
|
104
105
|
cols: i.cols,
|
|
105
106
|
index: m,
|
|
106
107
|
key: i.key,
|
|
107
108
|
prop: d,
|
|
108
|
-
"onUpdate:modelValue": (
|
|
109
|
+
"onUpdate:modelValue": (k) => u.change2(k, m, d),
|
|
109
110
|
"model-value": d.field ? s[d.field] : s
|
|
110
111
|
}, null, 8, ["clearable", "cols", "index", "prop", "onUpdate:modelValue", "model-value"]))
|
|
111
112
|
]))), 256)),
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
e("td", null, [
|
|
114
|
+
e("div", {
|
|
114
115
|
title: "删除",
|
|
115
116
|
class: "del op-70 flex",
|
|
116
117
|
onClick: (d) => u.del(m)
|
|
117
118
|
}, [...t[6] || (t[6] = [
|
|
118
|
-
|
|
119
|
+
e("i", { class: "i-ri-delete-bin-line" }, null, -1)
|
|
119
120
|
])], 8, E)
|
|
120
121
|
])
|
|
121
122
|
]))), 256))
|
|
@@ -125,16 +126,16 @@ function N(r, t, e, b, i, u) {
|
|
|
125
126
|
]),
|
|
126
127
|
i.list.length < i.limit ? (n(), o("div", {
|
|
127
128
|
key: 0,
|
|
128
|
-
class: j(["add flex justify-center items-center info-hide", { "add-small":
|
|
129
|
+
class: j(["add flex justify-center items-center info-hide", { "add-small": l.init.size === "small" }]),
|
|
129
130
|
onClick: t[0] || (t[0] = (...s) => u.add && u.add(...s))
|
|
130
131
|
}, [
|
|
131
|
-
t[8] || (t[8] =
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
t[8] || (t[8] = e("i", { class: "i-ri-add-line font-xl" }, null, -1)),
|
|
133
|
+
e("span", null, h(i.config.text), 1),
|
|
134
|
+
e("span", F, "(" + h(i.list.length) + "/" + h(i.limit) + ")", 1)
|
|
134
135
|
], 2)) : y("", !0)
|
|
135
136
|
]);
|
|
136
137
|
}
|
|
137
|
-
const U = /* @__PURE__ */ O(T, [["render", N], ["__scopeId", "data-v-
|
|
138
|
+
const U = /* @__PURE__ */ O(T, [["render", N], ["__scopeId", "data-v-d109974e"]]);
|
|
138
139
|
export {
|
|
139
140
|
U as default
|
|
140
141
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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-
|
|
2
|
+
import { _ as x } from "./index-CQE7gaAd.js";
|
|
3
3
|
const w = {
|
|
4
4
|
name: "group-tabs",
|
|
5
5
|
components: {
|
|
6
|
-
inputItem: j(() => import("./input-item-
|
|
6
|
+
inputItem: j(() => import("./input-item-BlNqPMgV.js"))
|
|
7
7
|
},
|
|
8
8
|
emits: ["change", "update:modelValue"],
|
|
9
9
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { _ as A } from "./index-CQE7gaAd.js";
|
|
3
3
|
function U(e, t) {
|
|
4
4
|
if (t <= 0 || t >= e.length) return [...e];
|
|
5
5
|
const i = [...e];
|
|
@@ -13,7 +13,7 @@ function O(e, t) {
|
|
|
13
13
|
const B = {
|
|
14
14
|
name: "group-tabs-plus",
|
|
15
15
|
components: {
|
|
16
|
-
inputItem: z(() => import("./input-item-
|
|
16
|
+
inputItem: z(() => import("./input-item-BlNqPMgV.js"))
|
|
17
17
|
},
|
|
18
18
|
emits: ["change", "update:modelValue"],
|
|
19
19
|
props: {
|