UNPKG

@aplus-frontend/ui

Version:

40 lines (39 loc) 1.12 kB
import { isUndefined as i } from "lodash-unified"; import { getTopWindow as s } from "./index.mjs"; function f(e, n) { return e?.parentElement ? e.parentElement.classList.contains(n) ? e.parentElement?.parentElement ? e.parentElement.parentElement.className?.includes("basic-table") : !1 : f(e.parentElement, n) : !1; } const u = (e) => f(e, "ant-form") ? e?.parentNode || s().document?.body : s().document?.body, c = ({ text: e }) => { const n = (t) => t == null || t === ""; return Array.isArray(e) ? n(e[0]) ? "--" : e[0] : n(e) ? "--" : e; }, l = !1, a = { getPopupContainer: u, transformCellText: c, autoInsertSpaceInButton: l }; function d(e) { const n = { ...e }, t = Object.keys( a ); for (const r of t) i(n[r]) && (n[r] = a[r]); return n; } function y(e, n) { const t = { ...n }, r = Object.keys(e); for (const o of r) i(e[o]) || (t[o] = e[o]); return t; } export { a as antdConfigProviderPresets, l as autoInsertSpaceInButton, u as getPopupContainer, d as mergeAntdProvideConfig, y as mergeAntdProviderConfigWithCache, c as transformCellText };