数通智联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
96 KiB

2 years ago
var VueDemi=function(w,d,u){if(w.install)return w;if(!d)return console.error("[vue-demi] no Vue instance found, please be sure to import `vue` before `vue-demi`."),w;if(d.version.slice(0,4)==="2.7."){let B=function(X,J){var K,L={},V={config:d.config,use:d.use.bind(d),mixin:d.mixin.bind(d),component:d.component.bind(d),provide:function(H,U){return L[H]=U,this},directive:function(H,U){return U?(d.directive(H,U),V):d.directive(H)},mount:function(H,U){return K||(K=new d(Object.assign({propsData:J},X,{provide:Object.assign(L,X.provide)})),K.$mount(H,U),K)},unmount:function(){K&&(K.$destroy(),K=void 0)}};return V};var Re=B;for(var Y in d)w[Y]=d[Y];w.isVue2=!0,w.isVue3=!1,w.install=function(){},w.Vue=d,w.Vue2=d,w.version=d.version,w.warn=d.util.warn,w.hasInjectionContext=()=>!!w.getCurrentInstance(),w.createApp=B}else if(d.version.slice(0,2)==="2.")if(u){for(var Y in u)w[Y]=u[Y];w.isVue2=!0,w.isVue3=!1,w.install=function(){},w.Vue=d,w.Vue2=d,w.version=d.version,w.hasInjectionContext=()=>!!w.getCurrentInstance()}else console.error("[vue-demi] no VueCompositionAPI instance found, please be sure to import `@vue/composition-api` before `vue-demi`.");else if(d.version.slice(0,2)==="3."){for(var Y in d)w[Y]=d[Y];w.isVue2=!1,w.isVue3=!0,w.install=function(){},w.Vue=d,w.Vue2=void 0,w.version=d.version,w.set=function(B,X,J){return Array.isArray(B)?(B.length=Math.max(B.length,X),B.splice(X,1,J),J):(B[X]=J,J)},w.del=function(B,X){if(Array.isArray(B)){B.splice(X,1);return}delete B[X]}}else console.error("[vue-demi] Vue version "+d.version+" is unsupported.");return w}(this.VueDemi=this.VueDemi||(typeof VueDemi<"u"?VueDemi:{}),this.Vue||(typeof Vue<"u"?Vue:void 0),this.VueCompositionAPI||(typeof VueCompositionAPI<"u"?VueCompositionAPI:void 0));(function(w,d,u){"use strict";function Y(e,t,n){let o;u.isRef(n)?o={evaluating:n}:o=n||{};const{lazy:a=!1,evaluating:r=void 0,shallow:s=!0,onError:l=d.noop}=o,i=u.ref(!a),c=s?u.shallowRef(t):u.ref(t);let f=0;return u.watchEffect(async v=>{if(!i.value)return;f++;const g=f;let p=!1;r&&Promise.resolve().then(()=>{r.value=!0});try{const y=await e(m=>{v(()=>{r&&(r.value=!1),p||m()})});g===f&&(c.value=y)}catch(y){l(y)}finally{r&&g===f&&(r.value=!1),p=!0}}),a?u.computed(()=>(i.value=!0,c.value)):c}function Re(e,t,n,o){let a=u.inject(e);return n&&(a=u.inject(e,n)),o&&(a=u.inject(e,n,o)),typeof t=="function"?u.computed(r=>t(a,r)):u.computed({get:r=>t.get(a,r),set:t.set})}function B(e={}){if(!u.isVue3&&!u.version.startsWith("2.7.")){if(process.env.NODE_ENV!=="production")throw new Error("[VueUse] createReusableTemplate only works in Vue 2.7 or above.");return}const{inheritAttrs:t=!0}=e,n=u.shallowRef(),o=u.defineComponent({setup(r,{slots:s}){return()=>{n.value=s.default}}}),a=u.defineComponent({inheritAttrs:t,setup(r,{attrs:s,slots:l}){return()=>{var i;if(!n.value&&process.env.NODE_ENV!=="production")throw new Error("[VueUse] Failed to find the definition of reusable template");const c=(i=n.value)==null?void 0:i.call(n,{...X(s),$slots:l});return t&&c?.length===1?c[0]:c}}});return d.makeDestructurable({define:o,reuse:a},[o,a])}function X(e){const t={};for(const n in e)t[d.camelize(n)]=e[n];return t}function J(e={}){if(!u.isVue3){if(process.env.NODE_ENV!=="production")throw new Error("[VueUse] createTemplatePromise only works in Vue 3 or above.");return}let t=0;const n=u.ref([]);function o(...s){const l=u.shallowReactive({key:t++,args:s,promise:void 0,resolve:()=>{},reject:()=>{},isResolving:!1,options:e});return n.value.push(l),l.promise=new Promise((i,c)=>{l.resolve=f=>(l.isResolving=!0,i(f)),l.reject=c}).finally(()=>{l.promise=void 0;const i=n.value.indexOf(l);i!==-1&&n.value.splice(i,1)}),l.promise}function a(...s){return e.singleton&&n.value.length>0?n.value[0].promise:o(...s)}const r=u.defineComponent((s,{slots:l})=>{const i=()=>n.value.map(c=>{var f;return u.h(u.Fragment,{key:c.key},(f=l.default)==null?void 0:f.call(l,c))});return e.transition?()=>u.h(u.TransitionGroup,e.transition,i):i});return r.start=a,r}function K(e){return function(...t){return e.apply(this,t.map(n=>d.toValue(n)))}}function L(e){var