@fox-js/foxui-pad 4.1.1-32 → 4.1.1-33
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 Q2(e, t) {
|
|
|
4659
4659
|
};
|
|
4660
4660
|
}
|
|
4661
4661
|
var { componentName: Z2, create: J2, scope: ec } = he("mapping"), tc = J2(Q2(Z2, ec)), la = tc;
|
|
4662
|
-
function nt(e, t, a, n) {
|
|
4663
|
-
const
|
|
4664
|
-
let
|
|
4665
|
-
a ?
|
|
4666
|
-
class: [`${
|
|
4662
|
+
function nt(e, t, a, n, l) {
|
|
4663
|
+
const r = "fox-browse-item";
|
|
4664
|
+
let o = null;
|
|
4665
|
+
a ? o = R(la, {
|
|
4666
|
+
class: [`${r}__mapping`],
|
|
4667
4667
|
source: a,
|
|
4668
4668
|
modelValue: e,
|
|
4669
|
-
separator: n
|
|
4670
|
-
|
|
4671
|
-
|
|
4669
|
+
separator: n,
|
|
4670
|
+
emptyText: l
|
|
4671
|
+
}, { default: (i) => R(ta, { class: [`${r}__text`] }, { default: () => i.text }) }) : o = R(ta, { class: [`${r}__text`] }, { default: () => e });
|
|
4672
|
+
const s = {
|
|
4672
4673
|
label: t.default,
|
|
4673
|
-
default: () =>
|
|
4674
|
+
default: () => o
|
|
4674
4675
|
};
|
|
4675
|
-
return R(hn, { class: [
|
|
4676
|
+
return R(hn, { class: [r] }, s);
|
|
4676
4677
|
}
|
|
4677
4678
|
var Ct = (e = {}) => {
|
|
4678
4679
|
if (!e) return {};
|
|
@@ -9233,7 +9234,8 @@ var Ei = {
|
|
|
9233
9234
|
type: [String],
|
|
9234
9235
|
required: !1
|
|
9235
9236
|
},
|
|
9236
|
-
maxLength: { type: [String, Number] }
|
|
9237
|
+
maxLength: { type: [String, Number] },
|
|
9238
|
+
emptyText: { type: [String] }
|
|
9237
9239
|
}, U4 = {
|
|
9238
9240
|
...Be,
|
|
9239
9241
|
...qe,
|
|
@@ -9364,7 +9366,7 @@ function G4(e, t, a, n) {
|
|
|
9364
9366
|
x.value = !1;
|
|
9365
9367
|
}
|
|
9366
9368
|
});
|
|
9367
|
-
const F = O(!1), k = e, w = O(null), P = C(() => ({
|
|
9369
|
+
const F = O(!1), k = e, w = O(l.lazy ? l.emptyText : null), P = C(() => ({
|
|
9368
9370
|
[k]: !0,
|
|
9369
9371
|
"is-incomplete": w.value && w.value.length > 0
|
|
9370
9372
|
})), _ = C(() => {
|
|
@@ -9383,7 +9385,7 @@ function G4(e, t, a, n) {
|
|
|
9383
9385
|
te.forEach((fe) => {
|
|
9384
9386
|
fe && ie.push(fe);
|
|
9385
9387
|
}), ie.length > 0 && (w.value = ie.join(l.separator));
|
|
9386
|
-
} else w.value = null;
|
|
9388
|
+
} else w.value = l.emptyText ?? null;
|
|
9387
9389
|
v(B);
|
|
9388
9390
|
}), Q;
|
|
9389
9391
|
}), U = (Q) => {
|
|
@@ -9431,7 +9433,7 @@ function G4(e, t, a, n) {
|
|
|
9431
9433
|
f.value = Q;
|
|
9432
9434
|
}
|
|
9433
9435
|
}), () => {
|
|
9434
|
-
if (u.value === "on" && (h.value || i.value)) return n(m.value, r.slots, c.value, l.separator);
|
|
9436
|
+
if (u.value === "on" && (h.value || i.value)) return n(m.value, r.slots, c.value, l.separator, l.emptyText);
|
|
9435
9437
|
const Q = {
|
|
9436
9438
|
...r.attrs,
|
|
9437
9439
|
ref: J,
|