index.js 1.3 KB

1
  1. "use strict";const _=require("../../common/vendor.js"),u=require("./libs/mixin/mixin.js"),c=require("./libs/mixin/mpMixin.js"),d=require("./libs/luch-request/core/Request.js"),m=require("./libs/util/route.js"),o=require("./libs/function/colorGradient.js"),x=require("./libs/function/test.js"),b=require("./libs/function/debounce.js"),a=require("./libs/function/throttle.js"),i=require("./libs/function/index.js"),s=require("./libs/config/config.js"),r=require("./libs/config/props.js"),l=require("./libs/config/zIndex.js"),t=require("./libs/config/color.js"),f=require("./libs/function/platform.js"),w=new d.Request;let g=["primary","success","error","warning","info"];function p(e){i.index.shallowMerge(s.config,e.config||{}),i.index.shallowMerge(r.defProps,e.props||{}),i.index.shallowMerge(t.color,e.color||{}),i.index.shallowMerge(l.zIndex,e.zIndex||{})}i.index.setConfig=p;const n={route:m.route,date:i.index.timeFormat,colorGradient:o.colorGradient.colorGradient,hexToRgb:o.colorGradient.hexToRgb,rgbToHex:o.colorGradient.rgbToHex,colorToRgba:o.colorGradient.colorToRgba,test:x.test,type:g,http:w,config:s.config,zIndex:l.zIndex,debounce:b.debounce,throttle:a.throttle,mixin:u.mixin,mpMixin:c.mpMixin,props:r.defProps,...i.index,color:t.color,platform:f.platform},P=e=>{_.index.$u=n,e.config.globalProperties.$u=n,e.mixin(u.mixin)},q={install:P};exports.uviewPlus=q;