@kengic/vue 0.0.2-beta.35 → 0.0.2-beta.37
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/css/animation.css +3 -0
- package/dist/kengic-vue.js +88 -92
- package/dist/src/consts/index.d.ts +10 -9
- package/package.json +2 -2
package/dist/css/animation.css
CHANGED
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
.ant-switch,
|
|
14
14
|
.ant-switch-inner,
|
|
15
15
|
.ant-switch-handle,
|
|
16
|
+
.ant-radio-button-wrapper,
|
|
17
|
+
.ant-form-item-explain,
|
|
18
|
+
.ant-form-item-extra,
|
|
16
19
|
.jeecg-app-logo,
|
|
17
20
|
.jeecg-menu-menu-popover .jeecg-menu-item,
|
|
18
21
|
.jeecg-menu-menu-popover .jeecg-menu-submenu-title,
|
package/dist/kengic-vue.js
CHANGED
|
@@ -1,51 +1,49 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Button as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as x, createVNode as T, openBlock as V, createElementBlock as Z, Fragment as P, createElementVNode as z, toDisplayString as J, unref as $, withCtx as H, createTextVNode as q } from "vue";
|
|
2
|
+
import { Button as L } from "ant-design-vue";
|
|
3
|
+
const Q = x({
|
|
4
4
|
props: {
|
|
5
5
|
name: String
|
|
6
6
|
},
|
|
7
7
|
setup(e) {
|
|
8
|
-
return () =>
|
|
8
|
+
return () => T(L, {
|
|
9
9
|
type: "ghost"
|
|
10
10
|
}, {
|
|
11
11
|
default: () => [e.name]
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
}),
|
|
14
|
+
}), ye = /* @__PURE__ */ x({
|
|
15
15
|
__name: "ComponentA",
|
|
16
16
|
props: {
|
|
17
17
|
msg: String
|
|
18
18
|
},
|
|
19
19
|
setup(e) {
|
|
20
|
-
return (t, o) => (
|
|
20
|
+
return (t, o) => (V(), Z(P, null, [z("div", null, "Hello " + J(e.msg) + "!", 1), T($(L), {
|
|
21
21
|
type: "primary"
|
|
22
22
|
}, {
|
|
23
|
-
default:
|
|
23
|
+
default: H(() => [q("CLICK")]),
|
|
24
24
|
_: 1
|
|
25
|
-
}), $(
|
|
25
|
+
}), T($(Q), {
|
|
26
26
|
name: "FOO"
|
|
27
27
|
})], 64));
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
var
|
|
31
|
-
const
|
|
32
|
-
function
|
|
33
|
-
var o,
|
|
30
|
+
var b = /* @__PURE__ */ ((e) => (e.DATA_MANAGER = "data-manager", e.BUSINESS_MANAGER = "business-manager", e.SYS = "sys", e))(b || {}), u = /* @__PURE__ */ ((e) => (e.DATA_MANAGER = "/wms/data-manager", e.BUSINESS_MANAGER = "/wms/business-manager", e.SYS = "/sys", e))(u || {});
|
|
31
|
+
const v = ["data-manager", "business-manager", "sys"];
|
|
32
|
+
function X(e, t) {
|
|
33
|
+
var o, i;
|
|
34
34
|
switch (t) {
|
|
35
|
-
case
|
|
36
|
-
return (o = e == null ? void 0 : e.startsWith(
|
|
37
|
-
case
|
|
38
|
-
return (
|
|
39
|
-
case
|
|
40
|
-
return (
|
|
41
|
-
case c.SYS:
|
|
42
|
-
return !(e != null && e.startsWith(`/${c.WMS}`)) && !(e != null && e.startsWith(`/${c.MES}`)) && !(e != null && e.startsWith(`/${c.WCS}`));
|
|
35
|
+
case b.DATA_MANAGER:
|
|
36
|
+
return (o = e == null ? void 0 : e.startsWith(u.DATA_MANAGER)) != null ? o : !1;
|
|
37
|
+
case b.BUSINESS_MANAGER:
|
|
38
|
+
return (i = e == null ? void 0 : e.startsWith(u.BUSINESS_MANAGER)) != null ? i : !1;
|
|
39
|
+
case b.SYS:
|
|
40
|
+
return (e == null ? void 0 : e.startsWith(u.SYS)) || !(e != null && e.startsWith(u.DATA_MANAGER)) && !(e != null && e.startsWith(u.BUSINESS_MANAGER));
|
|
43
41
|
default:
|
|
44
42
|
throw new Error(`\u672A\u77E5\u6A21\u5757: ${t}`);
|
|
45
43
|
}
|
|
46
44
|
}
|
|
47
|
-
function
|
|
48
|
-
const t =
|
|
45
|
+
function de(e) {
|
|
46
|
+
const t = v.find((o) => X(e, o));
|
|
49
47
|
if (t)
|
|
50
48
|
return t;
|
|
51
49
|
throw new Error(`\u5730\u5740\u65E0\u6CD5\u5339\u914D\u6A21\u5757. \u5730\u5740: ${e}`);
|
|
@@ -53,16 +51,13 @@ function we(e) {
|
|
|
53
51
|
function he(e) {
|
|
54
52
|
let t = "";
|
|
55
53
|
switch (e) {
|
|
56
|
-
case
|
|
57
|
-
t =
|
|
54
|
+
case b.DATA_MANAGER:
|
|
55
|
+
t = `${u.DATA_MANAGER}/views/adrmst`;
|
|
58
56
|
break;
|
|
59
|
-
case
|
|
60
|
-
t =
|
|
57
|
+
case b.BUSINESS_MANAGER:
|
|
58
|
+
t = `${u.BUSINESS_MANAGER}/outbound-plan/outbound-order/outbound-order`;
|
|
61
59
|
break;
|
|
62
|
-
case
|
|
63
|
-
t = `/${e}/about/index`;
|
|
64
|
-
break;
|
|
65
|
-
case c.SYS:
|
|
60
|
+
case b.SYS:
|
|
66
61
|
t = "/about/index";
|
|
67
62
|
break;
|
|
68
63
|
default:
|
|
@@ -77,7 +72,7 @@ function he(e) {
|
|
|
77
72
|
* @license BSD-3-Clause
|
|
78
73
|
* @version 10.0.6
|
|
79
74
|
*/
|
|
80
|
-
const
|
|
75
|
+
const ee = "array", te = "bit", U = "bits", ne = "byte", O = "bytes", E = "", ie = "exponent", oe = "function", d = "iec", re = "Invalid number", se = "Invalid rounding method", B = "jedec", ce = "object", k = ".", le = "round", ue = "s", fe = "kbit", Ae = "kB", be = " ", ae = "string", me = "0", I = {
|
|
81
76
|
symbol: {
|
|
82
77
|
iec: {
|
|
83
78
|
bits: ["bit", "Kibit", "Mibit", "Gibit", "Tibit", "Pibit", "Eibit", "Zibit", "Yibit"],
|
|
@@ -93,75 +88,75 @@ const Q = "array", ee = "bit", Y = "bits", te = "byte", L = "bytes", B = "", ie
|
|
|
93
88
|
jedec: ["", "kilo", "mega", "giga", "tera", "peta", "exa", "zetta", "yotta"]
|
|
94
89
|
}
|
|
95
90
|
};
|
|
96
|
-
function
|
|
91
|
+
function Ee(e, {
|
|
97
92
|
bits: t = !1,
|
|
98
93
|
pad: o = !1,
|
|
99
|
-
base:
|
|
94
|
+
base: i = -1,
|
|
100
95
|
round: l = 2,
|
|
101
|
-
locale:
|
|
102
|
-
localeOptions:
|
|
103
|
-
separator: f =
|
|
96
|
+
locale: c = E,
|
|
97
|
+
localeOptions: a = {},
|
|
98
|
+
separator: f = E,
|
|
104
99
|
spacer: S = be,
|
|
105
100
|
symbols: h = {},
|
|
106
|
-
standard: s =
|
|
107
|
-
output:
|
|
101
|
+
standard: s = E,
|
|
102
|
+
output: R = ae,
|
|
108
103
|
fullform: j = !1,
|
|
109
|
-
fullforms:
|
|
110
|
-
exponent:
|
|
111
|
-
roundingMethod:
|
|
112
|
-
precision:
|
|
104
|
+
fullforms: M = [],
|
|
105
|
+
exponent: p = -1,
|
|
106
|
+
roundingMethod: W = le,
|
|
107
|
+
precision: N = 0
|
|
113
108
|
} = {}) {
|
|
114
|
-
let r =
|
|
115
|
-
|
|
116
|
-
const
|
|
109
|
+
let r = p, m = Number(e), n = [], A = 0, w = E;
|
|
110
|
+
i === -1 && s.length === 0 ? (i = 10, s = B) : i === -1 && s.length > 0 ? (s = s === d ? d : B, i = s === d ? 2 : 10) : (i = i === 2 ? 2 : 10, s = i === 10 || s === B ? B : d);
|
|
111
|
+
const y = i === 10 ? 1e3 : 1024, F = j === !0, G = m < 0, C = Math[W];
|
|
117
112
|
if (typeof e != "bigint" && isNaN(e))
|
|
118
|
-
throw new TypeError(oe);
|
|
119
|
-
if (typeof W !== ne)
|
|
120
113
|
throw new TypeError(re);
|
|
121
|
-
if (
|
|
114
|
+
if (typeof C !== oe)
|
|
115
|
+
throw new TypeError(se);
|
|
116
|
+
if (G && (m = -m), (r === -1 || isNaN(r)) && (r = Math.floor(Math.log(m) / Math.log(y)), r < 0 && (r = 0)), r > 8 && (N > 0 && (N += 8 - r), r = 8), R === ie)
|
|
122
117
|
return r;
|
|
123
|
-
if (
|
|
124
|
-
|
|
118
|
+
if (m === 0)
|
|
119
|
+
n[0] = 0, w = n[1] = I.symbol[s][t ? U : O][r];
|
|
125
120
|
else {
|
|
126
|
-
|
|
127
|
-
const
|
|
128
|
-
|
|
121
|
+
A = m / (i === 2 ? Math.pow(2, r * 10) : Math.pow(1e3, r)), t && (A = A * 8, A >= y && r < 8 && (A = A / y, r++));
|
|
122
|
+
const g = Math.pow(10, r > 0 ? l : 0);
|
|
123
|
+
n[0] = C(A * g) / g, n[0] === y && r < 8 && p === -1 && (n[0] = 1, r++), w = n[1] = i === 10 && r === 1 ? t ? fe : Ae : I.symbol[s][t ? U : O][r];
|
|
129
124
|
}
|
|
130
|
-
if (
|
|
131
|
-
const
|
|
132
|
-
|
|
125
|
+
if (G && (n[0] = -n[0]), N > 0 && (n[0] = n[0].toPrecision(N)), n[1] = h[n[1]] || n[1], c === !0 ? n[0] = n[0].toLocaleString() : c.length > 0 ? n[0] = n[0].toLocaleString(c, a) : f.length > 0 && (n[0] = n[0].toString().replace(k, f)), o && Number.isInteger(n[0]) === !1 && l > 0) {
|
|
126
|
+
const g = f || k, D = n[0].toString().split(g), _ = D[1] || E, Y = _.length, K = l - Y;
|
|
127
|
+
n[0] = `${D[0]}${g}${_.padEnd(Y + K, me)}`;
|
|
133
128
|
}
|
|
134
|
-
return
|
|
135
|
-
value:
|
|
136
|
-
symbol:
|
|
129
|
+
return F && (n[1] = M[r] ? M[r] : I.fullform[s][r] + (t ? te : ne) + (n[0] === 1 ? E : ue)), R === ee ? n : R === ce ? {
|
|
130
|
+
value: n[0],
|
|
131
|
+
symbol: n[1],
|
|
137
132
|
exponent: r,
|
|
138
|
-
unit:
|
|
139
|
-
} :
|
|
133
|
+
unit: w
|
|
134
|
+
} : n.join(S);
|
|
140
135
|
}
|
|
141
|
-
function
|
|
136
|
+
function Re(e) {
|
|
142
137
|
const t = Number(e);
|
|
143
|
-
return Number.isNaN(t) || t <= 0 ? "0 KB" : String(
|
|
138
|
+
return Number.isNaN(t) || t <= 0 ? "0 KB" : String(Ee(t)).toUpperCase();
|
|
144
139
|
}
|
|
145
|
-
function
|
|
146
|
-
let
|
|
147
|
-
|
|
148
|
-
const l = atob(
|
|
149
|
-
for (let
|
|
150
|
-
const f = l.slice(
|
|
140
|
+
function ge(e, t, o = 512) {
|
|
141
|
+
let i = e;
|
|
142
|
+
i.startsWith("data:") && (i = e.split("base64,")[1]);
|
|
143
|
+
const l = atob(i), c = [];
|
|
144
|
+
for (let a = 0; a < l.length; a += o) {
|
|
145
|
+
const f = l.slice(a, a + o), S = new Array(f.length);
|
|
151
146
|
for (let s = 0; s < f.length; s++)
|
|
152
147
|
S[s] = f.charCodeAt(s);
|
|
153
148
|
const h = new Uint8Array(S);
|
|
154
|
-
|
|
149
|
+
c.push(h);
|
|
155
150
|
}
|
|
156
|
-
return new Blob(
|
|
151
|
+
return new Blob(c, { type: t });
|
|
157
152
|
}
|
|
158
|
-
function
|
|
159
|
-
let
|
|
160
|
-
typeof e == "string" ?
|
|
161
|
-
const l = URL.createObjectURL(
|
|
162
|
-
document.body.appendChild(
|
|
153
|
+
function we(e, t, o) {
|
|
154
|
+
let i;
|
|
155
|
+
typeof e == "string" ? i = new Blob([ge(e, o)], { type: o }) : i = new Blob([e], { type: o });
|
|
156
|
+
const l = URL.createObjectURL(i), c = document.createElement("a");
|
|
157
|
+
document.body.appendChild(c), c.setAttribute("style", "display:none"), c.setAttribute("href", l), c.setAttribute("download", t), c.click(), URL.revokeObjectURL(l);
|
|
163
158
|
}
|
|
164
|
-
function
|
|
159
|
+
function Be(e) {
|
|
165
160
|
const t = [];
|
|
166
161
|
return e.forEach((o) => {
|
|
167
162
|
[
|
|
@@ -170,26 +165,27 @@ function ye(e) {
|
|
|
170
165
|
"/online/cgformTreeList/:id",
|
|
171
166
|
"/online/cgreport/:id",
|
|
172
167
|
"/online/graphreport/chart/:code"
|
|
173
|
-
].includes(o.path) &&
|
|
168
|
+
].includes(o.path) && v.forEach((i) => {
|
|
174
169
|
t.push({
|
|
175
170
|
...o,
|
|
176
|
-
path: `/${
|
|
177
|
-
name: `${
|
|
178
|
-
id: `${
|
|
171
|
+
path: `/${i}${o.path}`,
|
|
172
|
+
name: `${i}-${o.name}`,
|
|
173
|
+
id: `${i}-${o.id}`
|
|
179
174
|
});
|
|
180
|
-
}), o.children && (o.children =
|
|
175
|
+
}), o.children && (o.children = Be(o.children));
|
|
181
176
|
}), [...e, ...t];
|
|
182
177
|
}
|
|
183
178
|
export {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
we as
|
|
179
|
+
Q as B,
|
|
180
|
+
ye as ComponentA,
|
|
181
|
+
v as KG_APPS,
|
|
182
|
+
b as KG_APPS_ENUM,
|
|
183
|
+
u as KG_APPS_PREFIXS_ENUM,
|
|
184
|
+
Be as addOnlineRoutesForAllApps,
|
|
185
|
+
ge as base64toBlob,
|
|
186
|
+
we as downloadFile,
|
|
187
|
+
de as getAppByPath,
|
|
192
188
|
he as getAppIndexPath,
|
|
193
|
-
|
|
194
|
-
|
|
189
|
+
Re as getFileSize,
|
|
190
|
+
X as isPathInApp
|
|
195
191
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 系统所有模块.
|
|
3
|
-
*/
|
|
1
|
+
/** 所有模块. */
|
|
4
2
|
export declare const enum KG_APPS_ENUM {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
WCS = "wcs",
|
|
3
|
+
DATA_MANAGER = "data-manager",
|
|
4
|
+
BUSINESS_MANAGER = "business-manager",
|
|
8
5
|
SYS = "sys"
|
|
9
6
|
}
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
/** 模块路径前缀. */
|
|
8
|
+
export declare const enum KG_APPS_PREFIXS_ENUM {
|
|
9
|
+
DATA_MANAGER = "/wms/data-manager",
|
|
10
|
+
BUSINESS_MANAGER = "/wms/business-manager",
|
|
11
|
+
SYS = "/sys"
|
|
12
|
+
}
|
|
13
|
+
/** 所有模块. */
|
|
13
14
|
export declare const KG_APPS: Array<KG_APPS_ENUM>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kengic/vue",
|
|
3
|
-
"version": "0.0.2-beta.
|
|
3
|
+
"version": "0.0.2-beta.37",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "rimraf dist && vue-tsc && vite build",
|
|
6
6
|
"publish:all:beta": "npm run bump-version:beta && npm run publish:all",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"main": "./dist/kengic-vue.js",
|
|
44
44
|
"module": "./dist/kengic-vue.js",
|
|
45
|
-
"types": "./dist/
|
|
45
|
+
"types": "./dist/src/index.d.ts",
|
|
46
46
|
"exports": {
|
|
47
47
|
".": {
|
|
48
48
|
"import": "./dist/kengic-vue.js"
|