@kengic/vue 0.0.2-beta.19 → 0.0.2-beta.20

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,55 +1,61 @@
1
- import { defineComponent as c, createVNode as n, openBlock as p, createElementBlock as s, Fragment as m, createElementVNode as i, toDisplayString as u, unref as o, withCtx as d, createTextVNode as _ } from "vue";
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";
2
2
  import { Button as l } from "ant-design-vue";
3
- const a = c({
3
+ const i = p({
4
4
  props: {
5
5
  name: String
6
6
  },
7
- setup(e) {
8
- return () => n(l, {
7
+ setup(n) {
8
+ return () => o(l, {
9
9
  type: "ghost"
10
10
  }, {
11
- default: () => [e.name]
11
+ default: () => [n.name]
12
12
  });
13
13
  }
14
- }), f = /* @__PURE__ */ c({
14
+ }), _ = /* @__PURE__ */ p({
15
15
  __name: "ComponentA",
16
16
  props: {
17
17
  msg: String
18
18
  },
19
- setup(e) {
20
- return (t, S) => (p(), s(m, null, [i("div", null, "Hello " + u(e.msg) + "!", 1), n(o(l), {
19
+ setup(n) {
20
+ return (t, e) => (a(), s(m, null, [d("div", null, "Hello " + f(n.msg) + "!", 1), o(r(l), {
21
21
  type: "primary"
22
22
  }, {
23
- default: d(() => [_("CLICK")]),
23
+ default: h(() => [u("CLICK")]),
24
24
  _: 1
25
- }), n(o(a), {
25
+ }), o(r(i), {
26
26
  name: "FOO"
27
27
  })], 64));
28
28
  }
29
- }), r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
29
+ }), c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
30
30
  __proto__: null,
31
- ComponentA: f,
32
- B: a
31
+ ComponentA: _,
32
+ B: i
33
33
  }, Symbol.toStringTag, { value: "Module" }));
34
- const g = 100, M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
34
+ const g = 100, b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
35
35
  __proto__: null,
36
36
  MAGIC_NUM: g
37
37
  }, Symbol.toStringTag, { value: "Module" }));
38
- function y(e, t) {
39
- return e + t;
38
+ function y(n) {
39
+ const t = [];
40
+ return n.forEach((e) => {
41
+ [
42
+ "/online/copyform/:code",
43
+ "/online/cgformList/:id",
44
+ "/online/cgformTreeList/:id",
45
+ "/online/cgreport/:id",
46
+ "/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];
40
49
  }
41
- const O = {
42
- add: y
43
- };
44
- function C(e) {
45
- for (const t in r)
46
- e.component(t, r[t]);
50
+ function C(n) {
51
+ for (const t in c)
52
+ n.component(t, c[t]);
47
53
  }
48
- const j = { install: C };
54
+ const x = { install: C };
49
55
  export {
50
- a as B,
51
- f as ComponentA,
52
- M as MyConstants,
53
- O as MyUtil,
54
- j as default
56
+ i as B,
57
+ _ as ComponentA,
58
+ b as MyConstants,
59
+ y as addOnlineRoutesForAllApps,
60
+ x as default
55
61
  };
@@ -1,2 +1 @@
1
- import MyUtil from './MyUtil';
2
- export { MyUtil };
1
+ export * from './route.util';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 给所有模块都添加在线表单的路由.
3
+ * 由于默认的在线表单路由是没有区分模块的, 而每个模块下都可能有在线表单, 因此给每个模块都添加在线表单的路由.
4
+ * @param routes 当前路由列表.
5
+ */
6
+ export declare function addOnlineRoutesForAllApps(routes: any[]): any[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.0.2-beta.19",
3
+ "version": "0.0.2-beta.20",
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,5 +0,0 @@
1
- declare function add(a: number, b: number): number;
2
- declare const _default: {
3
- add: typeof add;
4
- };
5
- export default _default;