geneeantd 0.0.18 → 0.0.19
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/genee-antd.es.js +8 -12
- package/dist/genee-antd.umd.js +1 -1
- package/package.json +1 -1
package/dist/genee-antd.es.js
CHANGED
|
@@ -55473,23 +55473,19 @@ const QU = oe.memo(
|
|
|
55473
55473
|
const s = t.find((u) => u.name === l);
|
|
55474
55474
|
return s ? s.label : l;
|
|
55475
55475
|
}, a = (l, s) => {
|
|
55476
|
-
const u = t.find((
|
|
55477
|
-
if (
|
|
55476
|
+
const u = t.find((f) => f.name === l), d = u?.props?.options || [];
|
|
55477
|
+
if (d.length > 0 && Array.isArray(d) && s !== void 0 && s !== null) {
|
|
55478
55478
|
if (Array.isArray(s))
|
|
55479
|
-
return s.map((
|
|
55480
|
-
const
|
|
55481
|
-
|
|
55482
|
-
);
|
|
55483
|
-
return f ? f.label : String(d);
|
|
55479
|
+
return s.map((f) => {
|
|
55480
|
+
const v = d.find((p) => p.value === f);
|
|
55481
|
+
return v ? v.label : String(f);
|
|
55484
55482
|
}).join("、");
|
|
55485
55483
|
{
|
|
55486
|
-
const
|
|
55487
|
-
|
|
55488
|
-
);
|
|
55489
|
-
return d ? d.label : String(s);
|
|
55484
|
+
const f = d.find((v) => v.value === s);
|
|
55485
|
+
return f ? f.label : String(s);
|
|
55490
55486
|
}
|
|
55491
55487
|
}
|
|
55492
|
-
return typeof s == "boolean" ? s ? "是" : "否" : Array.isArray(s) && s.length > 0 && !u?.options ? s.join(" / ") : u?.type === "custom" && s && typeof s == "object" ? Object.entries(s).filter(([
|
|
55488
|
+
return typeof s == "boolean" ? s ? "是" : "否" : Array.isArray(s) && s.length > 0 && !u?.options ? s.join(" / ") : u?.type === "custom" && s && typeof s == "object" ? Object.entries(s).filter(([f, v]) => v != null).map(([f, v]) => v ? `${f}: ${v}` : "").join(",") : s != null ? String(s) : "";
|
|
55493
55489
|
}, i = Object.keys(e).length > 0;
|
|
55494
55490
|
return xt(() => {
|
|
55495
55491
|
}, [e]), /* @__PURE__ */ se.jsx(se.Fragment, { children: i ? /* @__PURE__ */ se.jsxs("div", { className: "selected-filter-tags-container", children: [
|