tdesign-pro-component
Version:
ProComponents tdesign-vue-next + Vue3 + TS
41 lines (40 loc) • 759 B
JavaScript
function c(n) {
const t = (r) => {
n.forEach((e) => {
r.use(e);
});
};
return console.log("欢迎使用 tdesign-pro-component"), t;
}
function a(n) {
return n.install = (t) => {
const r = n.name;
t.component(r, n);
}, n;
}
function o(n) {
return toString.call(n).substring(7, toString.call(n).length - 1).toLowerCase().trim();
}
function i(n, t) {
return t.toLowerCase().trim() == o(n);
}
function u(n) {
return i(n, "function") || i(n, "asyncfunction");
}
function l(n) {
console.warn("tdesign-pro-component: ", n);
}
function s(n, t, r) {
let e = r || "default";
if (n[e])
return n[e]();
if (t[e] !== !1 && t[e])
return u(t[e]) ? t[e]() : t[e];
}
export {
l as a,
c,
s as g,
u as i,
a as w
};