@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 p, createVNode as o, openBlock as a, createElementBlock as s, Fragment as m, createElementVNode as d, toDisplayString as f, unref as r, withCtx as h, createTextVNode as u } from "vue";
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 i = p({
3
+ const s = i({
4
4
  props: {
5
5
  name: String
6
6
  },
7
- setup(n) {
7
+ setup(e) {
8
8
  return () => o(l, {
9
9
  type: "ghost"
10
10
  }, {
11
- default: () => [n.name]
11
+ default: () => [e.name]
12
12
  });
13
13
  }
14
- }), _ = /* @__PURE__ */ p({
14
+ }), y = /* @__PURE__ */ i({
15
15
  __name: "ComponentA",
16
16
  props: {
17
17
  msg: String
18
18
  },
19
- setup(n) {
20
- return (t, e) => (a(), s(m, null, [d("div", null, "Hello " + f(n.msg) + "!", 1), o(r(l), {
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: h(() => [u("CLICK")]),
23
+ default: g(() => [h("CLICK")]),
24
24
  _: 1
25
- }), o(r(i), {
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: i
31
+ ComponentA: y,
32
+ B: s
33
33
  }, Symbol.toStringTag, { value: "Module" }));
34
- const g = 100, b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
35
- __proto__: null,
36
- MAGIC_NUM: g
37
- }, Symbol.toStringTag, { value: "Module" }));
38
- function y(n) {
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(e.path) && (e.path = `/wms${e.path}`, t.push({ ...e, path: `/mes${e.path}` }), t.push({ ...e, path: `/wcs${e.path}` })), e.children && y(e.children);
48
- }), [...n, ...t];
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 C(n) {
51
- for (const t in c)
52
- n.component(t, c[t]);
50
+ function x(e) {
51
+ for (const n in c)
52
+ e.component(n, c[n]);
53
53
  }
54
- const x = { install: C };
54
+ const A = { install: x };
55
55
  export {
56
- i as B,
57
- _ as ComponentA,
58
- b as MyConstants,
59
- y as addOnlineRoutesForAllApps,
60
- x as default
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
  };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * 系统所有模块.
3
+ */
4
+ export declare const enum KG_APPS_ENUM {
5
+ WMS = "wms",
6
+ MES = "mes",
7
+ WCS = "wcs"
8
+ }
9
+ /**
10
+ * 系统所有模块.
11
+ */
12
+ export declare const KG_APPS: Array<KG_APPS_ENUM>;
@@ -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 './constants';
5
+ export * from './consts';
6
6
  export * from './utils';
7
7
  declare const _default: {
8
8
  install: typeof install;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.0.2-beta.22",
3
+ "version": "0.0.2-beta.23",
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",
@@ -1 +0,0 @@
1
- export declare const MAGIC_NUM = 100;
@@ -1,2 +0,0 @@
1
- import * as MyConstants from './MyConstants';
2
- export { MyConstants };