@kengic/vue 0.0.2-beta.24 → 0.0.2-beta.26
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as l, createVNode as s, openBlock as a, createElementBlock as S, Fragment as W, createElementVNode as g, toDisplayString as $, unref as c, withCtx as w, createTextVNode as C } from "vue";
|
|
2
2
|
import { Button as d } from "ant-design-vue";
|
|
3
|
-
const
|
|
3
|
+
const f = l({
|
|
4
4
|
props: {
|
|
5
5
|
name: String
|
|
6
6
|
},
|
|
@@ -22,17 +22,17 @@ const m = l({
|
|
|
22
22
|
}, {
|
|
23
23
|
default: w(() => [C("CLICK")]),
|
|
24
24
|
_: 1
|
|
25
|
-
}), s(c(
|
|
25
|
+
}), s(c(f), {
|
|
26
26
|
name: "FOO"
|
|
27
27
|
})], 64));
|
|
28
28
|
}
|
|
29
29
|
}), u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
30
30
|
__proto__: null,
|
|
31
31
|
ComponentA: E,
|
|
32
|
-
B:
|
|
32
|
+
B: f
|
|
33
33
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
34
34
|
var r = /* @__PURE__ */ ((e) => (e.WMS = "wms", e.MES = "mes", e.WCS = "wcs", e.SYS = "sys", e))(r || {});
|
|
35
|
-
const
|
|
35
|
+
const m = ["wms", "mes", "wcs", "sys"];
|
|
36
36
|
function y(e, n) {
|
|
37
37
|
var t, o, i;
|
|
38
38
|
switch (n) {
|
|
@@ -49,7 +49,7 @@ function y(e, n) {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
function k(e) {
|
|
52
|
-
const n =
|
|
52
|
+
const n = m.find((t) => y(e, t));
|
|
53
53
|
if (n)
|
|
54
54
|
return n;
|
|
55
55
|
throw new Error(`\u5730\u5740\u65E0\u6CD5\u5339\u914D\u6A21\u5757. \u5730\u5740: ${e}`);
|
|
@@ -83,9 +83,9 @@ function A(e) {
|
|
|
83
83
|
"/online/cgformTreeList/:id",
|
|
84
84
|
"/online/cgreport/:id",
|
|
85
85
|
"/online/graphreport/chart/:code"
|
|
86
|
-
].includes(t.path) &&
|
|
86
|
+
].includes(t.path) && m.forEach((o) => {
|
|
87
87
|
n.push({ ...t, path: `/${o}${t.path}` });
|
|
88
|
-
}), t.children && A(t.children);
|
|
88
|
+
}), t.children && (t.children = A(t.children));
|
|
89
89
|
}), [...e, ...n];
|
|
90
90
|
}
|
|
91
91
|
function b(e) {
|
|
@@ -94,9 +94,9 @@ function b(e) {
|
|
|
94
94
|
}
|
|
95
95
|
const B = { install: b };
|
|
96
96
|
export {
|
|
97
|
-
|
|
97
|
+
f as B,
|
|
98
98
|
E as ComponentA,
|
|
99
|
-
|
|
99
|
+
m as KG_APPS,
|
|
100
100
|
r as KG_APPS_ENUM,
|
|
101
101
|
A as addOnlineRoutesForAllApps,
|
|
102
102
|
B as default,
|
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.26",
|
|
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",
|
|
@@ -39,13 +39,14 @@
|
|
|
39
39
|
"vue": "~3.2.45",
|
|
40
40
|
"vue-tsc": "~1.2.0"
|
|
41
41
|
},
|
|
42
|
+
"main": "./dist/kengic-vue.js",
|
|
43
|
+
"module": "./dist/kengic-vue.js",
|
|
42
44
|
"types": "./dist/types/index.d.ts",
|
|
43
|
-
"module": "./dist/index.js",
|
|
44
45
|
"exports": {
|
|
45
46
|
".": {
|
|
46
|
-
"import": "./dist/
|
|
47
|
+
"import": "./dist/kengic-vue.js"
|
|
47
48
|
},
|
|
48
|
-
"./dist/
|
|
49
|
+
"./dist/kengic-vue.css": "./dist/kengic-vue.css",
|
|
49
50
|
"./dist/css/transition.css": "./dist/css/transition.css"
|
|
50
51
|
},
|
|
51
52
|
"prettier": {
|
|
File without changes
|