x-runtime-lib 0.1.9 → 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.d.ts CHANGED
@@ -2,4 +2,5 @@ declare const _default: {
2
2
  install: (app: import("vue").App<any>) => void;
3
3
  };
4
4
  export default _default;
5
+ export * from './element';
5
6
  export * from './i18n/element';
package/dist/index.js CHANGED
@@ -1,28 +1,65 @@
1
- import { resolveComponent as c, openBlock as r, createBlock as a, nextTick as i } from "vue";
2
- const l = (n, t) => {
3
- const e = n.__vccOpts || n;
4
- for (const [s, o] of t)
1
+ import { resolveComponent as a, openBlock as l, createBlock as r, nextTick as i } from "vue";
2
+ const m = (t, n) => {
3
+ const e = t.__vccOpts || t;
4
+ for (const [s, o] of n)
5
5
  e[s] = o;
6
6
  return e;
7
- }, m = {};
8
- function u(n, t) {
9
- const e = c("v-btn");
10
- return r(), a(e);
7
+ }, u = {};
8
+ function f(t, n) {
9
+ const e = a("v-btn");
10
+ return l(), r(e);
11
11
  }
12
- const _ = /* @__PURE__ */ l(m, [["render", u]]), f = (n) => {
13
- n.component("z-btn-v1", _);
14
- }, p = (n, t) => {
15
- const e = n[t];
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" }
18
+ ], c = {
19
+ key: "settings",
20
+ keyFlag: !0,
21
+ name: "settings",
22
+ children: [
23
+ {
24
+ key: "density",
25
+ name: "density",
26
+ ui: "select",
27
+ items: d,
28
+ default: "default"
29
+ }
30
+ ]
31
+ }, v = {
32
+ key: "btn_v1",
33
+ name: "button",
34
+ comp: "z-btn-v1",
35
+ leaf: !0,
36
+ events: [
37
+ {
38
+ key: "click",
39
+ name: "click"
40
+ }
41
+ ],
42
+ methods: [],
43
+ props: {
44
+ pageCommon: [c],
45
+ compCommon: [c]
46
+ }
47
+ }, y = {
48
+ // basic
49
+ btn_v1: v
50
+ }, b = (t, n) => {
51
+ const e = t[n];
16
52
  return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((s, o) => {
17
- (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, new Error("Unknown variable dynamic import: " + t)));
53
+ (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, new Error("Unknown variable dynamic import: " + n)));
18
54
  });
19
55
  };
20
- async function b(n, t) {
21
- const e = await p(/* @__PURE__ */ Object.assign({ "./locales/en.ts": () => import("./en-BdBaKtic.js"), "./locales/zhHans.ts": () => import("./zhHans-CwlEZHgw.js") }), `./locales/${t}.ts`);
22
- return n.global.setLocaleMessage(t, e.default), i();
56
+ async function g(t, n) {
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`);
58
+ return t.global.setLocaleMessage(n, e.default), i();
23
59
  }
24
- const d = { install: f };
60
+ const x = { install: _ };
25
61
  export {
26
- d as default,
27
- b as loadLocaleMessageElement
62
+ x as default,
63
+ y as elements,
64
+ g as loadLocaleMessageElement
28
65
  };
@@ -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.9",
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
- };