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.
- package/dist/element/_pkg/index.d.ts +1 -2
- package/dist/en-DKTWxIj4.js +13 -0
- package/dist/index.js +36 -31
- package/dist/zhHans-QtZriYRu.js +13 -0
- package/package.json +2 -2
- package/dist/en-BdBaKtic.js +0 -21
- package/dist/zhHans-CwlEZHgw.js +0 -21
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent as a, openBlock 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)
|
|
@@ -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
|
|
10
|
+
return l(), i(e);
|
|
11
11
|
}
|
|
12
|
-
const
|
|
13
|
-
t.component("z-btn-v1",
|
|
12
|
+
const v = /* @__PURE__ */ m(u, [["render", p]]), f = (t) => {
|
|
13
|
+
t.component("z-btn-v1", v);
|
|
14
14
|
}, _ = [
|
|
15
|
-
{
|
|
16
|
-
|
|
17
|
-
|
|
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: "
|
|
21
|
+
name: "settings",
|
|
31
22
|
children: [
|
|
32
23
|
{
|
|
33
24
|
key: "density",
|
|
34
|
-
name: "
|
|
25
|
+
name: "density",
|
|
35
26
|
ui: "select",
|
|
36
27
|
items: _,
|
|
37
28
|
default: "default"
|
|
38
29
|
}
|
|
39
30
|
]
|
|
40
|
-
},
|
|
31
|
+
}, b = {
|
|
41
32
|
key: "btn_v1",
|
|
42
|
-
name: "
|
|
33
|
+
name: "button",
|
|
43
34
|
comp: "z-btn-v1",
|
|
44
35
|
leaf: !0,
|
|
45
36
|
events: [
|
|
46
37
|
{
|
|
47
38
|
key: "click",
|
|
48
|
-
name: "
|
|
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:
|
|
59
|
-
},
|
|
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
|
|
66
|
-
const e = await
|
|
67
|
-
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();
|
|
68
72
|
}
|
|
69
|
-
const
|
|
73
|
+
const h = { install: f };
|
|
70
74
|
export {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
75
|
+
h as default,
|
|
76
|
+
w as elements,
|
|
77
|
+
M as loadLocaleMessageElement,
|
|
78
|
+
x as pkgs
|
|
74
79
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-runtime-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
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.
|
|
27
|
+
"vuetify": "^3.6.5"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@rushstack/eslint-patch": "^1.8.0",
|
package/dist/en-BdBaKtic.js
DELETED
|
@@ -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
|
-
};
|
package/dist/zhHans-CwlEZHgw.js
DELETED
|
@@ -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
|
-
};
|