@fox-js/foxui-pc 4.1.1-36 → 4.1.1-37
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.cjs.js +1 -1
- package/dist/index.esm.js +16 -14
- package/dist/index.umd.js +1 -1
- package/dist/style.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -4659,20 +4659,21 @@ function d2(e, t) {
|
|
|
4659
4659
|
};
|
|
4660
4660
|
}
|
|
4661
4661
|
var { componentName: h2, create: g2, scope: p2 } = he("mapping"), m2 = g2(d2(h2, p2)), ql = m2;
|
|
4662
|
-
function rt(e, t, n, r) {
|
|
4663
|
-
const
|
|
4664
|
-
let
|
|
4665
|
-
n ?
|
|
4666
|
-
class: [`${
|
|
4662
|
+
function rt(e, t, n, r, l) {
|
|
4663
|
+
const a = "fox-browse-item";
|
|
4664
|
+
let o = null;
|
|
4665
|
+
n ? o = M(ql, {
|
|
4666
|
+
class: [`${a}__mapping`],
|
|
4667
4667
|
source: n,
|
|
4668
4668
|
modelValue: e,
|
|
4669
|
-
separator: r
|
|
4670
|
-
|
|
4671
|
-
|
|
4669
|
+
separator: r,
|
|
4670
|
+
emptyText: l
|
|
4671
|
+
}, { default: (i) => M(Bl, { class: [`${a}__text`] }, { default: () => i.text }) }) : o = M(Bl, { class: [`${a}__text`] }, { default: () => e });
|
|
4672
|
+
const s = {
|
|
4672
4673
|
label: t.default,
|
|
4673
|
-
default: () =>
|
|
4674
|
+
default: () => o
|
|
4674
4675
|
};
|
|
4675
|
-
return M(Zn, { class: [
|
|
4676
|
+
return M(Zn, { class: [a] }, s);
|
|
4676
4677
|
}
|
|
4677
4678
|
var pt = (e = {}) => {
|
|
4678
4679
|
if (!e) return {};
|
|
@@ -7200,7 +7201,8 @@ var ni = {
|
|
|
7200
7201
|
type: [String],
|
|
7201
7202
|
required: !1
|
|
7202
7203
|
},
|
|
7203
|
-
maxLength: { type: [String, Number] }
|
|
7204
|
+
maxLength: { type: [String, Number] },
|
|
7205
|
+
emptyText: { type: [String] }
|
|
7204
7206
|
}, O3 = {
|
|
7205
7207
|
...Oe,
|
|
7206
7208
|
...qe,
|
|
@@ -7331,7 +7333,7 @@ function R3(e, t, n, r) {
|
|
|
7331
7333
|
y.value = !1;
|
|
7332
7334
|
}
|
|
7333
7335
|
});
|
|
7334
|
-
const O = H(!1), z = e, b = H(null), L = C(() => ({
|
|
7336
|
+
const O = H(!1), z = e, b = H(l.lazy ? l.emptyText : null), L = C(() => ({
|
|
7335
7337
|
[z]: !0,
|
|
7336
7338
|
"is-incomplete": b.value && b.value.length > 0
|
|
7337
7339
|
})), _ = C(() => {
|
|
@@ -7350,7 +7352,7 @@ function R3(e, t, n, r) {
|
|
|
7350
7352
|
Z.forEach((ue) => {
|
|
7351
7353
|
ue && le.push(ue);
|
|
7352
7354
|
}), le.length > 0 && (b.value = le.join(l.separator));
|
|
7353
|
-
} else b.value = null;
|
|
7355
|
+
} else b.value = l.emptyText ?? null;
|
|
7354
7356
|
p(E);
|
|
7355
7357
|
}), Q;
|
|
7356
7358
|
}), j = (Q) => {
|
|
@@ -7398,7 +7400,7 @@ function R3(e, t, n, r) {
|
|
|
7398
7400
|
f.value = Q;
|
|
7399
7401
|
}
|
|
7400
7402
|
}), () => {
|
|
7401
|
-
if (c.value === "on" && (g.value || i.value)) return r(d.value, a.slots, R.value, l.separator);
|
|
7403
|
+
if (c.value === "on" && (g.value || i.value)) return r(d.value, a.slots, R.value, l.separator, l.emptyText);
|
|
7402
7404
|
const Q = {
|
|
7403
7405
|
...a.attrs,
|
|
7404
7406
|
ref: ae,
|