UNPKG

ucc-ui

Version:

ucc-ui components library

39 lines (38 loc) 1.03 kB
import { isRef as s } from "vue"; import "./ConfigProvider-C-6nRyrn.js"; import { v as u } from "./vendors-PY6Ic9FA.js"; const f = parseInt(document.documentElement.style.fontSize, 10) || window.innerWidth / 100; function m(t, r = {}) { const { isReverse: n = !1, unit: e, rootFontSize: o = parseInt(document.documentElement.style.fontSize, 10) || window.innerWidth / 100 } = r, i = n ? t * o : t / o; return e ? `${i}${e}` : i; } const p = (t) => typeof t == "function", d = (t) => typeof t == "string" ? document.querySelector(t) : t instanceof HTMLElement ? t : s(t) ? t.value : null; function w(t, r) { return (n) => { u(t, (e) => n.use(e)); }; } function h(t, r) { return t.install = (n) => (r && r(n), n.component(t.name, t)), t; } function y(t, r) { const n = function(...e) { return t.apply(this, e); }; return n.install = (e) => { e.config.globalProperties[r] = t; }, Object.assign(n, t), n; } export { y as a, p as i, w as m, m as p, f as r, d as t, h as w };