x-runtime-lib 0.1.10 → 0.1.11

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.
@@ -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,51 +1,42 @@
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 r, nextTick as i } from "vue";
2
2
  const m = (t, n) => {
3
3
  const e = t.__vccOpts || t;
4
4
  for (const [s, o] of n)
5
5
  e[s] = o;
6
6
  return e;
7
7
  }, u = {};
8
- function p(t, n) {
8
+ function f(t, n) {
9
9
  const e = a("v-btn");
10
- return r(), l(e);
10
+ return l(), r(e);
11
11
  }
12
- const f = /* @__PURE__ */ m(u, [["render", p]]), v = (t) => {
13
- t.component("z-btn-v1", f);
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
- }
12
+ const p = /* @__PURE__ */ m(u, [["render", f]]), _ = (t) => {
13
+ t.component("z-btn-v1", p);
14
+ }, d = [
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
- items: _,
27
+ items: d,
37
28
  default: "default"
38
29
  }
39
30
  ]
40
- }, d = {
31
+ }, v = {
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: [],
@@ -55,7 +46,7 @@ const f = /* @__PURE__ */ m(u, [["render", p]]), v = (t) => {
55
46
  }
56
47
  }, y = {
57
48
  // basic
58
- btn_v1: d
49
+ btn_v1: v
59
50
  }, b = (t, n) => {
60
51
  const e = t[n];
61
52
  return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((s, o) => {
@@ -63,10 +54,10 @@ const f = /* @__PURE__ */ m(u, [["render", p]]), v = (t) => {
63
54
  });
64
55
  };
65
56
  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`);
57
+ const e = await b(/* @__PURE__ */ Object.assign({ "./locales/en.ts": () => import("./en-DKTWxIj4.js"), "./locales/zhHans.ts": () => import("./zhHans-QtZriYRu.js") }), `./locales/${n}.ts`);
67
58
  return t.global.setLocaleMessage(n, e.default), i();
68
59
  }
69
- const x = { install: v };
60
+ const x = { install: _ };
70
61
  export {
71
62
  x as default,
72
63
  y as elements,
@@ -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.11",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -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
- };