@skyfox2000/webui 1.5.16 → 1.5.17
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/lib/assets/modules/{baseLayout-BTMzpIiV.js → baseLayout-Ei5LdC2W.js} +7 -7
- package/lib/assets/modules/{file-upload-d6wJYD_r.js → file-upload-BieNyJVf.js} +1 -1
- package/lib/assets/modules/{index-BsaUh4V0.js → index-BFaZP11X.js} +2 -2
- package/lib/assets/modules/{index-CxB0AuVY.js → index-BsXBIymP.js} +2 -2
- package/lib/assets/modules/{index-BhXS0TjD.js → index-DR6i71_f.js} +1 -1
- package/lib/assets/modules/{menuTabs-DZNVE3eg.js → menuTabs-CrjDOZJD.js} +2 -2
- package/lib/assets/modules/{toolIcon-B8bR-dPF.js → toolIcon-BRY0u0wl.js} +1 -1
- package/lib/assets/modules/{upload-template-CiWosjbL.js → upload-template-CrcqJ2R9.js} +395 -391
- package/lib/assets/modules/{uploadList-DHmkR_yd.js → uploadList-D7Y_29ML.js} +4 -4
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +6 -6
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +4 -4
- package/lib/es/MenuLayout/index.js +8 -8
- package/lib/es/TemplateFile/index.js +4 -4
- package/lib/es/UploadForm/index.js +9 -9
- package/lib/index.d.ts +1 -1
- package/lib/utils/form-validate.d.ts +1 -0
- package/lib/webui.es.js +72 -71
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/utils/form-validate.ts +10 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as ce, ref as R, computed as I, watch as $, resolveDirective as de, createElementBlock as m, openBlock as d, normalizeClass as z, unref as n, createElementVNode as w, withDirectives as b, createCommentVNode as y, createBlock as V, mergeProps as G, withCtx as v, createVNode as p, createTextVNode as E, toDisplayString as P, Fragment as pe, renderList as me } from "vue";
|
|
2
|
-
import { _ as H } from "./index-
|
|
3
|
-
import { a as B, _ as K } from "./toolIcon-
|
|
2
|
+
import { _ as H } from "./index-DR6i71_f.js";
|
|
3
|
+
import { a as B, _ as K } from "./toolIcon-BRY0u0wl.js";
|
|
4
4
|
import { httpPost as N, ResStatus as j } from "@skyfox2000/fapi";
|
|
5
|
-
import { L as X, u as Y, $ as a, v as fe, _ as he } from "./upload-template-
|
|
5
|
+
import { L as X, u as Y, $ as a, v as fe, _ as he } from "./upload-template-CrcqJ2R9.js";
|
|
6
6
|
import U from "vue-m-message";
|
|
7
7
|
import { Upload as J, Tag as we, Popconfirm as ve, Progress as xe } from "ant-design-vue";
|
|
8
|
-
import { U as r, f as be, p as W } from "./file-upload-
|
|
8
|
+
import { U as r, f as be, p as W } from "./file-upload-BieNyJVf.js";
|
|
9
9
|
import { combineParams as Z } from "@skyfox2000/microbase";
|
|
10
10
|
import "async-validator";
|
|
11
11
|
import "dayjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as V, defineAsyncComponent as J, ref as m, watch as K, onMounted as W, createElementBlock as x, openBlock as p, Fragment as z, createElementVNode as f, createVNode as N, toDisplayString as $, unref as l, createBlock as A, withKeys as v, normalizeClass as O, withModifiers as w, withCtx as L, createCommentVNode as q } from "vue";
|
|
2
2
|
import "ant-design-vue";
|
|
3
|
-
import { _ as D } from "../../assets/modules/toolIcon-
|
|
3
|
+
import { _ as D } from "../../assets/modules/toolIcon-BRY0u0wl.js";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import { $ as b } from "../../assets/modules/upload-template-
|
|
5
|
+
import { $ as b } from "../../assets/modules/upload-template-CrcqJ2R9.js";
|
|
6
6
|
import "vue-m-message";
|
|
7
|
-
import { _ as Q } from "../../assets/modules/index-
|
|
7
|
+
import { _ as Q } from "../../assets/modules/index-BsXBIymP.js";
|
|
8
8
|
import "@skyfox2000/microbase";
|
|
9
9
|
import "async-validator";
|
|
10
10
|
import "dayjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h, createBlock as o, openBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as y, unref as n, resolveDynamicComponent as I } from "vue";
|
|
2
|
-
import { _ as g } from "../../assets/modules/baseLayout-
|
|
3
|
-
import {
|
|
2
|
+
import { _ as g } from "../../assets/modules/baseLayout-Ei5LdC2W.js";
|
|
3
|
+
import { al as A, a as S } from "../../assets/modules/upload-template-CrcqJ2R9.js";
|
|
4
4
|
import "@skyfox2000/microbase";
|
|
5
5
|
import "@skyfox2000/fapi";
|
|
6
|
-
import
|
|
6
|
+
import b from "vue-m-message";
|
|
7
7
|
import "async-validator";
|
|
8
8
|
import "dayjs";
|
|
9
9
|
import "ant-design-vue";
|
|
@@ -14,15 +14,15 @@ const j = /* @__PURE__ */ f({
|
|
|
14
14
|
routes: {}
|
|
15
15
|
},
|
|
16
16
|
setup(a) {
|
|
17
|
-
const l = a, e =
|
|
17
|
+
const l = a, e = A(), p = S(), r = d("h-[calc(100vh-80px)]");
|
|
18
18
|
return _(
|
|
19
19
|
() => p.fullscreen,
|
|
20
20
|
(c) => {
|
|
21
21
|
r.value = c ? "h-[calc(100vh-40px)]" : "h-[calc(100vh-80px)]";
|
|
22
22
|
}
|
|
23
23
|
), v(() => {
|
|
24
|
-
|
|
25
|
-
}), (c,
|
|
24
|
+
b.closeAll();
|
|
25
|
+
}), (c, k) => {
|
|
26
26
|
const m = h("router-view");
|
|
27
27
|
return t(), o(g, {
|
|
28
28
|
routes: l.routes
|
package/lib/es/Error403/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, createBlock as n, openBlock as p, unref as r, withCtx as e, createVNode as m, createTextVNode as c, toDisplayString as a } from "vue";
|
|
2
|
-
import { r as s } from "../../assets/modules/upload-template-
|
|
2
|
+
import { r as s } from "../../assets/modules/upload-template-CrcqJ2R9.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|
package/lib/es/Error404/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, createBlock as n, openBlock as p, unref as e, withCtx as r, createVNode as m, createTextVNode as a, toDisplayString as c } from "vue";
|
|
2
|
-
import { r as u } from "../../assets/modules/upload-template-
|
|
2
|
+
import { r as u } from "../../assets/modules/upload-template-CrcqJ2R9.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as be, ref as p, computed as S, watch as H, onMounted as he, createBlock as Q, openBlock as f, unref as r, withCtx as D, renderSlot as W, createElementBlock as g, createCommentVNode as B, createElementVNode as b, createVNode as _, createTextVNode as J, toDisplayString as E, normalizeClass as Fe, Fragment as ie, renderList as ne } from "vue";
|
|
2
|
-
import { _ as Y } from "../../assets/modules/index-
|
|
2
|
+
import { _ as Y } from "../../assets/modules/index-DR6i71_f.js";
|
|
3
3
|
import { Modal as Ce, Upload as ce, Space as Ue } from "ant-design-vue";
|
|
4
4
|
import { httpGet as _e, ResStatus as de } from "@skyfox2000/fapi";
|
|
5
|
-
import { $ as a, H as Ee, a8 as Te,
|
|
5
|
+
import { $ as a, H as Ee, a8 as Te, af as Re } from "../../assets/modules/upload-template-CrcqJ2R9.js";
|
|
6
6
|
import m from "vue-m-message";
|
|
7
|
-
import { c as pe, _ as Z, h as Se, p as De, i as ke } from "../../assets/modules/index-
|
|
8
|
-
import { A as Pe, p as Le, U as ue } from "../../assets/modules/file-upload-
|
|
7
|
+
import { c as pe, _ as Z, h as Se, p as De, i as ke } from "../../assets/modules/index-BFaZP11X.js";
|
|
8
|
+
import { A as Pe, p as Le, U as ue } from "../../assets/modules/file-upload-BieNyJVf.js";
|
|
9
9
|
import "@skyfox2000/microbase";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "vue-draggable-next";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h, createBlock as o, openBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as I, unref as n, resolveDynamicComponent as g } from "vue";
|
|
2
|
-
import { _ as
|
|
3
|
-
import {
|
|
2
|
+
import { _ as y } from "../../assets/modules/baseLayout-Ei5LdC2W.js";
|
|
3
|
+
import { al as A, a as S } from "../../assets/modules/upload-template-CrcqJ2R9.js";
|
|
4
4
|
import "@skyfox2000/microbase";
|
|
5
5
|
import "@skyfox2000/fapi";
|
|
6
|
-
import
|
|
6
|
+
import k from "vue-m-message";
|
|
7
7
|
import "async-validator";
|
|
8
8
|
import "dayjs";
|
|
9
9
|
import "ant-design-vue";
|
|
@@ -14,18 +14,18 @@ const j = /* @__PURE__ */ f({
|
|
|
14
14
|
routes: {}
|
|
15
15
|
},
|
|
16
16
|
setup(a) {
|
|
17
|
-
const
|
|
17
|
+
const l = a, e = A(), p = S(), r = d("h-[calc(100vh-81px)]");
|
|
18
18
|
return _(
|
|
19
|
-
() =>
|
|
19
|
+
() => p.fullscreen,
|
|
20
20
|
(c) => {
|
|
21
21
|
r.value = c ? "h-[calc(100vh-40px)]" : "h-[calc(100vh-81px)]";
|
|
22
22
|
}
|
|
23
23
|
), v(() => {
|
|
24
|
-
|
|
24
|
+
k.closeAll();
|
|
25
25
|
}), (c, B) => {
|
|
26
26
|
const m = h("router-view");
|
|
27
|
-
return t(), o(
|
|
28
|
-
routes:
|
|
27
|
+
return t(), o(y, {
|
|
28
|
+
routes: l.routes
|
|
29
29
|
}, {
|
|
30
30
|
default: s(() => [
|
|
31
31
|
C("div", {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as T, ref as l, watch as x, onMounted as F, createBlock as C, openBlock as q, unref as u, withCtx as d, createVNode as f, createTextVNode as L, toDisplayString as b } from "vue";
|
|
2
|
-
import { _ as g } from "../../assets/modules/index-
|
|
2
|
+
import { _ as g } from "../../assets/modules/index-DR6i71_f.js";
|
|
3
3
|
import { Modal as D, Space as z } from "ant-design-vue";
|
|
4
4
|
import { httpPost as N, ResStatus as O } from "@skyfox2000/fapi";
|
|
5
|
-
import {
|
|
5
|
+
import { ao as n, $ as w } from "../../assets/modules/upload-template-CrcqJ2R9.js";
|
|
6
6
|
import "vue-m-message";
|
|
7
|
-
import { U as M } from "../../assets/modules/file-upload-
|
|
7
|
+
import { U as M } from "../../assets/modules/file-upload-BieNyJVf.js";
|
|
8
8
|
import "@skyfox2000/microbase";
|
|
9
9
|
import "async-validator";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
|
-
import { U as $ } from "../../assets/modules/uploadList-
|
|
12
|
+
import { U as $ } from "../../assets/modules/uploadList-D7Y_29ML.js";
|
|
13
13
|
const H = /* @__PURE__ */ T({
|
|
14
14
|
__name: "templateFile",
|
|
15
15
|
props: {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as F, ref as s, watch as y, onMounted as z, createBlock as D, openBlock as _, unref as u, withCtx as p, createVNode as m, mergeProps as L, createTextVNode as w, toDisplayString as C } from "vue";
|
|
2
|
-
import { _ as g } from "../../assets/modules/index-
|
|
2
|
+
import { _ as g } from "../../assets/modules/index-DR6i71_f.js";
|
|
3
3
|
import { Modal as k, Space as N } from "ant-design-vue";
|
|
4
4
|
import { ResStatus as T } from "@skyfox2000/fapi";
|
|
5
|
-
import { $ as v,
|
|
5
|
+
import { $ as v, ab as $ } from "../../assets/modules/upload-template-CrcqJ2R9.js";
|
|
6
6
|
import A from "vue-m-message";
|
|
7
7
|
import "@skyfox2000/microbase";
|
|
8
8
|
import "async-validator";
|
|
9
9
|
import "dayjs";
|
|
10
|
-
import { A as E } from "../../assets/modules/file-upload-
|
|
10
|
+
import { A as E } from "../../assets/modules/file-upload-BieNyJVf.js";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
|
-
import { U as B } from "../../assets/modules/uploadList-
|
|
12
|
+
import { U as B } from "../../assets/modules/uploadList-D7Y_29ML.js";
|
|
13
13
|
const W = /* @__PURE__ */ F({
|
|
14
14
|
__name: "uploadForm",
|
|
15
15
|
props: {
|
|
@@ -25,15 +25,15 @@ const W = /* @__PURE__ */ F({
|
|
|
25
25
|
upload: {}
|
|
26
26
|
},
|
|
27
27
|
emits: ["before:file-list", "before:upload", "after:upload", "on:progress"],
|
|
28
|
-
setup(U, { emit:
|
|
29
|
-
const e = U, o = e.uploadForm, d = s(!1),
|
|
28
|
+
setup(U, { emit: b }) {
|
|
29
|
+
const e = U, o = e.uploadForm, d = s(!1), h = e.maxConcurrent ?? 3, n = s(e.fileList ?? []), f = b;
|
|
30
30
|
y(
|
|
31
31
|
() => o.visible.value,
|
|
32
32
|
() => {
|
|
33
33
|
d.value = o.visible.value;
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
|
-
const r = s(e.uploadUrl), t = s(e.downloadUrl),
|
|
36
|
+
const r = s(e.uploadUrl), t = s(e.downloadUrl), x = s({
|
|
37
37
|
autoUpload: !1,
|
|
38
38
|
placeholder: "",
|
|
39
39
|
maxFileSize: 20,
|
|
@@ -47,7 +47,7 @@ const W = /* @__PURE__ */ F({
|
|
|
47
47
|
showFolderUpload: !1,
|
|
48
48
|
...e.upload
|
|
49
49
|
}), S = async () => {
|
|
50
|
-
f("before:upload", n.value), await new E(r.value,
|
|
50
|
+
f("before:upload", n.value), await new E(r.value, h).doUpload(
|
|
51
51
|
n.value,
|
|
52
52
|
o.isFormLoading,
|
|
53
53
|
e.continueOnError,
|
|
@@ -111,7 +111,7 @@ const W = /* @__PURE__ */ F({
|
|
|
111
111
|
"upload-url": r.value,
|
|
112
112
|
"download-url": t.value,
|
|
113
113
|
"preview-url": e.previewUrl
|
|
114
|
-
},
|
|
114
|
+
}, x.value), null, 16, ["file-list", "upload-url", "download-url", "preview-url"])
|
|
115
115
|
]),
|
|
116
116
|
_: 1
|
|
117
117
|
}, 8, ["title", "open", "wrapClassName"]));
|
package/lib/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export { ICONS_LIB, checkIconsExpired, circleLoading, createFromIconfont, parseI
|
|
|
27
27
|
export { CacheKeys, Cache, initCacheCheck } from './utils/cache';
|
|
28
28
|
export { initMenu, crumbs, showBreadcrumb } from './utils/menu';
|
|
29
29
|
export { onFormSave, onFormSaveAs, onFormClose, saveForm, getFormDetail, openNewForm, setFormData } from './utils/form';
|
|
30
|
-
export { initValidate, formValidate, validateData, resetRules, getRuleTexts, useInputFactory, useFormItemFactory, } from './utils/form-validate';
|
|
30
|
+
export { initValidate, formValidate, validateData, resetRules, getRuleTexts, getValidator, useInputFactory, useFormItemFactory, } from './utils/form-validate';
|
|
31
31
|
export { validateExcel, checkExcelDuplicates, processExcelFile, appendExcelData, createMarkedExcelView, } from './utils/form-excel';
|
|
32
32
|
export { csvToExcelBlob, processCsvFile } from './utils/form-csv';
|
|
33
33
|
export { csvToNormalized, excelToNormalized, toExcel, csvToExcelView, excelToExcelView, normalizedToExcelView, type NormalizedData, type ExcelViewResult, type ExcelMarkCell, type ExcelMarkInfo, } from './utils/excel-view';
|
|
@@ -8,6 +8,7 @@ export declare const getRuleTexts: (rules?: Record<string, ValidateRule>) => {
|
|
|
8
8
|
field: string;
|
|
9
9
|
rules: string[];
|
|
10
10
|
}[];
|
|
11
|
+
export declare const getValidator: (rules: Record<string, ValidateRule>) => Validator;
|
|
11
12
|
export declare const formValidate: <T>(editorCtrl: EditorControl<T>) => Promise<void>;
|
|
12
13
|
export declare const validateData: (data: Record<string, AnyData>, rules: Record<string, ValidateRule>, validator?: Validator) => Promise<any>;
|
|
13
14
|
export declare const resetRules: <T>(editorCtrl: EditorControl<T>) => void;
|
package/lib/webui.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as Be, i as ve, $ as y, a as Ae, L as $t, c as Dt, P as oe, o as Qe, b as Ft, d as Pt, e as Je, g as Xe, r as fe, f as Ze, h as et, j as tt, k as It, l as be, m as at, _ as lt, n as rt, O as ze, p as Et, q as ot, s as Lt, t as Ut, v as te, w as Mt, x as Nt, y as Rt, z as Bt, A as At, B as zt, C as se, D as Ot, E as de, F as Kt, G as jt, H as st, M as Vt } from "./assets/modules/upload-template-
|
|
2
|
-
import {
|
|
3
|
-
import { f as Yt, p as Ve } from "./assets/modules/file-upload-
|
|
4
|
-
import { A as
|
|
1
|
+
import { u as Be, i as ve, $ as y, a as Ae, L as $t, c as Dt, P as oe, o as Qe, b as Ft, d as Pt, e as Je, g as Xe, r as fe, f as Ze, h as et, j as tt, k as It, l as be, m as at, _ as lt, n as rt, O as ze, p as Et, q as ot, s as Lt, t as Ut, v as te, w as Mt, x as Nt, y as Rt, z as Bt, A as At, B as zt, C as se, D as Ot, E as de, F as Kt, G as jt, H as st, M as Vt } from "./assets/modules/upload-template-CrcqJ2R9.js";
|
|
2
|
+
import { ah as Vr, V as Yr, W as Gr, a0 as Wr, ag as Hr, ae as qr, af as Qr, ai as Jr, as as Xr, a3 as Zr, Y as eo, at as to, ac as ao, a8 as lo, T as ro, a9 as oo, ab as so, aq as no, ar as io, Z as co, K as uo, J as po, a5 as fo, aa as vo, ad as mo, U as go, X as ho, aj as bo, I as xo, a7 as yo, ak as wo, a2 as ko, a4 as _o, au as Co, a1 as So, ap as To, ao as $o, al as Do, N as Fo, Q as Po, am as Io, S as Eo, an as Lo, R as Uo, a6 as Mo } from "./assets/modules/upload-template-CrcqJ2R9.js";
|
|
3
|
+
import { f as Yt, p as Ve } from "./assets/modules/file-upload-BieNyJVf.js";
|
|
4
|
+
import { A as Ro, U as Bo } from "./assets/modules/file-upload-BieNyJVf.js";
|
|
5
5
|
import { EnvConfig as Ye, isMicroApp as Gt } from "@skyfox2000/microbase";
|
|
6
6
|
import { FrontCache as he, httpPost as Oe, ResStatus as Ke, SERVER_HOST as Wt, fieldMapping as xe } from "@skyfox2000/fapi";
|
|
7
7
|
import ae from "vue-m-message";
|
|
@@ -10,15 +10,15 @@ import "async-validator";
|
|
|
10
10
|
import Ne from "dayjs";
|
|
11
11
|
import { Popover as Jt, theme as ct, Drawer as Xt, Space as pe, Form as ut, message as Zt, FormItem as dt, ConfigProvider as we, Popconfirm as pt, DropdownButton as ft, Menu as Te, MenuItem as $e, Dropdown as Re, Checkbox as ea, List as ta, ListItem as aa, Card as la, Button as vt, Table as mt, Tree as ra, Cascader as oa, DatePicker as sa, Input as me, InputPassword as na, InputNumber as ia, RangePicker as ca, Textarea as ua, TimePicker as da, Transfer as pa, TreeSelect as fa, Upload as va, Image as ma, LayoutContent as ga } from "ant-design-vue";
|
|
12
12
|
import { VueDraggableNext as ha } from "vue-draggable-next";
|
|
13
|
-
import { d as ba } from "./assets/modules/uploadList-
|
|
14
|
-
import { C as
|
|
15
|
-
import { c as gt } from "./assets/modules/index-
|
|
16
|
-
import { _ as
|
|
17
|
-
import { _ as ee } from "./assets/modules/index-
|
|
18
|
-
import { _ as Y } from "./assets/modules/toolIcon-
|
|
19
|
-
import { a as
|
|
20
|
-
import { _ as
|
|
21
|
-
import { _ as
|
|
13
|
+
import { d as ba } from "./assets/modules/uploadList-D7Y_29ML.js";
|
|
14
|
+
import { C as zo, U as Oo, a as Ko, p as jo } from "./assets/modules/uploadList-D7Y_29ML.js";
|
|
15
|
+
import { c as gt } from "./assets/modules/index-BFaZP11X.js";
|
|
16
|
+
import { _ as Yo, h as Go, b as Wo, a as Ho, d as qo, e as Qo, g as Jo, f as Xo, n as Zo, p as es, t as ts, v as as } from "./assets/modules/index-BFaZP11X.js";
|
|
17
|
+
import { _ as ee } from "./assets/modules/index-DR6i71_f.js";
|
|
18
|
+
import { _ as Y } from "./assets/modules/toolIcon-BRY0u0wl.js";
|
|
19
|
+
import { a as rs } from "./assets/modules/toolIcon-BRY0u0wl.js";
|
|
20
|
+
import { _ as ss, b as ns, c as is, d as cs, e as us, I as ds, f as ps, g as fs, a as vs } from "./assets/modules/menuTabs-CrjDOZJD.js";
|
|
21
|
+
import { _ as gs } from "./assets/modules/index-BsXBIymP.js";
|
|
22
22
|
import { _ as ce } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
23
23
|
const We = (r, a, e, t = "remove") => {
|
|
24
24
|
if (!e)
|
|
@@ -3062,33 +3062,33 @@ const Dr = /* @__PURE__ */ L({
|
|
|
3062
3062
|
});
|
|
3063
3063
|
export {
|
|
3064
3064
|
y as $t,
|
|
3065
|
-
|
|
3066
|
-
|
|
3065
|
+
Yo as Alert,
|
|
3066
|
+
ss as AppIcon,
|
|
3067
3067
|
fe as AppRouter,
|
|
3068
|
-
|
|
3068
|
+
Ro as AsyncUploader,
|
|
3069
3069
|
Sr as AutoComplete,
|
|
3070
|
-
|
|
3070
|
+
ns as Breadcrumb,
|
|
3071
3071
|
ee as Button,
|
|
3072
3072
|
bt as Cache,
|
|
3073
3073
|
Pa as CacheKeys,
|
|
3074
|
-
|
|
3074
|
+
zo as CanPreviewFileExt,
|
|
3075
3075
|
Tr as Cascader,
|
|
3076
3076
|
$r as Checkbox,
|
|
3077
3077
|
Or as Content,
|
|
3078
3078
|
Dr as DatePicker,
|
|
3079
|
-
|
|
3080
|
-
|
|
3079
|
+
is as Datetime,
|
|
3080
|
+
gs as Dialog,
|
|
3081
3081
|
hr as Drawer,
|
|
3082
3082
|
Vr as EventPrefix,
|
|
3083
3083
|
br as Form,
|
|
3084
3084
|
xr as FormItem,
|
|
3085
3085
|
mr as Fullscreen,
|
|
3086
3086
|
Me as GroupTools,
|
|
3087
|
-
|
|
3088
|
-
|
|
3087
|
+
cs as Header,
|
|
3088
|
+
us as HeaderExits,
|
|
3089
3089
|
Ea as Helper,
|
|
3090
3090
|
Yr as ICONS_LIB,
|
|
3091
|
-
|
|
3091
|
+
ds as Icon,
|
|
3092
3092
|
Ba as Icontool,
|
|
3093
3093
|
zr as ImageList,
|
|
3094
3094
|
St as Input,
|
|
@@ -3098,13 +3098,13 @@ export {
|
|
|
3098
3098
|
gr as LayoutIcon,
|
|
3099
3099
|
yr as List,
|
|
3100
3100
|
Na as ListOperate,
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3101
|
+
Go as Loading,
|
|
3102
|
+
ps as Menu,
|
|
3103
|
+
fs as MenuTabs,
|
|
3104
3104
|
Vt as MicroOpenApis,
|
|
3105
3105
|
ze as OPTIONS,
|
|
3106
3106
|
Ut as OptionCommProps,
|
|
3107
|
-
|
|
3107
|
+
vs as ProjectIcon,
|
|
3108
3108
|
Er as PropEditor,
|
|
3109
3109
|
oe as ProviderKeys,
|
|
3110
3110
|
Dl as Radio,
|
|
@@ -3121,33 +3121,33 @@ export {
|
|
|
3121
3121
|
Y as ToolIcon,
|
|
3122
3122
|
Cr as ToolPanel,
|
|
3123
3123
|
Ct as Toolbar,
|
|
3124
|
-
|
|
3124
|
+
rs as Tooltip,
|
|
3125
3125
|
Fl as Transfer,
|
|
3126
3126
|
Br as TransferTable,
|
|
3127
3127
|
_r as Tree,
|
|
3128
3128
|
Ar as TreeSelect,
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3129
|
+
Oo as UploadList,
|
|
3130
|
+
Bo as UploadStatus,
|
|
3131
|
+
Wo as appendExcelData,
|
|
3132
|
+
Ho as checkExcelDuplicates,
|
|
3133
3133
|
Gr as checkIconsExpired,
|
|
3134
3134
|
Bt as circleLoading,
|
|
3135
3135
|
Dt as createFromIconfont,
|
|
3136
|
-
|
|
3136
|
+
qo as createMarkedExcelView,
|
|
3137
3137
|
Wr as crumbs,
|
|
3138
3138
|
dr as csvToExcelBlob,
|
|
3139
3139
|
gt as csvToExcelView,
|
|
3140
|
-
|
|
3140
|
+
Qo as csvToNormalized,
|
|
3141
3141
|
ke as defaultTools,
|
|
3142
3142
|
Hr as doDelete,
|
|
3143
3143
|
qr as doExecute,
|
|
3144
3144
|
st as doQuery,
|
|
3145
3145
|
Qr as doSave,
|
|
3146
|
-
|
|
3146
|
+
Ko as donwloadFromMinio,
|
|
3147
3147
|
ba as downloadBlob,
|
|
3148
3148
|
Jr as eventBus,
|
|
3149
|
-
|
|
3150
|
-
|
|
3149
|
+
Jo as excelToExcelView,
|
|
3150
|
+
Xo as excelToNormalized,
|
|
3151
3151
|
vr as exportResults,
|
|
3152
3152
|
fr as exportSelectedRows,
|
|
3153
3153
|
tt as filterColumns,
|
|
@@ -3164,23 +3164,24 @@ export {
|
|
|
3164
3164
|
De as getToolGroup,
|
|
3165
3165
|
W as getToolStatus,
|
|
3166
3166
|
J as getToolVisible,
|
|
3167
|
+
oo as getValidator,
|
|
3167
3168
|
be as gridQueryFind,
|
|
3168
3169
|
at as gridQueryList,
|
|
3169
|
-
|
|
3170
|
+
so as gridRowUpdate,
|
|
3170
3171
|
rt as gridStatusUpdate,
|
|
3171
|
-
|
|
3172
|
+
no as i18n,
|
|
3172
3173
|
ur as initCacheCheck,
|
|
3173
3174
|
ir as initDirective,
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3175
|
+
io as initLang,
|
|
3176
|
+
co as initMenu,
|
|
3177
|
+
uo as initPageFactory,
|
|
3178
|
+
po as initStores,
|
|
3178
3179
|
cr as initTools,
|
|
3179
|
-
|
|
3180
|
+
fo as initValidate,
|
|
3180
3181
|
ve as isEmpty,
|
|
3181
3182
|
Nt as loadOption,
|
|
3182
|
-
|
|
3183
|
-
|
|
3183
|
+
vo as mergeColumns,
|
|
3184
|
+
Zo as normalizedToExcelView,
|
|
3184
3185
|
Da as onColumnVisibleChanged,
|
|
3185
3186
|
Pt as onFormClose,
|
|
3186
3187
|
Qe as onFormSave,
|
|
@@ -3188,43 +3189,43 @@ export {
|
|
|
3188
3189
|
ht as onFullscreenClick,
|
|
3189
3190
|
et as onGridRowDelete,
|
|
3190
3191
|
Ze as onGridRowEdit,
|
|
3191
|
-
|
|
3192
|
+
mo as onGridRowExpand,
|
|
3192
3193
|
At as onOptionChanged,
|
|
3193
3194
|
wa as onReloadClick,
|
|
3194
3195
|
X as onToolClicked,
|
|
3195
3196
|
It as openNewForm,
|
|
3196
|
-
|
|
3197
|
-
|
|
3197
|
+
go as outFormDataFields,
|
|
3198
|
+
ho as parseIcons,
|
|
3198
3199
|
Ve as path,
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3200
|
+
bo as pendingNavigation,
|
|
3201
|
+
xo as pinia,
|
|
3202
|
+
jo as previewFromMinio,
|
|
3202
3203
|
pr as processCsvFile,
|
|
3203
|
-
|
|
3204
|
+
es as processExcelFile,
|
|
3204
3205
|
ot as queryTree,
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3206
|
+
yo as resetRules,
|
|
3207
|
+
wo as routes,
|
|
3208
|
+
ko as saveForm,
|
|
3209
|
+
_o as setFormData,
|
|
3210
|
+
Co as setLang,
|
|
3211
|
+
So as showBreadcrumb,
|
|
3212
|
+
ts as toExcel,
|
|
3212
3213
|
Rt as unloadOption,
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3214
|
+
To as uploadTempBtn,
|
|
3215
|
+
$o as uploadTempOpener,
|
|
3216
|
+
Do as useAppInfo,
|
|
3217
|
+
Fo as useEditorFactory,
|
|
3217
3218
|
Je as useFormItemFactory,
|
|
3218
|
-
|
|
3219
|
-
|
|
3219
|
+
Po as useGridFactory,
|
|
3220
|
+
Io as useHostInfo,
|
|
3220
3221
|
te as useInputFactory,
|
|
3221
3222
|
Mt as useOptionFactory,
|
|
3222
|
-
|
|
3223
|
-
|
|
3223
|
+
Eo as usePageFactory,
|
|
3224
|
+
Lo as usePageInfo,
|
|
3224
3225
|
Ae as useSettingInfo,
|
|
3225
3226
|
Fa as useToolFactory,
|
|
3226
|
-
|
|
3227
|
+
Uo as useTreeFactory,
|
|
3227
3228
|
Be as useUserInfo,
|
|
3228
|
-
|
|
3229
|
-
|
|
3229
|
+
Mo as validateData,
|
|
3230
|
+
as as validateExcel
|
|
3230
3231
|
};
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -169,6 +169,16 @@ export const getRuleTexts = (rules?: Record<string, ValidateRule>) => {
|
|
|
169
169
|
return result;
|
|
170
170
|
};
|
|
171
171
|
|
|
172
|
+
export const getValidator = (rules: Record<string, ValidateRule>) : Validator => {
|
|
173
|
+
/**
|
|
174
|
+
* 设置自定义文字显示与验证条件
|
|
175
|
+
*/
|
|
176
|
+
const ruleValidator = new Validator({});
|
|
177
|
+
ruleValidator.messages(validMessages.messages());
|
|
178
|
+
ruleValidator.define(rules);
|
|
179
|
+
return ruleValidator;
|
|
180
|
+
}
|
|
181
|
+
|
|
172
182
|
/**
|
|
173
183
|
* 表单数据验证
|
|
174
184
|
* @param editorCtrl 表单控制对象
|