x-runtime-lib 0.1.5 → 0.1.7
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/components/index.d.ts +2 -0
- package/dist/element/_common/densityItems/v1/index.d.ts +2 -0
- package/dist/element/_pkg/index.d.ts +4 -0
- package/dist/element/_pkg/v1/index.d.ts +3 -0
- package/dist/element/basic/btn/v1/index.d.ts +3 -0
- package/dist/element/index.d.ts +5 -0
- package/dist/{elements → element}/types.d.ts +28 -6
- package/dist/en-BdBaKtic.js +21 -0
- package/dist/i18n/element/index.d.ts +0 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +23 -37
- package/dist/zhHans-CwlEZHgw.js +21 -0
- package/package.json +1 -1
- package/dist/elements/_define/items/densityItems/v1/index.d.ts +0 -2
- package/dist/elements/_define/items/index.d.ts +0 -1
- package/dist/elements/_reg/index.d.ts +0 -2
- package/dist/elements/basic/btn/v1/event/index.d.ts +0 -2
- package/dist/elements/basic/btn/v1/method/index.d.ts +0 -2
- package/dist/elements/basic/btn/v1/prop/index.d.ts +0 -5
- package/dist/elements/index.d.ts +0 -14
- package/dist/elements/pkg/v1/index.d.ts +0 -10
- package/dist/index-DYxpcVy9.js +0 -4
- package/dist/index-lXrNuo59.js +0 -4
- /package/dist/{elements/basic/btn/v1/view → components/element/btn/v1}/index.vue.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type ZEvent = {
|
|
2
2
|
key: string;
|
|
3
3
|
name: string;
|
|
4
4
|
params?: {
|
|
@@ -6,7 +6,7 @@ export type ZEventMeta = {
|
|
|
6
6
|
name: string;
|
|
7
7
|
}[];
|
|
8
8
|
};
|
|
9
|
-
export type
|
|
9
|
+
export type ZMethod = {
|
|
10
10
|
key: string;
|
|
11
11
|
name: string;
|
|
12
12
|
inputs?: {
|
|
@@ -18,20 +18,42 @@ export type ZMethodMeta = {
|
|
|
18
18
|
name: string;
|
|
19
19
|
}[];
|
|
20
20
|
};
|
|
21
|
-
export type
|
|
21
|
+
export type ZItem = {
|
|
22
22
|
title: string;
|
|
23
23
|
value: string;
|
|
24
24
|
};
|
|
25
|
-
export type
|
|
25
|
+
export type ZProp = {
|
|
26
26
|
key: string;
|
|
27
27
|
keyFlag?: boolean;
|
|
28
28
|
name: string;
|
|
29
|
-
children?:
|
|
29
|
+
children?: ZProp[];
|
|
30
30
|
ui?: 'void' | 'strInput' | 'numInput' | 'select';
|
|
31
|
-
items?:
|
|
31
|
+
items?: ZItem[];
|
|
32
32
|
array?: boolean;
|
|
33
33
|
default?: unknown;
|
|
34
34
|
readonly?: boolean;
|
|
35
35
|
static?: boolean;
|
|
36
36
|
value?: unknown;
|
|
37
37
|
};
|
|
38
|
+
export type ZElement = {
|
|
39
|
+
key: string;
|
|
40
|
+
name: string;
|
|
41
|
+
comp: string;
|
|
42
|
+
leaf: boolean;
|
|
43
|
+
events: ZEvent[];
|
|
44
|
+
methods: ZMethod[];
|
|
45
|
+
props: {
|
|
46
|
+
[key: string]: ZProp[];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export type ZGroup = {
|
|
50
|
+
key: string;
|
|
51
|
+
name: string;
|
|
52
|
+
items: string[];
|
|
53
|
+
};
|
|
54
|
+
export type ZPkg = {
|
|
55
|
+
version: string;
|
|
56
|
+
globalityKey: string;
|
|
57
|
+
refKey: string;
|
|
58
|
+
groups: ZGroup[];
|
|
59
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
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/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,42 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const e = (
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
], m = "globality_v1", u = "ref_v1", f = {
|
|
19
|
-
groups: r,
|
|
20
|
-
globalityKey: m,
|
|
21
|
-
refKey: u
|
|
22
|
-
}, d = { v1: f }, b = (n, e) => {
|
|
23
|
-
const t = n[e];
|
|
24
|
-
return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((g, o) => {
|
|
25
|
-
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, new Error("Unknown variable dynamic import: " + e)));
|
|
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)
|
|
5
|
+
e[s] = o;
|
|
6
|
+
return e;
|
|
7
|
+
}, m = {};
|
|
8
|
+
function u(n, t) {
|
|
9
|
+
const e = c("v-btn");
|
|
10
|
+
return r(), a(e);
|
|
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];
|
|
16
|
+
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)));
|
|
26
18
|
});
|
|
27
19
|
};
|
|
28
|
-
async function
|
|
29
|
-
const
|
|
30
|
-
return n.global.setLocaleMessage(
|
|
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();
|
|
31
23
|
}
|
|
32
|
-
const
|
|
33
|
-
legacy: !1,
|
|
34
|
-
locale: "en",
|
|
35
|
-
fallbackLocale: "en"
|
|
36
|
-
});
|
|
24
|
+
const d = { install: f };
|
|
37
25
|
export {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
v as loadLocaleMessageElement,
|
|
41
|
-
d as pkgs
|
|
26
|
+
d as default,
|
|
27
|
+
b as loadLocaleMessageElement
|
|
42
28
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './densityItems/v1';
|
package/dist/elements/index.d.ts
DELETED
package/dist/index-DYxpcVy9.js
DELETED
package/dist/index-lXrNuo59.js
DELETED
|
File without changes
|