kouxiangtang 0.0.74 → 0.0.75
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/{AttachmentUploader-DEqVy0BV.js → AttachmentUploader-yE0CafjV.js} +2 -2
- package/dist/{AttachmentUploader-DEqVy0BV.js.map → AttachmentUploader-yE0CafjV.js.map} +1 -1
- package/dist/{ImageUploader-DDKdZvMz.js → ImageUploader-CArPoF1a.js} +2 -2
- package/dist/{ImageUploader-DDKdZvMz.js.map → ImageUploader-CArPoF1a.js.map} +1 -1
- package/dist/{ImagesUploader-DdKVZz-O.js → ImagesUploader-1kZE13ma.js} +2 -2
- package/dist/{ImagesUploader-DdKVZz-O.js.map → ImagesUploader-1kZE13ma.js.map} +1 -1
- package/dist/{RichTextEditor-BLcDFDAF.js → RichTextEditor-BYSgcm0n.js} +2 -2
- package/dist/{RichTextEditor-BLcDFDAF.js.map → RichTextEditor-BYSgcm0n.js.map} +1 -1
- package/dist/{config-JeHx3pnY.js → config-B3nQ3Z0h.js} +3 -3
- package/dist/{config-JeHx3pnY.js.map → config-B3nQ3Z0h.js.map} +1 -1
- package/dist/{config-Bba3xS49.js → config-B7xb7MnK.js} +2 -2
- package/dist/{config-Bba3xS49.js.map → config-B7xb7MnK.js.map} +1 -1
- package/dist/{config-wR0cpENE.js → config-BbC6f8wy.js} +3 -3
- package/dist/{config-wR0cpENE.js.map → config-BbC6f8wy.js.map} +1 -1
- package/dist/{config-BljoYPoP.js → config-BiyjIyRo.js} +2 -2
- package/dist/{config-BljoYPoP.js.map → config-BiyjIyRo.js.map} +1 -1
- package/dist/{config-Bp_kyviv.js → config-BoOwGAbL.js} +2 -2
- package/dist/{config-Bp_kyviv.js.map → config-BoOwGAbL.js.map} +1 -1
- package/dist/{config-Krtl9QFi.js → config-BtSIrF85.js} +3 -3
- package/dist/{config-Krtl9QFi.js.map → config-BtSIrF85.js.map} +1 -1
- package/dist/{config-BZUYXt6Z.js → config-CH0IcUzi.js} +2 -2
- package/dist/{config-BZUYXt6Z.js.map → config-CH0IcUzi.js.map} +1 -1
- package/dist/{config-4ds6yglo.js → config-ChDoBN9N.js} +2 -2
- package/dist/{config-4ds6yglo.js.map → config-ChDoBN9N.js.map} +1 -1
- package/dist/{config-DG4klmx8.js → config-CmscKuCp.js} +2 -2
- package/dist/{config-DG4klmx8.js.map → config-CmscKuCp.js.map} +1 -1
- package/dist/{config-CIVHkCUa.js → config-D8p6n79M.js} +2 -2
- package/dist/{config-CIVHkCUa.js.map → config-D8p6n79M.js.map} +1 -1
- package/dist/{config-BYWEwL00.js → config-DCtk5JbJ.js} +2 -2
- package/dist/{config-BYWEwL00.js.map → config-DCtk5JbJ.js.map} +1 -1
- package/dist/{config-CF-_NU64.js → config-DDLjAjmt.js} +2 -2
- package/dist/{config-CF-_NU64.js.map → config-DDLjAjmt.js.map} +1 -1
- package/dist/{config-TvA1qG2B.js → config-DLdUVU90.js} +2 -2
- package/dist/{config-TvA1qG2B.js.map → config-DLdUVU90.js.map} +1 -1
- package/dist/{config-B_wZjj-h.js → config-DYfrlvvj.js} +2 -2
- package/dist/{config-B_wZjj-h.js.map → config-DYfrlvvj.js.map} +1 -1
- package/dist/{config-J6Vc0kpm.js → config-DfKaXv_b.js} +2 -2
- package/dist/{config-J6Vc0kpm.js.map → config-DfKaXv_b.js.map} +1 -1
- package/dist/{config-DX19pwaM.js → config-Dg6g24hX.js} +2 -2
- package/dist/{config-DX19pwaM.js.map → config-Dg6g24hX.js.map} +1 -1
- package/dist/{config-CnDy4teA.js → config-Do6YjNVx.js} +2 -2
- package/dist/{config-CnDy4teA.js.map → config-Do6YjNVx.js.map} +1 -1
- package/dist/{config-LLq5Cp6k.js → config-DvZaHKer.js} +2 -2
- package/dist/{config-LLq5Cp6k.js.map → config-DvZaHKer.js.map} +1 -1
- package/dist/{config-BGSdcdzT.js → config-SwWMU6oa.js} +2 -2
- package/dist/{config-BGSdcdzT.js.map → config-SwWMU6oa.js.map} +1 -1
- package/dist/{index-DWntuszc.js → index-B0NugZvo.js} +94 -94
- package/dist/{index-DWntuszc.js.map → index-B0NugZvo.js.map} +1 -1
- package/dist/kouxiangtang.js +1 -1
- package/dist/kouxiangtang.umd.cjs +3 -3
- package/dist/kouxiangtang.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { openBlock as u, createBlock as $, unref as m, createSlots as De, withCtx as w, renderSlot as J, createElementVNode as A, toDisplayString as j, resolveComponent as qe, withDirectives as _e, createElementBlock as S, normalizeStyle as Ke, createVNode as x, createTextVNode as N, computed as I, Fragment as L, renderList as H, ref as D, reactive as Oe, watch as P, resolveDynamicComponent as K, createCommentVNode as F, shallowRef as Z, defineAsyncComponent as Zn, normalizeClass as he, withModifiers as Rt, defineComponent as q, useSlots as Re, onMounted as dn, watchEffect as ht, pushScopeId as pn, popScopeId as fn, normalizeProps as Tt, guardReactiveProps as Ft, getCurrentScope as es, onScopeDispose as ts, getCurrentInstance as ns, nextTick as ss, useCssVars as os } from "vue";
|
|
2
2
|
import { ElCard as mn, ElLink as as, vLoading as ve, ElRow as xe, ElCol as $e, ElForm as hn, ElFormItem as st, ElAlert as rs, ElButton as ee, ElMessageBox as is, ElMessage as ke, ElDialog as ls, ElLoading as Be, ElInputNumber as Lt, ElSelect as Pt, ElOption as Ye, ElSelectV2 as us, ElDatePicker as jt, ElInput as cs, ElButtonGroup as pe, ElDropdown as ot, ElDropdownMenu as at, ElDropdownItem as ue, ElIcon as G, ElEmpty as ds, ElImage as gn, ElTable as ps, ElTableColumn as je, ElTooltip as yn, ElPagination as fs, ElText as Bt, ElTabs as _n, ElTabPane as vn, ElSubMenu as ms, ElMenuItem as hs, ElScrollbar as gs, ElMenu as ys, ElConfigProvider as _s, ElContainer as Nt, ElHeader as vs, ElAside as bs, ElMain as ws, ElCollapse as Es, ElCollapseItem as $s } from "element-plus";
|
|
3
|
-
import { useRoute as
|
|
3
|
+
import { useRoute as M, useRouter as fe } from "vue-router";
|
|
4
4
|
import { defineStore as gt, storeToRefs as ge } from "pinia";
|
|
5
5
|
function bn(t, e) {
|
|
6
6
|
return function() {
|
|
@@ -10,11 +10,11 @@ function bn(t, e) {
|
|
|
10
10
|
const { toString: Ss } = Object.prototype, { getPrototypeOf: yt } = Object, We = /* @__PURE__ */ ((t) => (e) => {
|
|
11
11
|
const n = Ss.call(e);
|
|
12
12
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
13
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
13
|
+
})(/* @__PURE__ */ Object.create(null)), ae = (t) => (t = t.toLowerCase(), (e) => We(e) === t), Qe = (t) => (e) => typeof e === t, { isArray: be } = Array, Ae = Qe("undefined");
|
|
14
14
|
function Os(t) {
|
|
15
15
|
return t !== null && !Ae(t) && t.constructor !== null && !Ae(t.constructor) && Y(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
16
16
|
}
|
|
17
|
-
const wn =
|
|
17
|
+
const wn = ae("ArrayBuffer");
|
|
18
18
|
function xs(t) {
|
|
19
19
|
let e;
|
|
20
20
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && wn(t.buffer), e;
|
|
@@ -24,11 +24,11 @@ const ks = Qe("string"), Y = Qe("function"), En = Qe("number"), Je = (t) => t !=
|
|
|
24
24
|
return !1;
|
|
25
25
|
const e = yt(t);
|
|
26
26
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
27
|
-
}, Cs =
|
|
27
|
+
}, Cs = ae("Date"), Ds = ae("File"), Rs = ae("Blob"), Ts = ae("FileList"), Fs = (t) => Je(t) && Y(t.pipe), Ls = (t) => {
|
|
28
28
|
let e;
|
|
29
29
|
return t && (typeof FormData == "function" && t instanceof FormData || Y(t.append) && ((e = We(t)) === "formdata" || // detect form-data instance
|
|
30
30
|
e === "object" && Y(t.toString) && t.toString() === "[object FormData]"));
|
|
31
|
-
}, Ps =
|
|
31
|
+
}, Ps = ae("URLSearchParams"), js = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
32
32
|
function Te(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
33
33
|
if (t === null || typeof t > "u")
|
|
34
34
|
return;
|
|
@@ -108,12 +108,12 @@ const Bs = (t, e, n, { allOwnKeys: s } = {}) => (Te(e, (o, a) => {
|
|
|
108
108
|
for (; (n = t.exec(e)) !== null; )
|
|
109
109
|
s.push(n);
|
|
110
110
|
return s;
|
|
111
|
-
}, Ws =
|
|
111
|
+
}, Ws = ae("HTMLFormElement"), Qs = (t) => t.toLowerCase().replace(
|
|
112
112
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
113
113
|
function(n, s, o) {
|
|
114
114
|
return s.toUpperCase() + o;
|
|
115
115
|
}
|
|
116
|
-
), It = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Js =
|
|
116
|
+
), It = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Js = ae("RegExp"), xn = (t, e) => {
|
|
117
117
|
const n = Object.getOwnPropertyDescriptors(t), s = {};
|
|
118
118
|
Te(n, (o, a) => {
|
|
119
119
|
let r;
|
|
@@ -173,7 +173,7 @@ const to = (t) => {
|
|
|
173
173
|
return s;
|
|
174
174
|
};
|
|
175
175
|
return n(t, 0);
|
|
176
|
-
}, no =
|
|
176
|
+
}, no = ae("AsyncFunction"), so = (t) => t && (Je(t) || Y(t)) && Y(t.then) && Y(t.catch), b = {
|
|
177
177
|
isArray: be,
|
|
178
178
|
isArrayBuffer: wn,
|
|
179
179
|
isBuffer: Os,
|
|
@@ -202,7 +202,7 @@ const to = (t) => {
|
|
|
202
202
|
inherits: Is,
|
|
203
203
|
toFlatObject: Vs,
|
|
204
204
|
kindOf: We,
|
|
205
|
-
kindOfTest:
|
|
205
|
+
kindOfTest: ae,
|
|
206
206
|
endsWith: Ms,
|
|
207
207
|
toArray: Us,
|
|
208
208
|
forEachEntry: Hs,
|
|
@@ -472,14 +472,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ho
|
|
|
472
472
|
hasBrowserEnv: Ln,
|
|
473
473
|
hasStandardBrowserEnv: fo,
|
|
474
474
|
hasStandardBrowserWebWorkerEnv: mo
|
|
475
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
475
|
+
}, Symbol.toStringTag, { value: "Module" })), oe = {
|
|
476
476
|
...ho,
|
|
477
477
|
...po
|
|
478
478
|
};
|
|
479
479
|
function go(t, e) {
|
|
480
|
-
return Ge(t, new
|
|
480
|
+
return Ge(t, new oe.classes.URLSearchParams(), Object.assign({
|
|
481
481
|
visitor: function(n, s, o, a) {
|
|
482
|
-
return
|
|
482
|
+
return oe.isNode && b.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
483
483
|
}
|
|
484
484
|
}, e));
|
|
485
485
|
}
|
|
@@ -572,8 +572,8 @@ const Fe = {
|
|
|
572
572
|
maxContentLength: -1,
|
|
573
573
|
maxBodyLength: -1,
|
|
574
574
|
env: {
|
|
575
|
-
FormData:
|
|
576
|
-
Blob:
|
|
575
|
+
FormData: oe.classes.FormData,
|
|
576
|
+
Blob: oe.classes.Blob
|
|
577
577
|
},
|
|
578
578
|
validateStatus: function(e) {
|
|
579
579
|
return e >= 200 && e < 300;
|
|
@@ -798,7 +798,7 @@ function xo(t, e, n) {
|
|
|
798
798
|
n
|
|
799
799
|
));
|
|
800
800
|
}
|
|
801
|
-
const ko =
|
|
801
|
+
const ko = oe.hasStandardBrowserEnv ? (
|
|
802
802
|
// Standard browser envs support document.cookie
|
|
803
803
|
{
|
|
804
804
|
write(t, e, n, s, o, a) {
|
|
@@ -834,7 +834,7 @@ function Co(t, e) {
|
|
|
834
834
|
function Bn(t, e) {
|
|
835
835
|
return t && !Ao(e) ? Co(t, e) : e;
|
|
836
836
|
}
|
|
837
|
-
const Do =
|
|
837
|
+
const Do = oe.hasStandardBrowserEnv ? (
|
|
838
838
|
// Standard browser envs have full support of the APIs needed to test
|
|
839
839
|
// whether the request URL is of the same origin as current location.
|
|
840
840
|
function() {
|
|
@@ -914,7 +914,7 @@ const Fo = typeof XMLHttpRequest < "u", Lo = Fo && function(t) {
|
|
|
914
914
|
}
|
|
915
915
|
let c;
|
|
916
916
|
if (b.isFormData(o)) {
|
|
917
|
-
if (
|
|
917
|
+
if (oe.hasStandardBrowserEnv || oe.hasStandardBrowserWebWorkerEnv)
|
|
918
918
|
a.setContentType(!1);
|
|
919
919
|
else if ((c = a.getContentType()) !== !1) {
|
|
920
920
|
const [f, ...v] = c ? c.split(";").map((p) => p.trim()).filter(Boolean) : [];
|
|
@@ -962,7 +962,7 @@ const Fo = typeof XMLHttpRequest < "u", Lo = Fo && function(t) {
|
|
|
962
962
|
t,
|
|
963
963
|
i
|
|
964
964
|
)), i = null;
|
|
965
|
-
},
|
|
965
|
+
}, oe.hasStandardBrowserEnv && (l && b.isFunction(l) && (l = l(t)), l || l !== !1 && Do(E))) {
|
|
966
966
|
const f = t.xsrfHeaderName && t.xsrfCookieName && ko.read(t.xsrfCookieName);
|
|
967
967
|
f && a.set(t.xsrfHeaderName, f);
|
|
968
968
|
}
|
|
@@ -972,7 +972,7 @@ const Fo = typeof XMLHttpRequest < "u", Lo = Fo && function(t) {
|
|
|
972
972
|
i && (s(!f || f.type ? new Le(null, t, i) : f), i.abort(), i = null);
|
|
973
973
|
}, t.cancelToken && t.cancelToken.subscribe(d), t.signal && (t.signal.aborted ? d() : t.signal.addEventListener("abort", d)));
|
|
974
974
|
const _ = Ro(E);
|
|
975
|
-
if (_ &&
|
|
975
|
+
if (_ && oe.protocols.indexOf(_) === -1) {
|
|
976
976
|
s(new R("Unsupported protocol " + _ + ":", R.ERR_BAD_REQUEST, t));
|
|
977
977
|
return;
|
|
978
978
|
}
|
|
@@ -1498,7 +1498,7 @@ async function Ho(t, e, n = {}) {
|
|
|
1498
1498
|
});
|
|
1499
1499
|
});
|
|
1500
1500
|
}
|
|
1501
|
-
const
|
|
1501
|
+
const ne = {
|
|
1502
1502
|
get: Mo,
|
|
1503
1503
|
post: Uo,
|
|
1504
1504
|
put: Ho,
|
|
@@ -1826,49 +1826,49 @@ class Ko {
|
|
|
1826
1826
|
console.log(`${this.side}/${this.domain} 不支持 ${Ve} 操作`);
|
|
1827
1827
|
return;
|
|
1828
1828
|
}
|
|
1829
|
-
return
|
|
1829
|
+
return ne.get(`${this.side}/${this.resources}`, e);
|
|
1830
1830
|
}
|
|
1831
1831
|
_getOne(e) {
|
|
1832
1832
|
if (!this.operations.includes(Me)) {
|
|
1833
1833
|
console.log(`${this.side}/${this.domain} 不支持 ${Me} 操作`);
|
|
1834
1834
|
return;
|
|
1835
1835
|
}
|
|
1836
|
-
return
|
|
1836
|
+
return ne.get(`${this.side}/${this.resources}/${e.id}`);
|
|
1837
1837
|
}
|
|
1838
1838
|
_create(e) {
|
|
1839
1839
|
if (!this.operations.includes(Ue)) {
|
|
1840
1840
|
console.log(`${this.side}/${this.domain} 不支持 ${Ue} 操作`);
|
|
1841
1841
|
return;
|
|
1842
1842
|
}
|
|
1843
|
-
return
|
|
1843
|
+
return ne.post(`${this.side}/${this.resources}`, e);
|
|
1844
1844
|
}
|
|
1845
1845
|
_update(e) {
|
|
1846
1846
|
if (!this.operations.includes(ze)) {
|
|
1847
1847
|
console.log(`${this.side}/${this.domain} 不支持 ${ze} 操作`);
|
|
1848
1848
|
return;
|
|
1849
1849
|
}
|
|
1850
|
-
return
|
|
1850
|
+
return ne.put(`${this.side}/${this.resources}/${e.id}`, e);
|
|
1851
1851
|
}
|
|
1852
1852
|
_remove(e) {
|
|
1853
1853
|
if (!this.operations.includes(me)) {
|
|
1854
1854
|
console.log(`${this.side}/${this.domain} 不支持 ${me} 操作`);
|
|
1855
1855
|
return;
|
|
1856
1856
|
}
|
|
1857
|
-
return
|
|
1857
|
+
return ne.remove(`${this.side}/${this.resources}/${e.id}`, e);
|
|
1858
1858
|
}
|
|
1859
1859
|
_restore(e) {
|
|
1860
1860
|
if (!this.operations.includes(dt)) {
|
|
1861
1861
|
console.log(`${this.side}/${this.domain} 不支持 ${dt} 操作`);
|
|
1862
1862
|
return;
|
|
1863
1863
|
}
|
|
1864
|
-
return
|
|
1864
|
+
return ne.put(`${this.side}/${this.resources}/${e.id}/restore`, e);
|
|
1865
1865
|
}
|
|
1866
1866
|
_enable(e) {
|
|
1867
1867
|
if (!this.operations.includes(me)) {
|
|
1868
1868
|
console.log(`${this.side}/${this.domain} 不支持 ${me} 操作`);
|
|
1869
1869
|
return;
|
|
1870
1870
|
}
|
|
1871
|
-
return
|
|
1871
|
+
return ne.put(`${this.side}/${this.resources}/${e.id}/switch`, e);
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
1874
|
class Yo {
|
|
@@ -1877,10 +1877,10 @@ class Yo {
|
|
|
1877
1877
|
}
|
|
1878
1878
|
getList(e) {
|
|
1879
1879
|
let n = e;
|
|
1880
|
-
return this.listQuerys && (n = { ...this.listQuerys, ...e }),
|
|
1880
|
+
return this.listQuerys && (n = { ...this.listQuerys, ...e }), ne.get(`${this.side}/${this.resources}`, n);
|
|
1881
1881
|
}
|
|
1882
1882
|
getOne(e) {
|
|
1883
|
-
return
|
|
1883
|
+
return ne.get(`${this.side}/${this.resources}/${e.id}`);
|
|
1884
1884
|
}
|
|
1885
1885
|
}
|
|
1886
1886
|
const ol = {
|
|
@@ -2008,7 +2008,7 @@ const nt = {
|
|
|
2008
2008
|
component: { config: "component" }
|
|
2009
2009
|
};
|
|
2010
2010
|
async function Kt(t, e, n) {
|
|
2011
|
-
const s = await Xo(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-
|
|
2011
|
+
const s = await Xo(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-B3nQ3Z0h.js"), "./field/belongs-to/config.js": () => import("./config-CH0IcUzi.js"), "./field/boolean/config.js": () => import("./config-DDLjAjmt.js"), "./field/cascader/config.js": () => import("./config-Dg6g24hX.js"), "./field/component/config.js": () => import("./config-DYfrlvvj.js"), "./field/date/config.js": () => import("./config-BiyjIyRo.js"), "./field/datetime/config.js": () => import("./config-SwWMU6oa.js"), "./field/image/config.js": () => import("./config-BtSIrF85.js"), "./field/images/config.js": () => import("./config-DLdUVU90.js"), "./field/json/config.js": () => import("./config-DfKaXv_b.js"), "./field/radio-group/config.js": () => import("./config-B7xb7MnK.js"), "./field/rich-text/config.js": () => import("./config-BbC6f8wy.js"), "./field/row-id/config.js": () => import("./config-Do6YjNVx.js"), "./field/select/config.js": () => import("./config-D8p6n79M.js"), "./field/string/config.js": () => import("./config-CmscKuCp.js"), "./field/switch/config.js": () => import("./config-ChDoBN9N.js"), "./field/text/config.js": () => import("./config-DCtk5JbJ.js"), "./field/time/config.js": () => import("./config-BoOwGAbL.js"), "./field/tree-select/config.js": () => import("./config-DvZaHKer.js") }), `./field/${t}/config.js`, 4);
|
|
2012
2012
|
return new s.default(e, n);
|
|
2013
2013
|
}
|
|
2014
2014
|
function Yt(t, e = "unknown") {
|
|
@@ -2384,7 +2384,7 @@ const ba = {
|
|
|
2384
2384
|
},
|
|
2385
2385
|
emits: ["submit", "remove"],
|
|
2386
2386
|
setup(t, { emit: e }) {
|
|
2387
|
-
const n =
|
|
2387
|
+
const n = M(), s = W(n), o = e, a = D(!1), r = t, l = ft(r.config.formLayout || []), d = Oe({ ...r.data }), g = D(null), c = r.config.fields.filter((y) => y.rules).reduce((y, O) => (y[O.code] = k(O.rules), y), {}), i = I(h), E = I(() => r.config.fields.filter((y) => {
|
|
2388
2388
|
const O = y.editable(d, s), C = y.visible(d, s);
|
|
2389
2389
|
return y.disabled = C && !O, O || C;
|
|
2390
2390
|
}));
|
|
@@ -2398,11 +2398,11 @@ const ba = {
|
|
|
2398
2398
|
}
|
|
2399
2399
|
async function f() {
|
|
2400
2400
|
await g.value.validate(async (y, O) => {
|
|
2401
|
-
var
|
|
2401
|
+
var se, V;
|
|
2402
2402
|
if (!y)
|
|
2403
2403
|
return console.log("error submit!", O), !1;
|
|
2404
|
-
const C = (
|
|
2405
|
-
if (C && (Q[C] = (
|
|
2404
|
+
const C = (se = r.config.fields.find((re) => ["images", "attachments", "attachment"].includes(re.type))) == null ? void 0 : se.code, Q = { ...d };
|
|
2405
|
+
if (C && (Q[C] = (V = Q[C]) == null ? void 0 : V.map((re) => re.id)), r.config.submitConfirm) {
|
|
2406
2406
|
await r.config.submitConfirm(Q) && _(Q);
|
|
2407
2407
|
return;
|
|
2408
2408
|
}
|
|
@@ -2438,16 +2438,16 @@ const ba = {
|
|
|
2438
2438
|
return P(
|
|
2439
2439
|
() => ({ ...d }),
|
|
2440
2440
|
(y, O) => {
|
|
2441
|
-
const Q = Object.keys(y).filter((
|
|
2442
|
-
var
|
|
2443
|
-
return (
|
|
2444
|
-
field:
|
|
2445
|
-
newValue: y[
|
|
2446
|
-
oldValue: O[
|
|
2441
|
+
const Q = Object.keys(y).filter((V) => O[V] !== y[V]).map((V) => {
|
|
2442
|
+
var re;
|
|
2443
|
+
return (re = g.value) == null || re.clearValidate(V), {
|
|
2444
|
+
field: V,
|
|
2445
|
+
newValue: y[V],
|
|
2446
|
+
oldValue: O[V]
|
|
2447
2447
|
};
|
|
2448
2448
|
});
|
|
2449
|
-
E.value.filter((
|
|
2450
|
-
|
|
2449
|
+
E.value.filter((V) => !V.disabled).forEach((V) => {
|
|
2450
|
+
V.formChange && V.formChange(d, Q);
|
|
2451
2451
|
});
|
|
2452
2452
|
}
|
|
2453
2453
|
), P(
|
|
@@ -2534,7 +2534,7 @@ const ba = {
|
|
|
2534
2534
|
}
|
|
2535
2535
|
}, Oa = /* @__PURE__ */ B(Sa, [["__scopeId", "data-v-e33a452e"]]);
|
|
2536
2536
|
function xa() {
|
|
2537
|
-
return He().idempotentUrl ?
|
|
2537
|
+
return He().idempotentUrl ? ne.get(He().idempotentUrl).then((t) => t.data) : "";
|
|
2538
2538
|
}
|
|
2539
2539
|
const Se = {
|
|
2540
2540
|
getValue: xa
|
|
@@ -2560,7 +2560,7 @@ const Se = {
|
|
|
2560
2560
|
},
|
|
2561
2561
|
emits: ["update:modelValue", "submit", "remove"],
|
|
2562
2562
|
setup(t, { emit: e }) {
|
|
2563
|
-
const n =
|
|
2563
|
+
const n = M(), s = W(n), o = e, a = t, r = D(a.data), l = I(() => ({ ...r.value, idempotentToken: g.value })), d = I(() => a.config.fields.filter((f) => f.visible(l, s)).length >= 6 ? "60%" : "40%"), g = D(""), c = I({
|
|
2564
2564
|
get() {
|
|
2565
2565
|
return a.modelValue;
|
|
2566
2566
|
},
|
|
@@ -2638,7 +2638,7 @@ const Se = {
|
|
|
2638
2638
|
}
|
|
2639
2639
|
},
|
|
2640
2640
|
setup(t) {
|
|
2641
|
-
const e = t, n = D(e.row), s = D(!1), o = Z(null), a =
|
|
2641
|
+
const e = t, n = D(e.row), s = D(!1), o = Z(null), a = M(), r = W(a), l = sa("simple", {
|
|
2642
2642
|
simple: !0,
|
|
2643
2643
|
code: e.code,
|
|
2644
2644
|
fields: e.fields
|
|
@@ -2714,13 +2714,13 @@ const Se = {
|
|
|
2714
2714
|
},
|
|
2715
2715
|
emits: ["update:modelValue"],
|
|
2716
2716
|
setup(t, { emit: e }) {
|
|
2717
|
-
const n = Zn(() => import("./ImagesUploader-
|
|
2717
|
+
const n = Zn(() => import("./ImagesUploader-1kZE13ma.js")), s = He().fileUploadUrl, o = e, a = t, r = Oe({ value: a.modelValue }), l = a.field.converter;
|
|
2718
2718
|
function d(c) {
|
|
2719
2719
|
const i = r.value.findIndex((E) => E.id === c.id);
|
|
2720
2720
|
i >= 0 && (r.value.splice(i, 1), o("update:modelValue", r.value));
|
|
2721
2721
|
}
|
|
2722
2722
|
function g(c) {
|
|
2723
|
-
Be.service({ text: "上传中,请稍后", background: "rgba(0,0,0,0.3)" }),
|
|
2723
|
+
Be.service({ text: "上传中,请稍后", background: "rgba(0,0,0,0.3)" }), ne.post(s, c).then((i) => {
|
|
2724
2724
|
Be.service().close(), ke({
|
|
2725
2725
|
message: "上传成功",
|
|
2726
2726
|
type: "success"
|
|
@@ -2955,7 +2955,7 @@ const Ta = { class: "sorters-box" }, Fa = ["onClick"], La = { class: "sorters-la
|
|
|
2955
2955
|
}
|
|
2956
2956
|
},
|
|
2957
2957
|
setup(t) {
|
|
2958
|
-
const e = t, n =
|
|
2958
|
+
const e = t, n = M(), s = W(n), o = D([]), a = Oe({}), r = Oe({}), l = Pe(
|
|
2959
2959
|
e.settings.code,
|
|
2960
2960
|
n.path,
|
|
2961
2961
|
e.settings.filters,
|
|
@@ -3004,9 +3004,9 @@ const Ta = { class: "sorters-box" }, Fa = ["onClick"], La = { class: "sorters-la
|
|
|
3004
3004
|
...p.options.query,
|
|
3005
3005
|
[O]: h
|
|
3006
3006
|
}).then((Q) => {
|
|
3007
|
-
r[p.code] = Q.data.rows.map((
|
|
3008
|
-
code:
|
|
3009
|
-
name:
|
|
3007
|
+
r[p.code] = Q.data.rows.map((se) => ({
|
|
3008
|
+
code: se[p.options.data.value] || se.id,
|
|
3009
|
+
name: se[p.options.data.label] || se.name
|
|
3010
3010
|
}));
|
|
3011
3011
|
});
|
|
3012
3012
|
}
|
|
@@ -3471,7 +3471,7 @@ const br = { class: "data-page-title" }, wr = { class: "title" }, Er = { class:
|
|
|
3471
3471
|
}
|
|
3472
3472
|
},
|
|
3473
3473
|
setup(t) {
|
|
3474
|
-
const e = t, n = e.tableName ? e.tableName : e.settings.name, s =
|
|
3474
|
+
const e = t, n = e.tableName ? e.tableName : e.settings.name, s = M(), o = ce(), a = Pe(
|
|
3475
3475
|
e.settings.code,
|
|
3476
3476
|
s.path,
|
|
3477
3477
|
e.settings.filters,
|
|
@@ -3611,7 +3611,7 @@ const br = { class: "data-page-title" }, wr = { class: "title" }, Er = { class:
|
|
|
3611
3611
|
}
|
|
3612
3612
|
},
|
|
3613
3613
|
setup(t) {
|
|
3614
|
-
const e = Re(), n =
|
|
3614
|
+
const e = Re(), n = M(), s = t, o = n.meta.side, a = I(() => s.row[s.field.code]), r = I(() => ({
|
|
3615
3615
|
path: `/${o}/${s.field.domain}/${a.value}`,
|
|
3616
3616
|
query: { ...W(n), ...s.field.rowQuery(s.row) }
|
|
3617
3617
|
}));
|
|
@@ -3701,7 +3701,7 @@ const Tr = {
|
|
|
3701
3701
|
},
|
|
3702
3702
|
setup(t) {
|
|
3703
3703
|
var _;
|
|
3704
|
-
const e = St(), n = ce(), s =
|
|
3704
|
+
const e = St(), n = ce(), s = M(), o = fe(), a = W(s), r = t, l = D({}), d = D(!1), g = I(() => {
|
|
3705
3705
|
var f, v;
|
|
3706
3706
|
return r.row.deletedAt ? !1 : (f = r.operations) != null && f.updatable ? !0 : !!((v = r.operations) != null && v.removable);
|
|
3707
3707
|
}), c = D((_ = r.operations) == null ? void 0 : _.removable);
|
|
@@ -3774,7 +3774,7 @@ const Tr = {
|
|
|
3774
3774
|
}
|
|
3775
3775
|
},
|
|
3776
3776
|
setup(t) {
|
|
3777
|
-
const e =
|
|
3777
|
+
const e = M(), n = W(e), s = Re(), o = t, a = Pe(
|
|
3778
3778
|
o.settings.code,
|
|
3779
3779
|
e.path,
|
|
3780
3780
|
o.settings.filters,
|
|
@@ -3940,7 +3940,7 @@ const qr = {
|
|
|
3940
3940
|
},
|
|
3941
3941
|
emits: ["sort-column", "select-change", "enable-item"],
|
|
3942
3942
|
setup(t, { emit: e }) {
|
|
3943
|
-
const n =
|
|
3943
|
+
const n = M(), s = W(n), o = e, a = Re(), r = t, l = Pe(
|
|
3944
3944
|
r.settings.code,
|
|
3945
3945
|
n.path,
|
|
3946
3946
|
r.settings.filters,
|
|
@@ -4114,7 +4114,7 @@ const qr = {
|
|
|
4114
4114
|
}
|
|
4115
4115
|
},
|
|
4116
4116
|
setup(t) {
|
|
4117
|
-
const e = ce(), n =
|
|
4117
|
+
const e = ce(), n = M(), s = W(n), o = t, a = D({}), r = D(!1), l = D(!1);
|
|
4118
4118
|
async function d() {
|
|
4119
4119
|
var i;
|
|
4120
4120
|
return await ((i = o.operations) == null ? void 0 : i.creatable);
|
|
@@ -4336,7 +4336,7 @@ const qr = {
|
|
|
4336
4336
|
},
|
|
4337
4337
|
emits: ["page-change"],
|
|
4338
4338
|
setup(t, { emit: e }) {
|
|
4339
|
-
const n = e, s = fe(), o =
|
|
4339
|
+
const n = e, s = fe(), o = M(), a = t, r = D(a.page), l = D(a.size), d = D(a.total), g = D(a.pageSizes);
|
|
4340
4340
|
P(
|
|
4341
4341
|
() => a.total,
|
|
4342
4342
|
(E) => {
|
|
@@ -4490,59 +4490,59 @@ const fi = {
|
|
|
4490
4490
|
setup(t) {
|
|
4491
4491
|
var Ct, Dt;
|
|
4492
4492
|
os((T) => ({
|
|
4493
|
-
"
|
|
4493
|
+
"0ecfde47": Xn.value
|
|
4494
4494
|
}));
|
|
4495
|
-
const e =
|
|
4495
|
+
const e = M(), n = W(e), s = t, o = Pe(
|
|
4496
4496
|
s.settings.code,
|
|
4497
4497
|
e.path,
|
|
4498
4498
|
s.settings.filters,
|
|
4499
4499
|
s.settings.filterHook
|
|
4500
4500
|
)(), { filters: a } = ge(o), r = (Ct = s == null ? void 0 : s.hasMany) == null ? void 0 : Ct.tableName;
|
|
4501
4501
|
P(a, (T) => {
|
|
4502
|
-
h.value = T,
|
|
4502
|
+
h.value = T, V();
|
|
4503
4503
|
});
|
|
4504
4504
|
const l = ce(), { created: d, updated: g, removed: c } = ge(l);
|
|
4505
|
-
P([d, g, c], ([T, U,
|
|
4506
|
-
(T || U ||
|
|
4505
|
+
P([d, g, c], ([T, U, te]) => {
|
|
4506
|
+
(T || U || te) && V();
|
|
4507
4507
|
});
|
|
4508
4508
|
const i = D(!0), E = D([]), k = D(0), _ = D({}), f = D({}), v = D(null), p = D(null), h = D({}), y = D(parseInt(e.query.pageSize) || 30), O = D(parseInt(e.query.page) || 1), C = (Dt = s.hasMany) == null ? void 0 : Dt.tableContentHeight;
|
|
4509
4509
|
function Q(T) {
|
|
4510
4510
|
let U = null;
|
|
4511
4511
|
if (T.order === "ascending" ? U = "ASC" : T.order === "descending" && (U = "DESC"), h.value.sorters) {
|
|
4512
|
-
let
|
|
4512
|
+
let te = [];
|
|
4513
4513
|
h.value.sorters.some((ie) => ie.field === T.prop) ? h.value.sorters.forEach((ie) => {
|
|
4514
|
-
ie.field === T.prop && (ie.order = U, ie.name ||
|
|
4515
|
-
}) :
|
|
4514
|
+
ie.field === T.prop && (ie.order = U, ie.name || te.push(ie)), ie.name && te.push(ie);
|
|
4515
|
+
}) : te = [
|
|
4516
4516
|
...h.value.sorters,
|
|
4517
4517
|
{ field: T.prop, order: U }
|
|
4518
|
-
], h.value.sorters =
|
|
4518
|
+
], h.value.sorters = te;
|
|
4519
4519
|
} else
|
|
4520
4520
|
h.value.sorters = [{ field: T.prop, order: U }];
|
|
4521
|
-
|
|
4521
|
+
V();
|
|
4522
4522
|
}
|
|
4523
|
-
function
|
|
4523
|
+
function se() {
|
|
4524
4524
|
f.value = s.settings.operations(n);
|
|
4525
4525
|
}
|
|
4526
|
-
function
|
|
4526
|
+
function V(T) {
|
|
4527
4527
|
i.value = !0;
|
|
4528
|
-
const
|
|
4528
|
+
const U = {
|
|
4529
4529
|
...h.value,
|
|
4530
4530
|
...n,
|
|
4531
4531
|
...s.query,
|
|
4532
|
-
page: O.value,
|
|
4532
|
+
page: T == "again" ? O.value - 1 : O.value,
|
|
4533
4533
|
size: y.value
|
|
4534
4534
|
};
|
|
4535
|
-
s.settings.rest.getList(
|
|
4536
|
-
_.value.data = [], E.value =
|
|
4535
|
+
s.settings.rest.getList(U).then((te) => {
|
|
4536
|
+
_.value.data = [], E.value = te.data.rows, k.value = te.data.count, i.value = !1, k.value && E.value.length == 0 && V("again");
|
|
4537
4537
|
});
|
|
4538
4538
|
}
|
|
4539
|
-
function
|
|
4540
|
-
O.value = T.page, y.value = T.size,
|
|
4539
|
+
function re(T) {
|
|
4540
|
+
O.value = T.page, y.value = T.size, V();
|
|
4541
4541
|
}
|
|
4542
4542
|
function xt(T) {
|
|
4543
4543
|
const U = { id: T.id, enable: !T.enable };
|
|
4544
4544
|
s.settings.rest.enable(U).then(() => {
|
|
4545
|
-
|
|
4545
|
+
V();
|
|
4546
4546
|
});
|
|
4547
4547
|
}
|
|
4548
4548
|
function Kn(T) {
|
|
@@ -4571,7 +4571,7 @@ const fi = {
|
|
|
4571
4571
|
At.value = ((U = T[0]) == null ? void 0 : U.contentRect.height) || 0;
|
|
4572
4572
|
});
|
|
4573
4573
|
const Xn = I(() => C && k.value > 0 ? `${C}px` : `calc(100% - ${kt.value + At.value}px)`);
|
|
4574
|
-
return
|
|
4574
|
+
return se(), (T, U) => (u(), S("div", {
|
|
4575
4575
|
key: s.settings.code,
|
|
4576
4576
|
style: { height: "100%" }
|
|
4577
4577
|
}, [
|
|
@@ -4610,10 +4610,10 @@ const fi = {
|
|
|
4610
4610
|
}, De({ _: 2 }, [
|
|
4611
4611
|
s.settings.rowActions(m(n)).length > 0 ? {
|
|
4612
4612
|
name: "actions",
|
|
4613
|
-
fn: w(({ row:
|
|
4613
|
+
fn: w(({ row: te }) => [
|
|
4614
4614
|
x(qn, {
|
|
4615
4615
|
mode: "list",
|
|
4616
|
-
row:
|
|
4616
|
+
row: te,
|
|
4617
4617
|
settings: s.settings,
|
|
4618
4618
|
query: m(n)
|
|
4619
4619
|
}, null, 8, ["row", "settings", "query"])
|
|
@@ -4631,12 +4631,12 @@ const fi = {
|
|
|
4631
4631
|
page: O.value,
|
|
4632
4632
|
size: y.value,
|
|
4633
4633
|
total: k.value,
|
|
4634
|
-
onPageChange:
|
|
4634
|
+
onPageChange: re
|
|
4635
4635
|
}, null, 8, ["page", "size", "total"])
|
|
4636
4636
|
], 512)
|
|
4637
4637
|
]));
|
|
4638
4638
|
}
|
|
4639
|
-
}, Qn = /* @__PURE__ */ B(fi, [["__scopeId", "data-v-
|
|
4639
|
+
}, Qn = /* @__PURE__ */ B(fi, [["__scopeId", "data-v-4a31051d"]]);
|
|
4640
4640
|
/*! Element Plus v2.7.2 */
|
|
4641
4641
|
var mi = {
|
|
4642
4642
|
name: "zh-cn",
|
|
@@ -4840,7 +4840,7 @@ const hi = {
|
|
|
4840
4840
|
}
|
|
4841
4841
|
},
|
|
4842
4842
|
setup(t) {
|
|
4843
|
-
const e = fe(), n =
|
|
4843
|
+
const e = fe(), n = M(), s = St(), o = D("首页"), a = t, r = n.fullPath.split("/")[1], l = k();
|
|
4844
4844
|
s.setupRootPath("首页", `/${r}/home`);
|
|
4845
4845
|
function d(_) {
|
|
4846
4846
|
var y, O;
|
|
@@ -5120,7 +5120,7 @@ const hi = {
|
|
|
5120
5120
|
}
|
|
5121
5121
|
},
|
|
5122
5122
|
setup(t) {
|
|
5123
|
-
const e = fe(), n =
|
|
5123
|
+
const e = fe(), n = M(), s = D(n.fullPath), o = t, a = n.fullPath.split("/")[1], r = o.sideMenus[a];
|
|
5124
5124
|
return P(
|
|
5125
5125
|
() => e.currentRoute.value,
|
|
5126
5126
|
() => {
|
|
@@ -5157,7 +5157,7 @@ const hi = {
|
|
|
5157
5157
|
}
|
|
5158
5158
|
},
|
|
5159
5159
|
setup(t) {
|
|
5160
|
-
const e =
|
|
5160
|
+
const e = M(), n = t, s = { ...He(), ...n.config }, o = I(() => e.params.domain ? e.params.domain : e.fullPath);
|
|
5161
5161
|
return (a, r) => {
|
|
5162
5162
|
const l = qe("router-view");
|
|
5163
5163
|
return u(), $(m(_s), { locale: m(mi) }, {
|
|
@@ -5213,7 +5213,7 @@ const hi = {
|
|
|
5213
5213
|
}
|
|
5214
5214
|
},
|
|
5215
5215
|
setup(t) {
|
|
5216
|
-
const e = t, n =
|
|
5216
|
+
const e = t, n = M(), s = n.meta.side, o = e.domain || n.params.domain, a = Z(null);
|
|
5217
5217
|
return Et(s, o).then((r) => {
|
|
5218
5218
|
a.value = r;
|
|
5219
5219
|
}), (r, l) => a.value ? (u(), $(Qn, {
|
|
@@ -5238,7 +5238,7 @@ const hi = {
|
|
|
5238
5238
|
},
|
|
5239
5239
|
emits: ["done"],
|
|
5240
5240
|
setup(t, { emit: e }) {
|
|
5241
|
-
const n = e, s = t, o =
|
|
5241
|
+
const n = e, s = t, o = M(), a = W(o), r = ce(), { updated: l } = ge(r), d = D(null), g = [
|
|
5242
5242
|
"image",
|
|
5243
5243
|
"images",
|
|
5244
5244
|
"attachments",
|
|
@@ -5372,7 +5372,7 @@ const hi = {
|
|
|
5372
5372
|
emits: ["get-item"],
|
|
5373
5373
|
setup(t, { emit: e }) {
|
|
5374
5374
|
St();
|
|
5375
|
-
const n =
|
|
5375
|
+
const n = M(), s = W(n), o = t, a = D("加载中..."), r = D({});
|
|
5376
5376
|
function l(d) {
|
|
5377
5377
|
const g = o.settings;
|
|
5378
5378
|
if (g.displayMode.normalMode == "detail")
|
|
@@ -5423,7 +5423,7 @@ const hi = {
|
|
|
5423
5423
|
}
|
|
5424
5424
|
},
|
|
5425
5425
|
setup(t) {
|
|
5426
|
-
const e = fe(), n =
|
|
5426
|
+
const e = fe(), n = M(), s = W(n), o = t, a = D(""), r = Z(null);
|
|
5427
5427
|
function l(g) {
|
|
5428
5428
|
a.value = g.props.name, e.push({
|
|
5429
5429
|
name: `${n.meta.side}-association`,
|
|
@@ -5522,7 +5522,7 @@ const hi = {
|
|
|
5522
5522
|
},
|
|
5523
5523
|
setup(t) {
|
|
5524
5524
|
fe();
|
|
5525
|
-
const e =
|
|
5525
|
+
const e = M(), n = W(e), s = t, o = D(null);
|
|
5526
5526
|
function a(r) {
|
|
5527
5527
|
o.value = r;
|
|
5528
5528
|
}
|
|
@@ -5561,7 +5561,7 @@ const hi = {
|
|
|
5561
5561
|
}
|
|
5562
5562
|
},
|
|
5563
5563
|
setup(t) {
|
|
5564
|
-
const e = t, n =
|
|
5564
|
+
const e = t, n = M(), s = W(n), o = n.meta.side, a = e.domain || n.params.domain, r = Z(null), l = Z([]);
|
|
5565
5565
|
Et(o, a).then((g) => {
|
|
5566
5566
|
const c = g, i = d("has-many", c.hasMany(s)), E = d("has-one", c.hasOne(s));
|
|
5567
5567
|
r.value = c, l.value = E.concat(i);
|
|
@@ -5600,7 +5600,7 @@ const hi = {
|
|
|
5600
5600
|
}
|
|
5601
5601
|
},
|
|
5602
5602
|
setup(t) {
|
|
5603
|
-
const e =
|
|
5603
|
+
const e = M(), n = e.meta.side, s = W(e), o = t, a = Z(null);
|
|
5604
5604
|
return P(
|
|
5605
5605
|
() => e.params.association,
|
|
5606
5606
|
() => {
|
|
@@ -5662,7 +5662,7 @@ export {
|
|
|
5662
5662
|
vl as q,
|
|
5663
5663
|
ol as r,
|
|
5664
5664
|
W as s,
|
|
5665
|
-
|
|
5665
|
+
ne as t,
|
|
5666
5666
|
sa as u,
|
|
5667
5667
|
wl as v,
|
|
5668
5668
|
al as w,
|
|
@@ -5670,4 +5670,4 @@ export {
|
|
|
5670
5670
|
il as y,
|
|
5671
5671
|
ul as z
|
|
5672
5672
|
};
|
|
5673
|
-
//# sourceMappingURL=index-
|
|
5673
|
+
//# sourceMappingURL=index-B0NugZvo.js.map
|