dmx-admin-ui 1.2.219 → 1.2.221
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-tOiJXOua.js → editor-DJVNQhRh.js} +1 -1
- package/dist/{group-DmZvZkMF.js → group-mTykn5op.js} +2 -2
- package/dist/{group-table-CDErN-wG.js → group-table-BDYs9pnu.js} +2 -2
- package/dist/{group-tabs-BL2ukJcT.js → group-tabs-ClFFiD4g.js} +2 -2
- package/dist/{group-tabs-plus-Nw6WtP5B.js → group-tabs-plus-BQKTJDyS.js} +2 -2
- package/dist/{index-Cp82TOiB.js → index-tFNMJ7xz.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/input-item-CU2XgCHJ.js +4 -0
- package/package.json +1 -1
- package/types/admin.d.ts +2 -2
- package/dist/input-item-BgBUkKaL.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-tFNMJ7xz.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 f, resolveDynamicComponent as v, normalizeProps as x, guardReactiveProps as V, withCtx as z, Fragment as m, renderList as g, createElementVNode as o, createCommentVNode as u, normalizeStyle as b, toDisplayString as c, createTextVNode as C, defineAsyncComponent as T } from "vue";
|
|
2
|
-
import { _ as j } from "./index-
|
|
2
|
+
import { _ as j } from "./index-tFNMJ7xz.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-CU2XgCHJ.js"))
|
|
7
7
|
},
|
|
8
8
|
emits: ["change", "update:modelValue"],
|
|
9
9
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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-
|
|
2
|
+
import { _ as O } from "./index-tFNMJ7xz.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-CU2XgCHJ.js"))
|
|
7
7
|
},
|
|
8
8
|
emits: ["change", "update:modelValue"],
|
|
9
9
|
props: {
|
|
@@ -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-tFNMJ7xz.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-CU2XgCHJ.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-tFNMJ7xz.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-CU2XgCHJ.js"))
|
|
17
17
|
},
|
|
18
18
|
emits: ["change", "update:modelValue"],
|
|
19
19
|
props: {
|
|
@@ -5118,7 +5118,7 @@ const ul = /* @__PURE__ */ ne(ic, [["render", lc]]), oc = { class: "a-color-pick
|
|
|
5118
5118
|
},
|
|
5119
5119
|
emits: ["change", "update:modelValue", "relatedUpdate"],
|
|
5120
5120
|
setup(t, { expose: n, emit: i }) {
|
|
5121
|
-
const o = vt(() => import("./editor-
|
|
5121
|
+
const o = vt(() => import("./editor-DJVNQhRh.js")), l = vt(() => import("./group-tabs-plus-BQKTJDyS.js")), s = vt(() => import("./group-tabs-ClFFiD4g.js")), r = vt(() => import("./group-table-BDYs9pnu.js")), a = vt(() => import("./group-mTykn5op.js")), c = t, u = i, f = (k) => k ? Array.isArray(k) ? typeof k[0] == "object" ? k : k.map((F, q) => ({
|
|
5122
5122
|
label: F,
|
|
5123
5123
|
value: q
|
|
5124
5124
|
})) : typeof k == "object" ? Object.keys(k).map((F) => ({
|
|
@@ -5685,7 +5685,7 @@ const ul = /* @__PURE__ */ ne(ic, [["render", lc]]), oc = { class: "a-color-pick
|
|
|
5685
5685
|
}), S.value.forEach((D) => {
|
|
5686
5686
|
(D.hidden === !0 || D.hidden == 1 || D.hidden?.(U[D.field], U)) && (A.value[D.field] = !0), D.required ? (j[D.field] = [{ required: !0, message: `${D.title}不能为空` }], D.rules && (D.rules.constructor === Array ? j[D.field] = [...j[D.field], ...D.rules] : D.rules.constructor === Object && (j[D.field] = [...j[D.field], D.rules]))) : D.rules && (j[D.field] = D.rules);
|
|
5687
5687
|
const J = wt(U, D.field);
|
|
5688
|
-
typeof J < "u" && J !== null && D.type != "text" && D.type != "hidden" ? typeof D.format == "function" ? w[D.field] = D.format(J) : w[D.field] = JSON.parse(JSON.stringify(J)) : D.type == "hidden" ? Y.value[D.field] = J ?? D.value : D.type != "text" && (w[D.field] = (D.format ? D.format(D.value) : D.value) ?? "", D.value && ($.value[D.field] = D.value)), w[D.field] || (["number", "switch", "slider"].indexOf(D.type) > -1 ? w[D.field] = 0 : ["group", "group-table", "checkbox", "image-text", "times", "datetimes", "dates"].indexOf(D.type) > -1 && (D.type.indexOf("group") === -1 || D.limit > 1) && (w[D.field] = []));
|
|
5688
|
+
typeof J < "u" && J !== null && D.type != "text" && D.type != "hidden" ? typeof D.format == "function" ? w[D.field] = D.format(J) : w[D.field] = JSON.parse(JSON.stringify(J)) : D.type == "hidden" ? Y.value[D.field] = J ?? D.value : D.type != "text" && (w[D.field] = (D.format ? D.format(D.value) : D.value) ?? "", D.value !== void 0 && ($.value[D.field] = D.value)), w[D.field] || (["number", "switch", "slider"].indexOf(D.type) > -1 ? w[D.field] = 0 : ["group", "group-table", "checkbox", "image-text", "times", "datetimes", "dates"].indexOf(D.type) > -1 && (D.type.indexOf("group") === -1 || D.limit > 1) && (w[D.field] = []));
|
|
5689
5689
|
}), T.value = w, y.value = j, m.value = !1, B && p.value++, at(() => {
|
|
5690
5690
|
s("end", nt(), Qe());
|
|
5691
5691
|
});
|
|
@@ -7876,7 +7876,7 @@ const bd = /* @__PURE__ */ Ae({
|
|
|
7876
7876
|
_: 3
|
|
7877
7877
|
}, 16));
|
|
7878
7878
|
}
|
|
7879
|
-
}), _d = vt(() => import("./chart-BPcEWpVq.js")), wd = vt(() => import("./editor-
|
|
7879
|
+
}), _d = vt(() => import("./chart-BPcEWpVq.js")), wd = vt(() => import("./editor-DJVNQhRh.js")), Vi = { AdminTable: ur, AdminForm: hc, DataApi: vc, ASearch: il, AInputs: fl, InputButton: si, ASearchBox: sl, ATip: kc, ATextEdit: Ac, ACateText: Ic, ACascader: al, ATags: ul, ATime: Pc, AImage: Mc, AImageText: rl, AColorPicker: cl, ARegionPicker: dl, ARegionText: Fc, ARegionMap: Mn, ATextStatus: qc, ADraggable: bd, AChart: _d, AEditor: wd }, xd = {
|
|
7880
7880
|
methods: {
|
|
7881
7881
|
$getParent(t = "", n = this, i = 0) {
|
|
7882
7882
|
if (i >= 20 || !t || !n) return null;
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
package/types/admin.d.ts
CHANGED
|
@@ -329,11 +329,11 @@ interface AnyCol {
|
|
|
329
329
|
/** 操作按钮 */
|
|
330
330
|
interface ToolButton {
|
|
331
331
|
title?: string;
|
|
332
|
-
action: 'edit' | 'del' | 'detail' | ((row: Record<string, any>, index: number) => void) | { data
|
|
332
|
+
action: 'edit' | 'del' | 'detail' | ((row: Record<string, any>, index: number) => void) | { data?: Record<string, any>, url?: string,api:true|string } | adminTableFrom;
|
|
333
333
|
/** tabs索引 */
|
|
334
334
|
tab?: number | number[];
|
|
335
335
|
/** 是否显示确认框 */
|
|
336
|
-
confirm?: boolean;
|
|
336
|
+
confirm?: boolean|string;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
/** 操作栏列 */
|