@kengic/vue 0.0.2-beta.26 → 0.0.2-beta.28

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
- 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";
1
+ import { defineComponent as l, createVNode as s, openBlock as a, createElementBlock as S, Fragment as $, createElementVNode as W, toDisplayString as g, unref as c, withCtx as w, createTextVNode as C } from "vue";
2
2
  import { Button as d } from "ant-design-vue";
3
- const f = l({
3
+ const m = l({
4
4
  props: {
5
5
  name: String
6
6
  },
@@ -17,22 +17,22 @@ const f = l({
17
17
  msg: String
18
18
  },
19
19
  setup(e) {
20
- return (n, t) => (a(), S(W, null, [g("div", null, "Hello " + $(e.msg) + "!", 1), s(c(d), {
20
+ return (n, t) => (a(), S($, null, [W("div", null, "Hello " + g(e.msg) + "!", 1), s(c(d), {
21
21
  type: "primary"
22
22
  }, {
23
23
  default: w(() => [C("CLICK")]),
24
24
  _: 1
25
- }), s(c(f), {
25
+ }), s(c(m), {
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: f
32
+ B: m
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 m = ["wms", "mes", "wcs", "sys"];
35
+ const f = ["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 = m.find((t) => y(e, t));
52
+ const n = f.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,8 +83,13 @@ function A(e) {
83
83
  "/online/cgformTreeList/:id",
84
84
  "/online/cgreport/:id",
85
85
  "/online/graphreport/chart/:code"
86
- ].includes(t.path) && m.forEach((o) => {
87
- n.push({ ...t, path: `/${o}${t.path}` });
86
+ ].includes(t.path) && f.forEach((o) => {
87
+ n.push({
88
+ ...t,
89
+ path: `/${o}${t.path}`,
90
+ name: `${o}-${t.name}`,
91
+ id: `${o}-${t.id}`
92
+ });
88
93
  }), t.children && (t.children = A(t.children));
89
94
  }), [...e, ...n];
90
95
  }
@@ -94,9 +99,9 @@ function b(e) {
94
99
  }
95
100
  const B = { install: b };
96
101
  export {
97
- f as B,
102
+ m as B,
98
103
  E as ComponentA,
99
- m as KG_APPS,
104
+ f as KG_APPS,
100
105
  r as KG_APPS_ENUM,
101
106
  A as addOnlineRoutesForAllApps,
102
107
  B as default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.0.2-beta.26",
3
+ "version": "0.0.2-beta.28",
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",
@@ -46,7 +46,7 @@
46
46
  ".": {
47
47
  "import": "./dist/kengic-vue.js"
48
48
  },
49
- "./dist/kengic-vue.css": "./dist/kengic-vue.css",
49
+ "./dist/index.css": "./dist/index.css",
50
50
  "./dist/css/transition.css": "./dist/css/transition.css"
51
51
  },
52
52
  "prettier": {
File without changes