x-runtime-lib 0.2.2 → 0.2.3
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/index.js +16 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent as b, openBlock as _, createBlock as
|
|
1
|
+
import { resolveComponent as b, openBlock as _, createBlock as h, nextTick as p } from "vue";
|
|
2
2
|
const $ = (e, o) => {
|
|
3
3
|
const n = e.__vccOpts || e;
|
|
4
4
|
for (const [r, t] of o)
|
|
@@ -7,7 +7,7 @@ const $ = (e, o) => {
|
|
|
7
7
|
}, w = {};
|
|
8
8
|
function x(e, o) {
|
|
9
9
|
const n = b("v-btn");
|
|
10
|
-
return _(),
|
|
10
|
+
return _(), h(n);
|
|
11
11
|
}
|
|
12
12
|
const M = /* @__PURE__ */ $(w, [["render", x]]), P = (e) => {
|
|
13
13
|
e.component("z-btn-v1", M);
|
|
@@ -94,8 +94,10 @@ function v(e) {
|
|
|
94
94
|
return typeof e.default == "string" ? e.default : "";
|
|
95
95
|
case "numInput":
|
|
96
96
|
return typeof e.default == "number" ? e.default : 0;
|
|
97
|
+
case "select":
|
|
98
|
+
return typeof e.default == "string" ? e.default : "";
|
|
97
99
|
default:
|
|
98
|
-
console.assert(!1, `not implemented ui=${e.ui}`);
|
|
100
|
+
console.assert(!1, `get prop default failed, not implemented ui=${e.ui}`);
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
103
|
function k(e, o) {
|
|
@@ -117,14 +119,14 @@ function q(e, o, n, r, t) {
|
|
|
117
119
|
console.error(`pkg not found version=${n}`);
|
|
118
120
|
return;
|
|
119
121
|
}
|
|
120
|
-
const
|
|
122
|
+
const l = {}, f = z(16);
|
|
121
123
|
if (r) {
|
|
122
|
-
const
|
|
123
|
-
if (!a.elements.has(
|
|
124
|
+
const c = a.refKey;
|
|
125
|
+
if (!a.elements.has(c)) {
|
|
124
126
|
console.error(`[ref] element not found in pkg key=${t}`);
|
|
125
127
|
return;
|
|
126
128
|
}
|
|
127
|
-
const i = d[
|
|
129
|
+
const i = d[c];
|
|
128
130
|
if (!i) {
|
|
129
131
|
console.error(`[ref] element not found in global key=${t}`);
|
|
130
132
|
return;
|
|
@@ -134,7 +136,7 @@ function q(e, o, n, r, t) {
|
|
|
134
136
|
console.error(`[ref] props not found key=${t} tag=${s}`);
|
|
135
137
|
return;
|
|
136
138
|
}
|
|
137
|
-
k(
|
|
139
|
+
k(l, u), l.id = f, l.ref = {
|
|
138
140
|
id: t
|
|
139
141
|
};
|
|
140
142
|
} else {
|
|
@@ -142,19 +144,19 @@ function q(e, o, n, r, t) {
|
|
|
142
144
|
console.error(`[key] element not found in pkg key=${t}`);
|
|
143
145
|
return;
|
|
144
146
|
}
|
|
145
|
-
const
|
|
146
|
-
if (!
|
|
147
|
+
const c = d[t];
|
|
148
|
+
if (!c) {
|
|
147
149
|
console.error(`[key] element not found in global key=${t}`);
|
|
148
150
|
return;
|
|
149
151
|
}
|
|
150
|
-
const i =
|
|
152
|
+
const i = c.props[s];
|
|
151
153
|
if (!i) {
|
|
152
154
|
console.error(`[key] props not found key=${t} tag=${s}`);
|
|
153
155
|
return;
|
|
154
156
|
}
|
|
155
|
-
k(
|
|
157
|
+
k(l, i), l.id = f, l.key = t, c.leaf || (l.children = []);
|
|
156
158
|
}
|
|
157
|
-
return
|
|
159
|
+
return l;
|
|
158
160
|
}
|
|
159
161
|
const S = (e, o) => {
|
|
160
162
|
const n = e[o];
|
|
@@ -164,7 +166,7 @@ const S = (e, o) => {
|
|
|
164
166
|
};
|
|
165
167
|
async function D(e, o) {
|
|
166
168
|
const n = await S(/* @__PURE__ */ Object.assign({ "./locales/en.ts": () => import("./en-DKTWxIj4.js"), "./locales/zhHans.ts": () => import("./zhHans-QtZriYRu.js") }), `./locales/${o}.ts`);
|
|
167
|
-
return e.global.setLocaleMessage(o, n.default),
|
|
169
|
+
return e.global.setLocaleMessage(o, n.default), p();
|
|
168
170
|
}
|
|
169
171
|
const F = { install: P };
|
|
170
172
|
export {
|