ele-admin-plus 1.4.1-beta.1 → 1.4.1
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/es/core-components.d.ts +2 -0
- package/es/core-components.js +104 -100
- package/es/ele-app/plus.d.ts +9 -1
- package/es/ele-app/plusx.d.ts +26 -13
- package/es/ele-backtop/index.js +7 -1
- package/es/ele-basic-select/components/select-view.d.ts +53 -22
- package/es/ele-basic-select/components/select-view.js +57 -20
- package/es/ele-basic-select/index.d.ts +39 -19
- package/es/ele-basic-select/index.js +62 -13
- package/es/ele-basic-select/props.d.ts +33 -21
- package/es/ele-basic-select/props.js +33 -21
- package/es/ele-basic-select/style/index.js +2 -0
- package/es/ele-basic-select/types.d.ts +1 -1
- package/es/ele-config-provider/components/receiver-view.d.ts +2 -0
- package/es/ele-config-provider/components/receiver-view.js +74 -72
- package/es/ele-config-provider/receiver.d.ts +2 -2
- package/es/ele-config-provider/receiver.js +5 -1
- package/es/ele-config-provider/types.d.ts +10 -1
- package/es/ele-copyable/index.d.ts +2 -4
- package/es/ele-cron-builder/index.d.ts +24 -0
- package/es/ele-cron-builder/index.js +81 -0
- package/es/ele-cron-builder/props.d.ts +31 -0
- package/es/ele-cron-builder/props.js +24 -0
- package/es/ele-cron-builder/style/index.d.ts +1 -0
- package/es/ele-cron-builder/style/index.js +4 -0
- package/es/ele-cron-builder/style/index.scss +6 -0
- package/es/ele-cron-builder/types.d.ts +8 -0
- package/es/ele-cron-panel/components/cron-day.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-day.js +232 -0
- package/es/ele-cron-panel/components/cron-hour.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-hour.js +174 -0
- package/es/ele-cron-panel/components/cron-minute.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-minute.js +174 -0
- package/es/ele-cron-panel/components/cron-month.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-month.js +174 -0
- package/es/ele-cron-panel/components/cron-second.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-second.js +174 -0
- package/es/ele-cron-panel/components/cron-week.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-week.js +229 -0
- package/es/ele-cron-panel/components/cron-year.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-year.js +186 -0
- package/es/ele-cron-panel/index.d.ts +14 -0
- package/es/ele-cron-panel/index.js +348 -0
- package/es/ele-cron-panel/props.d.ts +20 -0
- package/es/ele-cron-panel/props.js +14 -0
- package/es/ele-cron-panel/style/index.d.ts +1 -0
- package/es/ele-cron-panel/style/index.js +7 -0
- package/es/ele-cron-panel/style/index.scss +282 -0
- package/es/ele-cron-panel/types.d.ts +118 -0
- package/es/ele-cron-panel/util.d.ts +23 -0
- package/es/ele-cron-panel/util.js +542 -0
- package/es/ele-cropper/components/cropper-tools.d.ts +2 -2
- package/es/ele-cropper-modal/index.d.ts +2 -4
- package/es/ele-crud/index.d.ts +3 -3
- package/es/ele-drawer/index.d.ts +9 -0
- package/es/ele-drawer/index.js +5 -1
- package/es/ele-drawer/props.d.ts +5 -0
- package/es/ele-drawer/props.js +6 -1
- package/es/ele-drawer/style/index.scss +11 -0
- package/es/ele-file-list/index.d.ts +3 -3
- package/es/ele-icon-select/components/icon-grid.d.ts +8 -3
- package/es/ele-icon-select/components/icon-grid.js +20 -12
- package/es/ele-icon-select/index.d.ts +58 -59
- package/es/ele-icon-select/index.js +92 -86
- package/es/ele-icon-select/props.d.ts +35 -35
- package/es/ele-icon-select/props.js +34 -34
- package/es/ele-icon-select/style/css-var.scss +1 -1
- package/es/ele-icon-select/style/index.scss +50 -18
- package/es/ele-icon-select/types.d.ts +13 -0
- package/es/ele-map-picker/index.d.ts +3 -3
- package/es/ele-modal/index.d.ts +4 -2
- package/es/ele-modal/index.js +9 -3
- package/es/ele-modal/props.d.ts +2 -0
- package/es/ele-modal/props.js +2 -0
- package/es/ele-modal/style/index.scss +16 -0
- package/es/ele-pro-form/components/item-type-data.js +39 -64
- package/es/ele-pro-form/index.d.ts +3 -3
- package/es/ele-pro-table/components/table-tools.d.ts +12 -97
- package/es/ele-pro-table/components/table-tools.js +118 -248
- package/es/ele-pro-table/components/tool-export.d.ts +5 -1
- package/es/ele-pro-table/components/tool-export.js +32 -20
- package/es/ele-pro-table/components/tool-print.d.ts +5 -1
- package/es/ele-pro-table/components/tool-print.js +37 -25
- package/es/ele-pro-table/exceljs-plugin.d.ts +12 -0
- package/es/ele-pro-table/exceljs-plugin.js +81 -0
- package/es/ele-pro-table/index.d.ts +6 -7
- package/es/ele-pro-table/index.js +117 -46
- package/es/ele-pro-table/types.d.ts +11 -0
- package/es/ele-split-panel/style/index.scss +1 -1
- package/es/ele-table-select/index.d.ts +2 -0
- package/es/ele-table-select/props.d.ts +2 -0
- package/es/ele-table-select/props.js +3 -1
- package/es/ele-tour/index.d.ts +3 -3
- package/es/ele-tree-select/index.d.ts +2 -0
- package/es/ele-upload-list/index.d.ts +3 -3
- package/es/ele-upload-list/index.js +25 -8
- package/es/ele-virtual-table/components/body-cell.d.ts +1 -1
- package/es/ele-watermark/index.d.ts +20 -7
- package/es/ele-watermark/index.js +253 -94
- package/es/ele-watermark/props.d.ts +10 -3
- package/es/ele-watermark/props.js +10 -3
- package/es/ele-watermark/types.d.ts +12 -0
- package/es/ele-watermark/util.d.ts +2 -9
- package/es/ele-watermark/util.js +10 -19
- package/es/lang/en_US.js +116 -0
- package/es/lang/zh_CN.js +116 -0
- package/es/lang/zh_TW.js +116 -0
- package/es/style/plus.scss +3 -1
- package/es/style/themes/default.scss +12 -3
- package/es/style/themes/rounded.scss +2 -1
- package/es/utils/theme-util.d.ts +1 -1
- package/lib/core-components.cjs +104 -100
- package/lib/core-components.d.ts +2 -0
- package/lib/ele-app/plus.d.ts +9 -1
- package/lib/ele-app/plusx.d.ts +26 -13
- package/lib/ele-backtop/index.cjs +6 -0
- package/lib/ele-basic-select/components/select-view.cjs +56 -19
- package/lib/ele-basic-select/components/select-view.d.ts +53 -22
- package/lib/ele-basic-select/index.cjs +61 -12
- package/lib/ele-basic-select/index.d.ts +39 -19
- package/lib/ele-basic-select/props.cjs +33 -21
- package/lib/ele-basic-select/props.d.ts +33 -21
- package/lib/ele-basic-select/style/index.cjs +2 -0
- package/lib/ele-basic-select/types.d.ts +1 -1
- package/lib/ele-config-provider/components/receiver-view.cjs +2 -2
- package/lib/ele-config-provider/components/receiver-view.d.ts +2 -0
- package/lib/ele-config-provider/receiver.cjs +5 -1
- package/lib/ele-config-provider/receiver.d.ts +2 -2
- package/lib/ele-config-provider/types.d.ts +10 -1
- package/lib/ele-copyable/index.d.ts +2 -4
- package/lib/ele-cron-builder/index.cjs +80 -0
- package/lib/ele-cron-builder/index.d.ts +24 -0
- package/lib/ele-cron-builder/props.cjs +24 -0
- package/lib/ele-cron-builder/props.d.ts +31 -0
- package/lib/ele-cron-builder/style/index.cjs +5 -0
- package/lib/ele-cron-builder/style/index.d.ts +1 -0
- package/lib/ele-cron-builder/style/index.scss +6 -0
- package/lib/ele-cron-builder/types.d.ts +8 -0
- package/lib/ele-cron-panel/components/cron-day.cjs +231 -0
- package/lib/ele-cron-panel/components/cron-day.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-hour.cjs +173 -0
- package/lib/ele-cron-panel/components/cron-hour.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-minute.cjs +173 -0
- package/lib/ele-cron-panel/components/cron-minute.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-month.cjs +173 -0
- package/lib/ele-cron-panel/components/cron-month.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-second.cjs +173 -0
- package/lib/ele-cron-panel/components/cron-second.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-week.cjs +228 -0
- package/lib/ele-cron-panel/components/cron-week.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-year.cjs +185 -0
- package/lib/ele-cron-panel/components/cron-year.d.ts +25 -0
- package/lib/ele-cron-panel/index.cjs +347 -0
- package/lib/ele-cron-panel/index.d.ts +14 -0
- package/lib/ele-cron-panel/props.cjs +14 -0
- package/lib/ele-cron-panel/props.d.ts +20 -0
- package/lib/ele-cron-panel/style/index.cjs +8 -0
- package/lib/ele-cron-panel/style/index.d.ts +1 -0
- package/lib/ele-cron-panel/style/index.scss +282 -0
- package/lib/ele-cron-panel/types.d.ts +118 -0
- package/lib/ele-cron-panel/util.cjs +542 -0
- package/lib/ele-cron-panel/util.d.ts +23 -0
- package/lib/ele-cropper/components/cropper-tools.d.ts +2 -2
- package/lib/ele-cropper-modal/index.d.ts +2 -4
- package/lib/ele-crud/index.d.ts +3 -3
- package/lib/ele-drawer/index.cjs +4 -0
- package/lib/ele-drawer/index.d.ts +9 -0
- package/lib/ele-drawer/props.cjs +6 -1
- package/lib/ele-drawer/props.d.ts +5 -0
- package/lib/ele-drawer/style/index.scss +11 -0
- package/lib/ele-file-list/index.d.ts +3 -3
- package/lib/ele-icon-select/components/icon-grid.cjs +19 -11
- package/lib/ele-icon-select/components/icon-grid.d.ts +8 -3
- package/lib/ele-icon-select/index.cjs +91 -85
- package/lib/ele-icon-select/index.d.ts +58 -59
- package/lib/ele-icon-select/props.cjs +34 -34
- package/lib/ele-icon-select/props.d.ts +35 -35
- package/lib/ele-icon-select/style/css-var.scss +1 -1
- package/lib/ele-icon-select/style/index.scss +50 -18
- package/lib/ele-icon-select/types.d.ts +13 -0
- package/lib/ele-map-picker/index.d.ts +3 -3
- package/lib/ele-modal/index.cjs +9 -3
- package/lib/ele-modal/index.d.ts +4 -2
- package/lib/ele-modal/props.cjs +2 -0
- package/lib/ele-modal/props.d.ts +2 -0
- package/lib/ele-modal/style/index.scss +16 -0
- package/lib/ele-pro-form/components/item-type-data.cjs +39 -64
- package/lib/ele-pro-form/index.d.ts +3 -3
- package/lib/ele-pro-table/components/table-tools.cjs +117 -247
- package/lib/ele-pro-table/components/table-tools.d.ts +12 -97
- package/lib/ele-pro-table/components/tool-export.cjs +32 -20
- package/lib/ele-pro-table/components/tool-export.d.ts +5 -1
- package/lib/ele-pro-table/components/tool-print.cjs +37 -25
- package/lib/ele-pro-table/components/tool-print.d.ts +5 -1
- package/lib/ele-pro-table/exceljs-plugin.cjs +81 -0
- package/lib/ele-pro-table/exceljs-plugin.d.ts +12 -0
- package/lib/ele-pro-table/index.cjs +143 -72
- package/lib/ele-pro-table/index.d.ts +6 -7
- package/lib/ele-pro-table/types.d.ts +11 -0
- package/lib/ele-split-panel/style/index.scss +1 -1
- package/lib/ele-table-select/index.d.ts +2 -0
- package/lib/ele-table-select/props.cjs +3 -1
- package/lib/ele-table-select/props.d.ts +2 -0
- package/lib/ele-tour/index.d.ts +3 -3
- package/lib/ele-tree-select/index.d.ts +2 -0
- package/lib/ele-upload-list/index.cjs +25 -8
- package/lib/ele-upload-list/index.d.ts +3 -3
- package/lib/ele-virtual-table/components/body-cell.d.ts +1 -1
- package/lib/ele-watermark/index.cjs +251 -92
- package/lib/ele-watermark/index.d.ts +20 -7
- package/lib/ele-watermark/props.cjs +10 -3
- package/lib/ele-watermark/props.d.ts +10 -3
- package/lib/ele-watermark/types.d.ts +12 -0
- package/lib/ele-watermark/util.cjs +10 -19
- package/lib/ele-watermark/util.d.ts +2 -9
- package/lib/lang/en_US.cjs +116 -0
- package/lib/lang/zh_CN.cjs +116 -0
- package/lib/lang/zh_TW.cjs +116 -0
- package/lib/style/plus.scss +3 -1
- package/lib/style/themes/default.scss +12 -3
- package/lib/style/themes/rounded.scss +2 -1
- package/lib/utils/theme-util.d.ts +1 -1
- package/package.json +1 -1
- package/typings/global.d.ts +2 -0
|
@@ -1,137 +1,139 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as b, reactive as K, computed as A, provide as G, watch as z, createVNode as W } from "vue";
|
|
2
2
|
import { localize as j } from "../../utils/common";
|
|
3
|
-
import
|
|
4
|
-
import { useReceiver as
|
|
5
|
-
const n = (
|
|
6
|
-
const Y = (
|
|
7
|
-
const l = ((g,
|
|
8
|
-
const O = g.length -
|
|
3
|
+
import B from "../../ele-watermark/index";
|
|
4
|
+
import { useReceiver as $, ERROR_MESSAGE as k } from "../receiver";
|
|
5
|
+
const n = (p, a, c) => {
|
|
6
|
+
const Y = (w, F, h) => {
|
|
7
|
+
const l = ((g, x) => {
|
|
8
|
+
const O = g.length - x;
|
|
9
9
|
if (O <= 0)
|
|
10
10
|
return g;
|
|
11
|
-
const
|
|
12
|
-
for (let
|
|
13
|
-
|
|
14
|
-
return
|
|
15
|
-
})(
|
|
11
|
+
const v = new Array(g.length);
|
|
12
|
+
for (let C = 0; C < g.length; C++)
|
|
13
|
+
C < x ? v[C] = g[O + C] : v[C] = g[C - x];
|
|
14
|
+
return v;
|
|
15
|
+
})(w.split(""), h).join(""), I = [];
|
|
16
16
|
let m = 0;
|
|
17
17
|
for (; m < l.length; ) {
|
|
18
|
-
let g = m +
|
|
18
|
+
let g = m + F;
|
|
19
19
|
g > l.length && (g = l.length);
|
|
20
|
-
const
|
|
21
|
-
I.push(
|
|
20
|
+
const x = l.substring(m, g);
|
|
21
|
+
I.push(x.split("").reverse().join("")), m = g;
|
|
22
22
|
}
|
|
23
23
|
return I.join("");
|
|
24
|
-
},
|
|
25
|
-
let U = "",
|
|
26
|
-
for (;
|
|
27
|
-
|
|
28
|
-
return U = ((
|
|
29
|
-
let
|
|
30
|
-
for (;
|
|
31
|
-
l =
|
|
32
|
-
return
|
|
33
|
-
})(U),
|
|
34
|
-
}, o = "BAFEDIHGLKJONMRQPUTSXWVaZYdcbgfejihmlkponsrqvutyxw10z432765+98/C",
|
|
24
|
+
}, i = a.indexOf("="), N = i === -1 ? a : a.substring(0, i), s = i === -1 ? "" : a.substring(i), T = (c == null ? N : Y(N, 12, 3) + s).replace(/[^A-Za-z0-9\+\/\=]/g, ""), J = Y(p, 3, 1) + "=";
|
|
25
|
+
let U = "", r, t, D, E, d, u, f, R = 0;
|
|
26
|
+
for (; R < T.length; )
|
|
27
|
+
E = J.indexOf(T.charAt(R++)), d = J.indexOf(T.charAt(R++)), u = J.indexOf(T.charAt(R++)), f = J.indexOf(T.charAt(R++)), r = E << 2 | d >> 4, t = (d & 15) << 4 | u >> 2, D = (u & 3) << 6 | f, U = U + String.fromCharCode(r), u != 64 && (U = U + String.fromCharCode(t)), f != 64 && (U = U + String.fromCharCode(D));
|
|
28
|
+
return U = ((w) => {
|
|
29
|
+
let F = "", h = 0, l = 0, I = 0, m = 0;
|
|
30
|
+
for (; h < w.length; )
|
|
31
|
+
l = w.charCodeAt(h), l < 128 ? (F += String.fromCharCode(l), h++) : l > 191 && l < 224 ? (I = w.charCodeAt(h + 1), F += String.fromCharCode((l & 31) << 6 | I & 63), h += 2) : (I = w.charCodeAt(h + 1), m = w.charCodeAt(h + 2), F += String.fromCharCode((l & 15) << 12 | (I & 63) << 6 | m & 63), h += 3);
|
|
32
|
+
return F;
|
|
33
|
+
})(U), c == null ? decodeURIComponent(U) : U;
|
|
34
|
+
}, o = "BAFEDIHGLKJONMRQPUTSXWVaZYdcbgfejihmlkponsrqvutyxw10z432765+98/C", H = n(o, "RWxlQWRtaW5QbHVzJUU5JTlDJTgwJUU4JUE2JTgxJUU2JThFJTg4JUU2JTlEJTgzJUU0JUJEJUJGJUU3JTk0JUE4JTJDJUU4JUFGJUI3JUU1JTg5JThEJUU1JUJFJTgwZWxlYWRtaW4uY29tJUU4JUI0JUFEJUU0JUI5JUIwJUU2JThFJTg4JUU2JTlEJTgz="), M = n(o, "JUU4JUFGJUI3JUU1JTg1JTg4JUU5JTg1JThEJUU3JUJEJUFFJUU4JTg3JUFBJUU1JUI3JUIxJUU3JTlBJTg0JUU2JThFJTg4JUU2JTlEJTgzJUU3JUEwJTgxJTNC="), P = n(o, "JUU4JUFGJUI3JUU0JUJEJUJGJUU3JTk0JUE4JUU2JUFEJUEzJUU3JUExJUFFJUU2JUEwJUJDJUU1JUJDJThGJUU3JTlBJTg0JUU2JThFJTg4JUU2JTlEJTgzJUU3JUEwJTgxJTNC="), V = n(o, "JUU2JThFJTg4JUU2JTlEJTgzJUU3JTg5JTg4JUU2JTlDJUFDJUU1JThGJUI3JUU0JUI4JThEJUU1JThDJUI5JUU5JTg1JThEJTJDJTIwJUU2JThFJTg4JUU2JTlEJTgzJUU3JUEwJTgxJUU3JTg5JTg4JUU2JTlDJUFDJTNB="), L = n(o, "JTJDJTIwJUU1JUFFJTg5JUU4JUEzJTg1JUU3JTg5JTg4JUU2JTlDJUFDJTNB="), Q = n(o, "JUU2JThFJTg4JUU2JTlEJTgzJUU1JUI3JUIyJUU1JUE0JUIxJUU2JTk1JTg4JTJDJTIwJUU1JTg4JUIwJUU2JTlDJTlGJUU2JTk3JUI2JUU5JTk3JUI0JTNB="), y = n(o, "JUU1JTlGJTlGJUU1JTkwJThEJUU0JUI4JThEJUU1JThDJUI5JUU5JTg1JThEJTJDJTIwJUU4JUFGJUI3JUU5JTgzJUE4JUU3JUJEJUIyJUU1JTlDJUE4JTNB="), Z = n(o, "JUU0JUI4JThCJTJDJTIwJUU1JUJEJTkzJUU1JTg5JThEJUU1JTlGJTlGJUU1JTkwJThEJTNB="), X = n(o, "RWxlQWRtaW5QbHVz="), q = n(o, "bG9jYWxob3N0="), JJ = n(o, "MTI3LjAuMC4x="), UJ = n(o, "d3d3="), S = n(o, "MS40="), _ = n(o, "MDVmZA="), tJ = n(o, "RUxFJTIwQURNSU4lMjBQTFVT="), iJ = /* @__PURE__ */ b({
|
|
35
35
|
name: "ReceiverView",
|
|
36
36
|
props: {
|
|
37
|
+
wrapHeight: [String, Number],
|
|
37
38
|
wrapPosition: {
|
|
38
39
|
type: Boolean,
|
|
39
40
|
default: !0
|
|
40
41
|
}
|
|
41
42
|
},
|
|
42
|
-
setup(
|
|
43
|
-
slots:
|
|
43
|
+
setup(p, {
|
|
44
|
+
slots: a
|
|
44
45
|
}) {
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
if (t.push(
|
|
48
|
-
const
|
|
49
|
-
t.push(`${
|
|
46
|
+
const c = (e, T, J, U) => {
|
|
47
|
+
const r = new Array(60).join("*"), t = [r];
|
|
48
|
+
if (t.push(H), e == null && T == null && J == null && U == null && t.push(M), !e && T == null && !J && t.push(P), e && t.push(`${V} ${e}${L} ${S};`), typeof T == "number") {
|
|
49
|
+
const D = new Date(T * 1e3).toLocaleString();
|
|
50
|
+
t.push(`${Q} ${D};`);
|
|
50
51
|
}
|
|
51
|
-
J && t.push(`${
|
|
52
|
+
J && t.push(`${y} ${J} ${Z} ${U};`), t.push(r), console.error(t.join(`
|
|
52
53
|
`));
|
|
53
|
-
}, Y =
|
|
54
|
+
}, Y = $(), i = K({}), N = A(() => {
|
|
54
55
|
const e = Y.license;
|
|
55
56
|
return e ? e.trim() : void 0;
|
|
56
57
|
});
|
|
57
|
-
|
|
58
|
-
const
|
|
59
|
-
const J = e.subject, U =
|
|
60
|
-
Object.keys(
|
|
61
|
-
const
|
|
62
|
-
Object.assign(
|
|
63
|
-
text:
|
|
64
|
-
froined: !!(T &&
|
|
58
|
+
G(k, i);
|
|
59
|
+
const s = (e, T) => {
|
|
60
|
+
const J = e.subject, U = _.slice(0, _.length - 2) + (J ?? "");
|
|
61
|
+
Object.keys(i).forEach((t) => i[t] = void 0);
|
|
62
|
+
const r = j(J == null ? void 0 : String(J));
|
|
63
|
+
Object.assign(i, {
|
|
64
|
+
text: r,
|
|
65
|
+
froined: !!(T && r),
|
|
65
66
|
viewId: U
|
|
66
67
|
});
|
|
67
68
|
};
|
|
68
|
-
return z(
|
|
69
|
+
return z(N, (e) => {
|
|
69
70
|
var T;
|
|
70
71
|
if (typeof e != "string" || !e) {
|
|
71
|
-
|
|
72
|
+
s({}), c();
|
|
72
73
|
return;
|
|
73
74
|
}
|
|
74
75
|
try {
|
|
75
76
|
const J = JSON.parse(n(o, e, 0)), {
|
|
76
77
|
version: U,
|
|
77
|
-
expiration:
|
|
78
|
+
expiration: r,
|
|
78
79
|
domain: t,
|
|
79
|
-
product:
|
|
80
|
+
product: D
|
|
80
81
|
} = J;
|
|
81
|
-
if (U && U !==
|
|
82
|
-
|
|
82
|
+
if (U && U !== S) {
|
|
83
|
+
s(J), c(U);
|
|
83
84
|
return;
|
|
84
85
|
}
|
|
85
|
-
if (X !==
|
|
86
|
-
|
|
86
|
+
if (X !== D) {
|
|
87
|
+
s(J), c("");
|
|
87
88
|
return;
|
|
88
89
|
}
|
|
89
|
-
if (
|
|
90
|
-
|
|
90
|
+
if (r && r < Date.now() / 1e3) {
|
|
91
|
+
s(J), c(void 0, r);
|
|
91
92
|
return;
|
|
92
93
|
}
|
|
93
94
|
if (t) {
|
|
94
|
-
const
|
|
95
|
-
if (!
|
|
96
|
-
|
|
95
|
+
const E = (T = window == null ? void 0 : window.location) == null ? void 0 : T.hostname;
|
|
96
|
+
if (!E) {
|
|
97
|
+
s(J), c(void 0, void 0, t, "");
|
|
97
98
|
return;
|
|
98
99
|
}
|
|
99
|
-
if (q !==
|
|
100
|
-
const
|
|
101
|
-
for (let f =
|
|
102
|
-
if (
|
|
103
|
-
|
|
100
|
+
if (q !== E && JJ !== E) {
|
|
101
|
+
const d = t.split("."), u = E.split(".");
|
|
102
|
+
for (let f = d.length - 1; f >= 0; f--)
|
|
103
|
+
if (d[f] !== u[f]) {
|
|
104
|
+
s(J), c(void 0, void 0, t, E);
|
|
104
105
|
return;
|
|
105
106
|
}
|
|
106
|
-
if (
|
|
107
|
-
|
|
107
|
+
if (u.length > d.length && u[u.length - d.length - 1] !== UJ) {
|
|
108
|
+
s(J), c(void 0, void 0, t, E);
|
|
108
109
|
return;
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
|
-
|
|
113
|
+
s(J, !0);
|
|
113
114
|
return;
|
|
114
115
|
} catch (J) {
|
|
115
116
|
console.error(J);
|
|
116
117
|
}
|
|
117
|
-
|
|
118
|
+
s({}), c("");
|
|
118
119
|
}, {
|
|
119
120
|
immediate: !0
|
|
120
|
-
}), () => W(
|
|
121
|
+
}), () => W(B, {
|
|
121
122
|
wrapPosition: !1,
|
|
122
|
-
|
|
123
|
+
wrapHeight: p.wrapHeight != null && typeof p.wrapHeight == "number" ? `${p.wrapHeight}px` : p.wrapHeight,
|
|
124
|
+
content: tJ,
|
|
125
|
+
disabled: i.froined,
|
|
126
|
+
style: !p.wrapPosition || i.froined ? void 0 : {
|
|
123
127
|
position: "relative"
|
|
124
|
-
}
|
|
125
|
-
disabled: r.froined,
|
|
126
|
-
content: tJ
|
|
128
|
+
}
|
|
127
129
|
}, {
|
|
128
130
|
default: () => {
|
|
129
131
|
var e;
|
|
130
|
-
return [(e =
|
|
132
|
+
return [(e = a.default) == null ? void 0 : e.call(a, i)];
|
|
131
133
|
}
|
|
132
134
|
});
|
|
133
135
|
}
|
|
134
136
|
});
|
|
135
137
|
export {
|
|
136
|
-
|
|
138
|
+
iJ as default
|
|
137
139
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { ERROR_MESSAGE_KEY as ERROR_MESSAGE } from '../utils/common';
|
|
3
|
-
import { GlobalProvide, UseLocaleResult, LocaleProps } from './types';
|
|
3
|
+
import { GlobalProvide, UseLocaleResult, LocaleProps, EleLocale } from './types';
|
|
4
4
|
|
|
5
5
|
export { ERROR_MESSAGE };
|
|
6
6
|
/**
|
|
@@ -14,4 +14,4 @@ export declare function useGlobalProps<T>(name: string): Ref<T>;
|
|
|
14
14
|
/**
|
|
15
15
|
* 获取国际化
|
|
16
16
|
*/
|
|
17
|
-
export declare function useLocale<
|
|
17
|
+
export declare function useLocale<K extends keyof EleLocale>(name?: K, props?: LocaleProps<EleLocale[K]>): UseLocaleResult<EleLocale[K]>;
|
|
@@ -16,7 +16,11 @@ function useLocale(name, props) {
|
|
|
16
16
|
const temp = globalConfig.locale ?? defaultLocale;
|
|
17
17
|
if (name) {
|
|
18
18
|
try {
|
|
19
|
-
return Object.assign(
|
|
19
|
+
return Object.assign(
|
|
20
|
+
{},
|
|
21
|
+
temp[name] ?? {},
|
|
22
|
+
props == null ? void 0 : props.locale
|
|
23
|
+
);
|
|
20
24
|
} catch (e) {
|
|
21
25
|
console.error(e, ERROR_MESSAGE_KEY);
|
|
22
26
|
}
|
|
@@ -9,6 +9,9 @@ import type { TourLocale } from '../ele-tour/types';
|
|
|
9
9
|
import type { CopyableLocale } from '../ele-copyable/types';
|
|
10
10
|
import type { ProFormLocale } from '../ele-pro-form/types';
|
|
11
11
|
import type { CrudLocale } from '../ele-crud/types';
|
|
12
|
+
import type { IconSelectLocale } from '../ele-icon-select/types';
|
|
13
|
+
import type { CronBuilderLocale } from '../ele-cron-builder/types';
|
|
14
|
+
import type { CronPanelLocale } from '../ele-cron-panel/types';
|
|
12
15
|
|
|
13
16
|
/**
|
|
14
17
|
* 国际化
|
|
@@ -32,6 +35,12 @@ export interface EleLocale {
|
|
|
32
35
|
proForm: ProFormLocale;
|
|
33
36
|
/** 增删改查 */
|
|
34
37
|
crud: CrudLocale;
|
|
38
|
+
/** 图标选择 */
|
|
39
|
+
iconSelect: IconSelectLocale;
|
|
40
|
+
/** cron 生成器 */
|
|
41
|
+
cronBuilder: CronBuilderLocale;
|
|
42
|
+
/** cron */
|
|
43
|
+
cronPanel: CronPanelLocale;
|
|
35
44
|
}
|
|
36
45
|
|
|
37
46
|
/**
|
|
@@ -44,7 +53,7 @@ export interface GlobalProvide {
|
|
|
44
53
|
table?: TableGlobalConfig;
|
|
45
54
|
/** 地图密钥 */
|
|
46
55
|
mapKey?: string;
|
|
47
|
-
/**
|
|
56
|
+
/** license */
|
|
48
57
|
license?: string;
|
|
49
58
|
}
|
|
50
59
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { CopyableLocale } from './types';
|
|
2
|
-
|
|
3
1
|
declare function __VLS_template(): {
|
|
4
2
|
default?(_: {}): any;
|
|
5
3
|
};
|
|
@@ -21,7 +19,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
21
19
|
type: NumberConstructor;
|
|
22
20
|
default: number;
|
|
23
21
|
};
|
|
24
|
-
locale: import('vue').PropType<Partial<CopyableLocale>>;
|
|
22
|
+
locale: import('vue').PropType<Partial<import('./types').CopyableLocale>>;
|
|
25
23
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
24
|
copy: (_error?: any) => void;
|
|
27
25
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -42,7 +40,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
42
40
|
type: NumberConstructor;
|
|
43
41
|
default: number;
|
|
44
42
|
};
|
|
45
|
-
locale: import('vue').PropType<Partial<CopyableLocale>>;
|
|
43
|
+
locale: import('vue').PropType<Partial<import('./types').CopyableLocale>>;
|
|
46
44
|
}>> & Readonly<{
|
|
47
45
|
onCopy?: ((_error?: any) => any) | undefined;
|
|
48
46
|
}>, {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
modelValue: BooleanConstructor;
|
|
3
|
+
cron: StringConstructor;
|
|
4
|
+
title: StringConstructor;
|
|
5
|
+
modalProps: import('vue').PropType<import('../ele-app/plus').EleModalProps>;
|
|
6
|
+
locale: import('vue').PropType<Partial<import('./types').CronBuilderLocale>>;
|
|
7
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
done: (_cron?: string | undefined) => void;
|
|
9
|
+
"update:modelValue": (_value?: boolean | undefined) => void;
|
|
10
|
+
"update:cron": (_cron?: string | undefined) => void;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
12
|
+
modelValue: BooleanConstructor;
|
|
13
|
+
cron: StringConstructor;
|
|
14
|
+
title: StringConstructor;
|
|
15
|
+
modalProps: import('vue').PropType<import('../ele-app/plus').EleModalProps>;
|
|
16
|
+
locale: import('vue').PropType<Partial<import('./types').CronBuilderLocale>>;
|
|
17
|
+
}>> & Readonly<{
|
|
18
|
+
onDone?: ((_cron?: string | undefined) => any) | undefined;
|
|
19
|
+
"onUpdate:modelValue"?: ((_value?: boolean | undefined) => any) | undefined;
|
|
20
|
+
"onUpdate:cron"?: ((_cron?: string | undefined) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
modelValue: boolean;
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { defineComponent, ref, createBlock, openBlock, mergeProps, unref, withCtx, createVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import { ElButton } from "element-plus";
|
|
3
|
+
import { useLocale } from "../ele-config-provider/receiver";
|
|
4
|
+
import EleModal from "../ele-modal/index";
|
|
5
|
+
import EleCronPanel from "../ele-cron-panel/index";
|
|
6
|
+
import { cronBuilderEmits, cronBuilderProps } from "./props";
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
...{ name: "EleCronBuilder" },
|
|
9
|
+
__name: "index",
|
|
10
|
+
props: cronBuilderProps,
|
|
11
|
+
emits: cronBuilderEmits,
|
|
12
|
+
setup(__props, { emit: __emit }) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
const emit = __emit;
|
|
15
|
+
const { lang } = useLocale("cronBuilder", props);
|
|
16
|
+
const cronPanelRef = ref(null);
|
|
17
|
+
const updateModelValue = (value) => {
|
|
18
|
+
emit("update:modelValue", value);
|
|
19
|
+
};
|
|
20
|
+
const updateCron = (cron) => {
|
|
21
|
+
emit("update:cron", cron);
|
|
22
|
+
};
|
|
23
|
+
const hideCronList = () => {
|
|
24
|
+
var _a, _b;
|
|
25
|
+
(_b = (_a = cronPanelRef.value) == null ? void 0 : _a.hideCronList) == null ? void 0 : _b.call(_a);
|
|
26
|
+
};
|
|
27
|
+
const handleCancel = () => {
|
|
28
|
+
hideCronList();
|
|
29
|
+
updateModelValue(false);
|
|
30
|
+
};
|
|
31
|
+
const handleConfirm = () => {
|
|
32
|
+
hideCronList();
|
|
33
|
+
emit("done", props.cron);
|
|
34
|
+
};
|
|
35
|
+
const handleClosed = () => {
|
|
36
|
+
hideCronList();
|
|
37
|
+
};
|
|
38
|
+
return (_ctx, _cache) => {
|
|
39
|
+
return openBlock(), createBlock(EleModal, mergeProps({
|
|
40
|
+
width: 832,
|
|
41
|
+
title: _ctx.title ?? unref(lang).title,
|
|
42
|
+
position: "center",
|
|
43
|
+
class: "ele-cron-builder"
|
|
44
|
+
}, _ctx.modalProps || {}, {
|
|
45
|
+
modelValue: _ctx.modelValue,
|
|
46
|
+
"onUpdate:modelValue": updateModelValue,
|
|
47
|
+
onClosed: handleClosed
|
|
48
|
+
}), {
|
|
49
|
+
footer: withCtx(() => [
|
|
50
|
+
createVNode(unref(ElButton), { onClick: handleCancel }, {
|
|
51
|
+
default: withCtx(() => [
|
|
52
|
+
createTextVNode(toDisplayString(unref(lang).cancel), 1)
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
}),
|
|
56
|
+
createVNode(unref(ElButton), {
|
|
57
|
+
type: "primary",
|
|
58
|
+
onClick: handleConfirm
|
|
59
|
+
}, {
|
|
60
|
+
default: withCtx(() => [
|
|
61
|
+
createTextVNode(toDisplayString(unref(lang).confirm), 1)
|
|
62
|
+
]),
|
|
63
|
+
_: 1
|
|
64
|
+
})
|
|
65
|
+
]),
|
|
66
|
+
default: withCtx(() => [
|
|
67
|
+
createVNode(EleCronPanel, {
|
|
68
|
+
ref_key: "cronPanelRef",
|
|
69
|
+
ref: cronPanelRef,
|
|
70
|
+
modelValue: _ctx.cron,
|
|
71
|
+
"onUpdate:modelValue": updateCron
|
|
72
|
+
}, null, 8, ["modelValue"])
|
|
73
|
+
]),
|
|
74
|
+
_: 1
|
|
75
|
+
}, 16, ["title", "modelValue"]);
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
export {
|
|
80
|
+
_sfc_main as default
|
|
81
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
+
import { EleModalProps } from '../ele-app/plus';
|
|
3
|
+
import { CronBuilderLocale } from './types';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 属性
|
|
7
|
+
*/
|
|
8
|
+
export declare const cronBuilderProps: {
|
|
9
|
+
/** 弹窗是否显示 */
|
|
10
|
+
modelValue: BooleanConstructor;
|
|
11
|
+
/** 绑定值 */
|
|
12
|
+
cron: StringConstructor;
|
|
13
|
+
/** 标题 */
|
|
14
|
+
title: StringConstructor;
|
|
15
|
+
/** 弹窗属性 */
|
|
16
|
+
modalProps: PropType<EleModalProps>;
|
|
17
|
+
/** 国际化 */
|
|
18
|
+
locale: PropType<Partial<CronBuilderLocale>>;
|
|
19
|
+
};
|
|
20
|
+
export type CronBuilderProps = ExtractPropTypes<typeof cronBuilderProps>;
|
|
21
|
+
/**
|
|
22
|
+
* 事件
|
|
23
|
+
*/
|
|
24
|
+
export declare const cronBuilderEmits: {
|
|
25
|
+
/** 更新弹窗显示状态 */
|
|
26
|
+
'update:modelValue': (_value?: boolean) => boolean;
|
|
27
|
+
/** 更新绑定值 */
|
|
28
|
+
'update:cron': (_cron?: string) => boolean;
|
|
29
|
+
/** 确定按钮点击事件 */
|
|
30
|
+
done: (_cron?: string) => boolean;
|
|
31
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const cronBuilderProps = {
|
|
2
|
+
/** 弹窗是否显示 */
|
|
3
|
+
modelValue: Boolean,
|
|
4
|
+
/** 绑定值 */
|
|
5
|
+
cron: String,
|
|
6
|
+
/** 标题 */
|
|
7
|
+
title: String,
|
|
8
|
+
/** 弹窗属性 */
|
|
9
|
+
modalProps: Object,
|
|
10
|
+
/** 国际化 */
|
|
11
|
+
locale: Object
|
|
12
|
+
};
|
|
13
|
+
const cronBuilderEmits = {
|
|
14
|
+
/** 更新弹窗显示状态 */
|
|
15
|
+
"update:modelValue": (_value) => true,
|
|
16
|
+
/** 更新绑定值 */
|
|
17
|
+
"update:cron": (_cron) => true,
|
|
18
|
+
/** 确定按钮点击事件 */
|
|
19
|
+
done: (_cron) => true
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
cronBuilderEmits,
|
|
23
|
+
cronBuilderProps
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { CronPanelLocale } from '../types';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
/** day */
|
|
6
|
+
modelValue: StringConstructor;
|
|
7
|
+
/** 国际化 */
|
|
8
|
+
lang: {
|
|
9
|
+
type: PropType<CronPanelLocale>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
"update:modelValue": (_day?: string | undefined) => void;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
15
|
+
/** day */
|
|
16
|
+
modelValue: StringConstructor;
|
|
17
|
+
/** 国际化 */
|
|
18
|
+
lang: {
|
|
19
|
+
type: PropType<CronPanelLocale>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
}>> & Readonly<{
|
|
23
|
+
"onUpdate:modelValue"?: ((_day?: string | undefined) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
25
|
+
export default _default;
|