ant-design-x-vue
Version:
Craft AI-driven interfaces effortlessly
19 lines (18 loc) • 418 B
JavaScript
function j(E, g = {}, b, a) {
const r = {
...g[E]
};
if (a != null && a.deprecatedTokens) {
const { deprecatedTokens: f } = a;
f.forEach(([h, c]) => {
(r != null && r[h] || r != null && r[c]) && (r[c] ?? (r[c] = r == null ? void 0 : r[h]));
});
}
const d = { ...b, ...r };
return Object.keys(d).forEach((f) => {
d[f] === g[f] && delete d[f];
}), d;
}
export {
j as default
};