UNPKG

vexip-ui

Version:

A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good

3 lines (2 loc) 1.24 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),e=require("@vexip-ui/config"),s=require("@vexip-ui/utils");function P(i=[],o){return function(n,t={}){const{prefix:r="",namespace:a="",props:d={},locale:y=o,zIndex:l,icons:b={},hoverDelay:I=100}=t,m=f.computed(()=>({...o,...f.unref(y)}));e.configNamespace(a,n),e.configProps(d,n),e.configLocale(m,n),e.configIcons(b,n),e.configHoverDelay(I,n),typeof f.unref(l)=="number"&&e.configZIndex(l,n);const x=s.toCapitalCase(r||"");i.forEach(c=>{typeof c=="function"||typeof c.install=="function"?n.use(c):n.component(`${x}${c.name}`,c)})}}function g(i,o){!s.isEmpty(i)&&e.configProps(i,o)}function v(i={},o){const{props:u={},locale:n={},zIndex:t,icons:r={}}=i;g(u,o),!s.isEmpty(n)&&e.configLocale(n,o),!s.isEmpty(r)&&e.configIcons(r,o),typeof f.unref(t)=="number"&&e.configZIndex(t,o)}Object.defineProperty(exports,"configIcons",{enumerable:!0,get:()=>e.configIcons});Object.defineProperty(exports,"configLocale",{enumerable:!0,get:()=>e.configLocale});Object.defineProperty(exports,"configZIndex",{enumerable:!0,get:()=>e.configZIndex});exports.buildInstall=P;exports.configProps=g;exports.provideConfig=v; //# sourceMappingURL=create.cjs.map