django-vue3-admin-web/node_modules/@meetjs/vant4-kit/dist/es/utils-BjwmJovq.js
2025-10-20 21:21:14 +08:00

36 lines
762 B
JavaScript

import { t as i, u as a, c as s } from "./vendor-BuMp2M9h.js";
function f(r) {
return (n) => {
i(r, (e) => n.use(e));
};
}
const p = (r) => {
const t = r;
return t.install = (n) => {
const e = r.name;
n.component(e, t);
}, t;
};
function c(r, t) {
return t ? typeof t == "string" ? ` ${r}--${t}` : Array.isArray(t) ? t.reduce(
(n, e) => n + c(r, e),
""
) : Object.keys(t).reduce(
(n, e) => n + (t[e] ? c(r, e) : ""),
""
) : "";
}
function u(r) {
return (t, n) => (t && typeof t != "string" && (n = t, t = ""), t = t ? `${r}__${t}` : r, `${t}${c(t, n)}`);
}
const $ = (r) => {
const t = `x-${r}`;
return [t, u(t)];
}, h = (r) => a(r) && s(r.then) && s(r.catch);
export {
$ as c,
h as i,
f as m,
p as w
};