@kengic/vue 0.0.2-beta.22 → 0.0.2-beta.23
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/index.js
CHANGED
|
@@ -1,61 +1,62 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as i, createVNode as o, openBlock as a, createElementBlock as m, Fragment as d, createElementVNode as f, toDisplayString as u, unref as r, withCtx as g, createTextVNode as h } from "vue";
|
|
2
2
|
import { Button as l } from "ant-design-vue";
|
|
3
|
-
const
|
|
3
|
+
const s = i({
|
|
4
4
|
props: {
|
|
5
5
|
name: String
|
|
6
6
|
},
|
|
7
|
-
setup(
|
|
7
|
+
setup(e) {
|
|
8
8
|
return () => o(l, {
|
|
9
9
|
type: "ghost"
|
|
10
10
|
}, {
|
|
11
|
-
default: () => [
|
|
11
|
+
default: () => [e.name]
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
}),
|
|
14
|
+
}), y = /* @__PURE__ */ i({
|
|
15
15
|
__name: "ComponentA",
|
|
16
16
|
props: {
|
|
17
17
|
msg: String
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
return (
|
|
19
|
+
setup(e) {
|
|
20
|
+
return (n, t) => (a(), m(d, null, [f("div", null, "Hello " + u(e.msg) + "!", 1), o(r(l), {
|
|
21
21
|
type: "primary"
|
|
22
22
|
}, {
|
|
23
|
-
default:
|
|
23
|
+
default: g(() => [h("CLICK")]),
|
|
24
24
|
_: 1
|
|
25
|
-
}), o(r(
|
|
25
|
+
}), o(r(s), {
|
|
26
26
|
name: "FOO"
|
|
27
27
|
})], 64));
|
|
28
28
|
}
|
|
29
29
|
}), c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
30
30
|
__proto__: null,
|
|
31
|
-
ComponentA:
|
|
32
|
-
B:
|
|
31
|
+
ComponentA: y,
|
|
32
|
+
B: s
|
|
33
33
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
const t = [];
|
|
40
|
-
return n.forEach((e) => {
|
|
34
|
+
var C = /* @__PURE__ */ ((e) => (e.WMS = "wms", e.MES = "mes", e.WCS = "wcs", e))(C || {});
|
|
35
|
+
const _ = ["wms", "mes", "wcs"];
|
|
36
|
+
function S(e) {
|
|
37
|
+
const n = [];
|
|
38
|
+
return e.forEach((t) => {
|
|
41
39
|
[
|
|
42
40
|
"/online/copyform/:code",
|
|
43
41
|
"/online/cgformList/:id",
|
|
44
42
|
"/online/cgformTreeList/:id",
|
|
45
43
|
"/online/cgreport/:id",
|
|
46
44
|
"/online/graphreport/chart/:code"
|
|
47
|
-
].includes(
|
|
48
|
-
|
|
45
|
+
].includes(t.path) && _.forEach((p) => {
|
|
46
|
+
n.push({ ...t, path: `/${p}${t.path}` });
|
|
47
|
+
}), t.children && S(t.children);
|
|
48
|
+
}), [...e, ...n];
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
for (const
|
|
52
|
-
|
|
50
|
+
function x(e) {
|
|
51
|
+
for (const n in c)
|
|
52
|
+
e.component(n, c[n]);
|
|
53
53
|
}
|
|
54
|
-
const
|
|
54
|
+
const A = { install: x };
|
|
55
55
|
export {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
s as B,
|
|
57
|
+
y as ComponentA,
|
|
58
|
+
_ as KG_APPS,
|
|
59
|
+
C as KG_APPS_ENUM,
|
|
60
|
+
S as addOnlineRoutesForAllApps,
|
|
61
|
+
A as default
|
|
61
62
|
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { type App } from 'vue';
|
|
|
2
2
|
declare function install(app: App): void;
|
|
3
3
|
import './assets/index.less';
|
|
4
4
|
export * from './components';
|
|
5
|
-
export * from './
|
|
5
|
+
export * from './consts';
|
|
6
6
|
export * from './utils';
|
|
7
7
|
declare const _default: {
|
|
8
8
|
install: typeof install;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const MAGIC_NUM = 100;
|