@kengic/vue 0.0.2-beta.30 → 0.0.2-beta.31
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/kengic-vue.js +39 -39
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as O, createVNode as M, openBlock as Z, createElementBlock as z, Fragment as G, createElementVNode as
|
|
1
|
+
import { defineComponent as O, createVNode as M, openBlock as Z, createElementBlock as z, Fragment as G, createElementVNode as p, toDisplayString as J, unref as x, withCtx as U, createTextVNode as H } from "vue";
|
|
2
2
|
import { Button as D } from "ant-design-vue";
|
|
3
|
-
const
|
|
3
|
+
const X = O({
|
|
4
4
|
props: {
|
|
5
5
|
name: String
|
|
6
6
|
},
|
|
@@ -17,21 +17,21 @@ const p = O({
|
|
|
17
17
|
msg: String
|
|
18
18
|
},
|
|
19
19
|
setup(e) {
|
|
20
|
-
return (
|
|
20
|
+
return (i, r) => (Z(), z(G, null, [p("div", null, "Hello " + J(e.msg) + "!", 1), M(x(D), {
|
|
21
21
|
type: "primary"
|
|
22
22
|
}, {
|
|
23
|
-
default: U(() => [
|
|
23
|
+
default: U(() => [H("CLICK")]),
|
|
24
24
|
_: 1
|
|
25
|
-
}), M(x(
|
|
25
|
+
}), M(x(X), {
|
|
26
26
|
name: "FOO"
|
|
27
27
|
})], 64));
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
var s = /* @__PURE__ */ ((e) => (e.WMS = "wms", e.MES = "mes", e.WCS = "wcs", e.SYS = "sys", e))(s || {});
|
|
31
31
|
const v = ["wms", "mes", "wcs", "sys"];
|
|
32
|
-
function q(e,
|
|
32
|
+
function q(e, i) {
|
|
33
33
|
var r, o, u;
|
|
34
|
-
switch (
|
|
34
|
+
switch (i) {
|
|
35
35
|
case s.WMS:
|
|
36
36
|
return (r = e == null ? void 0 : e.startsWith(`/${s.WMS}`)) != null ? r : !1;
|
|
37
37
|
case s.MES:
|
|
@@ -41,34 +41,34 @@ function q(e, t) {
|
|
|
41
41
|
case s.SYS:
|
|
42
42
|
return !(e != null && e.startsWith(`/${s.WMS}`)) && !(e != null && e.startsWith(`/${s.MES}`)) && !(e != null && e.startsWith(`/${s.WCS}`));
|
|
43
43
|
default:
|
|
44
|
-
throw new Error(`\u672A\u77E5\u6A21\u5757: ${
|
|
44
|
+
throw new Error(`\u672A\u77E5\u6A21\u5757: ${i}`);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
function Ne(e) {
|
|
48
|
-
const
|
|
49
|
-
if (
|
|
50
|
-
return
|
|
48
|
+
const i = v.find((r) => q(e, r));
|
|
49
|
+
if (i)
|
|
50
|
+
return i;
|
|
51
51
|
throw new Error(`\u5730\u5740\u65E0\u6CD5\u5339\u914D\u6A21\u5757. \u5730\u5740: ${e}`);
|
|
52
52
|
}
|
|
53
53
|
function $e(e) {
|
|
54
|
-
let
|
|
54
|
+
let i = "";
|
|
55
55
|
switch (e) {
|
|
56
56
|
case s.WMS:
|
|
57
|
-
|
|
57
|
+
i = `/${e}/views/adrmst`;
|
|
58
58
|
break;
|
|
59
59
|
case s.MES:
|
|
60
|
-
|
|
60
|
+
i = `/${e}/about/index`;
|
|
61
61
|
break;
|
|
62
62
|
case s.WCS:
|
|
63
|
-
|
|
63
|
+
i = `/${e}/about/index`;
|
|
64
64
|
break;
|
|
65
65
|
case s.SYS:
|
|
66
|
-
|
|
66
|
+
i = "/about/index";
|
|
67
67
|
break;
|
|
68
68
|
default:
|
|
69
69
|
throw new Error(`\u672A\u77E5\u6A21\u5757: ${e}`);
|
|
70
70
|
}
|
|
71
|
-
return
|
|
71
|
+
return i;
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
74
|
* filesize
|
|
@@ -77,7 +77,7 @@ function $e(e) {
|
|
|
77
77
|
* @license BSD-3-Clause
|
|
78
78
|
* @version 10.0.6
|
|
79
79
|
*/
|
|
80
|
-
const Q = "array", ee = "bit", Y = "bits",
|
|
80
|
+
const Q = "array", ee = "bit", Y = "bits", te = "byte", R = "bytes", m = "", ie = "exponent", ne = "function", E = "iec", oe = "Invalid number", re = "Invalid rounding method", S = "jedec", se = "object", k = ".", ce = "round", le = "s", ue = "kbit", fe = "kB", me = " ", be = "string", Se = "0", I = {
|
|
81
81
|
symbol: {
|
|
82
82
|
iec: {
|
|
83
83
|
bits: ["bit", "Kibit", "Mibit", "Gibit", "Tibit", "Pibit", "Eibit", "Zibit", "Yibit"],
|
|
@@ -94,7 +94,7 @@ const Q = "array", ee = "bit", Y = "bits", ie = "byte", R = "bytes", m = "", te
|
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
function ge(e, {
|
|
97
|
-
bits:
|
|
97
|
+
bits: i = !1,
|
|
98
98
|
pad: r = !1,
|
|
99
99
|
base: o = -1,
|
|
100
100
|
round: u = 2,
|
|
@@ -107,43 +107,43 @@ function ge(e, {
|
|
|
107
107
|
output: N = be,
|
|
108
108
|
fullform: K = !1,
|
|
109
109
|
fullforms: T = [],
|
|
110
|
-
exponent:
|
|
110
|
+
exponent: a = -1,
|
|
111
111
|
roundingMethod: _ = ce,
|
|
112
112
|
precision: g = 0
|
|
113
113
|
} = {}) {
|
|
114
|
-
let n =
|
|
114
|
+
let n = a, f = Number(e), t = [], l = 0, $ = m;
|
|
115
115
|
o === -1 && c.length === 0 ? (o = 10, c = S) : o === -1 && c.length > 0 ? (c = c === E ? E : S, o = c === E ? 2 : 10) : (o = o === 2 ? 2 : 10, c = o === 10 || c === S ? S : E);
|
|
116
|
-
const B = o === 10 ? 1e3 : 1024, j = K === !0,
|
|
116
|
+
const B = o === 10 ? 1e3 : 1024, j = K === !0, d = f < 0, C = Math[_];
|
|
117
117
|
if (typeof e != "bigint" && isNaN(e))
|
|
118
118
|
throw new TypeError(oe);
|
|
119
119
|
if (typeof C !== ne)
|
|
120
120
|
throw new TypeError(re);
|
|
121
|
-
if (
|
|
121
|
+
if (d && (f = -f), (n === -1 || isNaN(n)) && (n = Math.floor(Math.log(f) / Math.log(B)), n < 0 && (n = 0)), n > 8 && (g > 0 && (g += 8 - n), n = 8), N === ie)
|
|
122
122
|
return n;
|
|
123
123
|
if (f === 0)
|
|
124
|
-
|
|
124
|
+
t[0] = 0, $ = t[1] = I.symbol[c][i ? Y : R][n];
|
|
125
125
|
else {
|
|
126
|
-
l = f / (o === 2 ? Math.pow(2, n * 10) : Math.pow(1e3, n)),
|
|
126
|
+
l = f / (o === 2 ? Math.pow(2, n * 10) : Math.pow(1e3, n)), i && (l = l * 8, l >= B && n < 8 && (l = l / B, n++));
|
|
127
127
|
const b = Math.pow(10, n > 0 ? u : 0);
|
|
128
|
-
|
|
128
|
+
t[0] = C(l * b) / b, t[0] === B && n < 8 && a === -1 && (t[0] = 1, n++), $ = t[1] = o === 10 && n === 1 ? i ? ue : fe : I.symbol[c][i ? Y : R][n];
|
|
129
129
|
}
|
|
130
|
-
if (
|
|
131
|
-
const b = w || k, W =
|
|
132
|
-
|
|
130
|
+
if (d && (t[0] = -t[0]), g > 0 && (t[0] = t[0].toPrecision(g)), t[1] = F[t[1]] || t[1], y === !0 ? t[0] = t[0].toLocaleString() : y.length > 0 ? t[0] = t[0].toLocaleString(y, P) : w.length > 0 && (t[0] = t[0].toString().replace(k, w)), r && Number.isInteger(t[0]) === !1 && u > 0) {
|
|
131
|
+
const b = w || k, W = t[0].toString().split(b), A = W[1] || m, h = A.length, V = u - h;
|
|
132
|
+
t[0] = `${W[0]}${b}${A.padEnd(h + V, Se)}`;
|
|
133
133
|
}
|
|
134
|
-
return j && (
|
|
135
|
-
value:
|
|
136
|
-
symbol:
|
|
134
|
+
return j && (t[1] = T[n] ? T[n] : I.fullform[c][n] + (i ? ee : te) + (t[0] === 1 ? m : le)), N === Q ? t : N === se ? {
|
|
135
|
+
value: t[0],
|
|
136
|
+
symbol: t[1],
|
|
137
137
|
exponent: n,
|
|
138
138
|
unit: $
|
|
139
|
-
} :
|
|
139
|
+
} : t.join(L);
|
|
140
140
|
}
|
|
141
141
|
function Ie(e) {
|
|
142
|
-
const
|
|
143
|
-
return Number.isNaN(
|
|
142
|
+
const i = Number(e);
|
|
143
|
+
return Number.isNaN(i) || i <= 0 ? "0 KB" : String(ge(i)).toUpperCase();
|
|
144
144
|
}
|
|
145
145
|
function Be(e) {
|
|
146
|
-
const
|
|
146
|
+
const i = [];
|
|
147
147
|
return e.forEach((r) => {
|
|
148
148
|
[
|
|
149
149
|
"/online/copyform/:code",
|
|
@@ -152,17 +152,17 @@ function Be(e) {
|
|
|
152
152
|
"/online/cgreport/:id",
|
|
153
153
|
"/online/graphreport/chart/:code"
|
|
154
154
|
].includes(r.path) && v.forEach((o) => {
|
|
155
|
-
|
|
155
|
+
i.push({
|
|
156
156
|
...r,
|
|
157
157
|
path: `/${o}${r.path}`,
|
|
158
158
|
name: `${o}-${r.name}`,
|
|
159
159
|
id: `${o}-${r.id}`
|
|
160
160
|
});
|
|
161
161
|
}), r.children && (r.children = Be(r.children));
|
|
162
|
-
}), [...e, ...
|
|
162
|
+
}), [...e, ...i];
|
|
163
163
|
}
|
|
164
164
|
export {
|
|
165
|
-
|
|
165
|
+
X as B,
|
|
166
166
|
we as ComponentA,
|
|
167
167
|
v as KG_APPS,
|
|
168
168
|
s as KG_APPS_ENUM,
|