x-runtime-lib 0.1.11 → 0.2.0
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/element/_pkg/index.d.ts +3 -3
- package/dist/index.js +32 -18
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { resolveComponent as a, openBlock as l, createBlock as
|
|
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)
|
|
5
5
|
e[s] = o;
|
|
6
6
|
return e;
|
|
7
7
|
}, u = {};
|
|
8
|
-
function
|
|
8
|
+
function p(t, n) {
|
|
9
9
|
const e = a("v-btn");
|
|
10
|
-
return l(),
|
|
10
|
+
return l(), i(e);
|
|
11
11
|
}
|
|
12
|
-
const
|
|
13
|
-
t.component("z-btn-v1",
|
|
14
|
-
},
|
|
12
|
+
const v = /* @__PURE__ */ m(u, [["render", p]]), f = (t) => {
|
|
13
|
+
t.component("z-btn-v1", v);
|
|
14
|
+
}, _ = [
|
|
15
15
|
{ title: "default", value: "default" },
|
|
16
16
|
{ title: "comfortable", value: "comfortable" },
|
|
17
17
|
{ title: "compact", value: "compact" }
|
|
@@ -24,11 +24,11 @@ const p = /* @__PURE__ */ m(u, [["render", f]]), _ = (t) => {
|
|
|
24
24
|
key: "density",
|
|
25
25
|
name: "density",
|
|
26
26
|
ui: "select",
|
|
27
|
-
items:
|
|
27
|
+
items: _,
|
|
28
28
|
default: "default"
|
|
29
29
|
}
|
|
30
30
|
]
|
|
31
|
-
},
|
|
31
|
+
}, b = {
|
|
32
32
|
key: "btn_v1",
|
|
33
33
|
name: "button",
|
|
34
34
|
comp: "z-btn-v1",
|
|
@@ -44,22 +44,36 @@ const p = /* @__PURE__ */ m(u, [["render", f]]), _ = (t) => {
|
|
|
44
44
|
pageCommon: [c],
|
|
45
45
|
compCommon: [c]
|
|
46
46
|
}
|
|
47
|
-
}, 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 = {
|
|
48
61
|
// basic
|
|
49
|
-
btn_v1:
|
|
50
|
-
},
|
|
62
|
+
btn_v1: b
|
|
63
|
+
}, g = (t, n) => {
|
|
51
64
|
const e = t[n];
|
|
52
65
|
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((s, o) => {
|
|
53
66
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, new Error("Unknown variable dynamic import: " + n)));
|
|
54
67
|
});
|
|
55
68
|
};
|
|
56
|
-
async function
|
|
57
|
-
const e = await
|
|
58
|
-
return t.global.setLocaleMessage(n, e.default),
|
|
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();
|
|
59
72
|
}
|
|
60
|
-
const
|
|
73
|
+
const h = { install: f };
|
|
61
74
|
export {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
75
|
+
h as default,
|
|
76
|
+
w as elements,
|
|
77
|
+
M as loadLocaleMessageElement,
|
|
78
|
+
x as pkgs
|
|
65
79
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-runtime-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
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.
|
|
27
|
+
"vuetify": "^3.6.5"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@rushstack/eslint-patch": "^1.8.0",
|