beca-ui 2.0.10-beta.16 → 2.0.10-beta.18
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/beca-ui.js +24 -27
- package/dist/main.css +1 -1
- package/package.json +1 -1
package/dist/beca-ui.js
CHANGED
|
@@ -98241,58 +98241,55 @@ const Hw = GC, wxt = (e) => {
|
|
|
98241
98241
|
return aJe;
|
|
98242
98242
|
if (a)
|
|
98243
98243
|
return lJe;
|
|
98244
|
-
}, [e])
|
|
98245
|
-
|
|
98244
|
+
}, [e]);
|
|
98245
|
+
ko(
|
|
98246
|
+
(v) => {
|
|
98246
98247
|
if (c)
|
|
98247
|
-
if (
|
|
98248
|
-
const
|
|
98249
|
-
if (
|
|
98250
|
-
|
|
98248
|
+
if (v) {
|
|
98249
|
+
const y = document.querySelector(".select-backdrop");
|
|
98250
|
+
if (y)
|
|
98251
|
+
y.className = "select-backdrop select-backdrop-open";
|
|
98251
98252
|
else {
|
|
98252
|
-
const
|
|
98253
|
-
|
|
98254
|
-
const
|
|
98255
|
-
|
|
98253
|
+
const C = document.createElement("div");
|
|
98254
|
+
C.className = "select-backdrop select-backdrop-open";
|
|
98255
|
+
const b = document.querySelector("html");
|
|
98256
|
+
b == null || b.appendChild(C);
|
|
98256
98257
|
}
|
|
98257
98258
|
} else {
|
|
98258
|
-
const
|
|
98259
|
-
if (
|
|
98260
|
-
|
|
98259
|
+
const y = document.querySelector(".select-backdrop");
|
|
98260
|
+
if (y)
|
|
98261
|
+
y.className = "select-backdrop select-backdrop-hidden";
|
|
98261
98262
|
else {
|
|
98262
|
-
const
|
|
98263
|
-
document.appendChild(
|
|
98263
|
+
const C = document.createElement("div");
|
|
98264
|
+
document.appendChild(C), C.className = "select-backdrop select-backdrop-hidden";
|
|
98264
98265
|
}
|
|
98265
98266
|
}
|
|
98266
98267
|
},
|
|
98267
98268
|
[c]
|
|
98268
|
-
)
|
|
98269
|
+
);
|
|
98270
|
+
const m = Hn(() => c ? !(e.showSearch || a) : !1, [c]);
|
|
98269
98271
|
return Jt(() => {
|
|
98270
|
-
const
|
|
98272
|
+
const v = document.querySelector(".mobile-app");
|
|
98271
98273
|
d(
|
|
98272
|
-
|
|
98274
|
+
v != null
|
|
98273
98275
|
);
|
|
98274
98276
|
}, []), /* @__PURE__ */ F(
|
|
98275
98277
|
Xa,
|
|
98276
98278
|
{
|
|
98277
98279
|
...s,
|
|
98278
|
-
onDropdownVisibleChange: m,
|
|
98279
98280
|
className: oJe(e),
|
|
98280
|
-
rootClassName: he(
|
|
98281
|
-
c && "mobile-select",
|
|
98282
|
-
v && "mobile-select-popup"
|
|
98283
|
-
),
|
|
98281
|
+
rootClassName: he(c && "mobile-select"),
|
|
98284
98282
|
popupClassName: iJe(e),
|
|
98285
98283
|
suffixIcon: e.loading ? void 0 : r ?? /* @__PURE__ */ F(Xv, {}),
|
|
98286
|
-
listHeight: c && !
|
|
98284
|
+
listHeight: c && !m ? 220 : void 0,
|
|
98287
98285
|
menuItemSelectedIcon: l ?? /* @__PURE__ */ F(eqe, {}),
|
|
98288
98286
|
removeIcon: /* @__PURE__ */ F(BF, {}),
|
|
98289
|
-
getPopupContainer:
|
|
98287
|
+
getPopupContainer: o ?? e.position === "fixed" ? (v) => v.parentNode : void 0,
|
|
98290
98288
|
showSearch: e.showSearch || i || a,
|
|
98291
98289
|
filterOption: h,
|
|
98292
98290
|
allowClear: n === !0 ? { clearIcon: /* @__PURE__ */ F(om, {}) } : !1,
|
|
98293
98291
|
ref: t,
|
|
98294
|
-
disabled: e.loading || e.disabled
|
|
98295
|
-
dropdownStyle: c && v ? { height: 280 } : e.dropdownStyle
|
|
98292
|
+
disabled: e.loading || e.disabled
|
|
98296
98293
|
}
|
|
98297
98294
|
);
|
|
98298
98295
|
}
|