x-runtime-lib 0.1.10 → 0.1.12

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,4 +1,3 @@
1
- declare const _default: {
1
+ export declare const pkgs: {
2
2
  v1: import("..").ZPkg;
3
3
  };
4
- export default _default;
@@ -0,0 +1,13 @@
1
+ const t = {
2
+ basic: "Basic",
3
+ button: "Button",
4
+ click: "Click",
5
+ comfortable: "Comfortable",
6
+ compact: "Compact",
7
+ default: "Default",
8
+ density: "Density",
9
+ settings: "Settings"
10
+ };
11
+ export {
12
+ t as default
13
+ };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { resolveComponent as a, openBlock as r, createBlock as l, nextTick as i } from "vue";
1
+ import { resolveComponent as a, openBlock as l, createBlock as i, nextTick as r } from "vue";
2
2
  const m = (t, n) => {
3
3
  const e = t.__vccOpts || t;
4
4
  for (const [s, o] of n)
@@ -7,45 +7,36 @@ const m = (t, n) => {
7
7
  }, u = {};
8
8
  function p(t, n) {
9
9
  const e = a("v-btn");
10
- return r(), l(e);
10
+ return l(), i(e);
11
11
  }
12
- const f = /* @__PURE__ */ m(u, [["render", p]]), v = (t) => {
13
- t.component("z-btn-v1", f);
12
+ const v = /* @__PURE__ */ m(u, [["render", p]]), f = (t) => {
13
+ t.component("z-btn-v1", v);
14
14
  }, _ = [
15
- {
16
- title: "item.default",
17
- value: "default"
18
- },
19
- {
20
- title: "item.comfortable",
21
- value: "comfortable"
22
- },
23
- {
24
- title: "item.compact",
25
- value: "compact"
26
- }
15
+ { title: "default", value: "default" },
16
+ { title: "comfortable", value: "comfortable" },
17
+ { title: "compact", value: "compact" }
27
18
  ], c = {
28
19
  key: "settings",
29
20
  keyFlag: !0,
30
- name: "prop.settings",
21
+ name: "settings",
31
22
  children: [
32
23
  {
33
24
  key: "density",
34
- name: "prop.density",
25
+ name: "density",
35
26
  ui: "select",
36
27
  items: _,
37
28
  default: "default"
38
29
  }
39
30
  ]
40
- }, d = {
31
+ }, b = {
41
32
  key: "btn_v1",
42
- name: "comp.button",
33
+ name: "button",
43
34
  comp: "z-btn-v1",
44
35
  leaf: !0,
45
36
  events: [
46
37
  {
47
38
  key: "click",
48
- name: "evt.click"
39
+ name: "click"
49
40
  }
50
41
  ],
51
42
  methods: [],
@@ -53,22 +44,36 @@ const f = /* @__PURE__ */ m(u, [["render", p]]), v = (t) => {
53
44
  pageCommon: [c],
54
45
  compCommon: [c]
55
46
  }
56
- }, y = {
47
+ }, y = [
48
+ {
49
+ key: "basic",
50
+ name: "basic",
51
+ items: ["globality_v1", "btn_v1"]
52
+ }
53
+ ], d = {
54
+ version: "v1",
55
+ globalityKey: "globality_v1",
56
+ refKey: "ref_v1",
57
+ groups: y
58
+ }, x = {
59
+ v1: d
60
+ }, w = {
57
61
  // basic
58
- btn_v1: d
59
- }, b = (t, n) => {
62
+ btn_v1: b
63
+ }, g = (t, n) => {
60
64
  const e = t[n];
61
65
  return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((s, o) => {
62
66
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, new Error("Unknown variable dynamic import: " + n)));
63
67
  });
64
68
  };
65
- async function g(t, n) {
66
- const e = await b(/* @__PURE__ */ Object.assign({ "./locales/en.ts": () => import("./en-BdBaKtic.js"), "./locales/zhHans.ts": () => import("./zhHans-CwlEZHgw.js") }), `./locales/${n}.ts`);
67
- return t.global.setLocaleMessage(n, e.default), i();
69
+ async function M(t, n) {
70
+ const e = await g(/* @__PURE__ */ Object.assign({ "./locales/en.ts": () => import("./en-DKTWxIj4.js"), "./locales/zhHans.ts": () => import("./zhHans-QtZriYRu.js") }), `./locales/${n}.ts`);
71
+ return t.global.setLocaleMessage(n, e.default), r();
68
72
  }
69
- const x = { install: v };
73
+ const h = { install: f };
70
74
  export {
71
- x as default,
72
- y as elements,
73
- g as loadLocaleMessageElement
75
+ h as default,
76
+ w as elements,
77
+ M as loadLocaleMessageElement,
78
+ x as pkgs
74
79
  };
@@ -0,0 +1,13 @@
1
+ const t = {
2
+ basic: "基本",
3
+ button: "按钮",
4
+ click: "单击",
5
+ comfortable: "舒适",
6
+ compact: "紧凑",
7
+ default: "缺省",
8
+ density: "密度",
9
+ settings: "设置"
10
+ };
11
+ export {
12
+ t as default
13
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.1.10",
4
+ "version": "0.1.12",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "peerDependencies": {
25
25
  "vue": "^3.4.26",
26
26
  "vue-i18n": "^9.13.1",
27
- "vuetify": "^3.6.3"
27
+ "vuetify": "^3.6.5"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@rushstack/eslint-patch": "^1.8.0",
@@ -1,21 +0,0 @@
1
- const t = {
2
- basic: "Basic",
3
- comp: {
4
- button: "Button"
5
- },
6
- evt: {
7
- click: "Click"
8
- },
9
- item: {
10
- default: "Default",
11
- comfortable: "Comfortable",
12
- compact: "Compact"
13
- },
14
- prop: {
15
- density: "Density",
16
- settings: "Settings"
17
- }
18
- };
19
- export {
20
- t as default
21
- };
@@ -1,21 +0,0 @@
1
- const t = {
2
- basic: "基本",
3
- comp: {
4
- button: "按钮"
5
- },
6
- evt: {
7
- click: "点击"
8
- },
9
- item: {
10
- default: "缺省",
11
- comfortable: "舒适",
12
- compact: "紧凑"
13
- },
14
- prop: {
15
- density: "密度",
16
- settings: "设置"
17
- }
18
- };
19
- export {
20
- t as default
21
- };