dld-vue-ui 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(P,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(P=typeof globalThis<"u"?globalThis:P||self,e(P["dld-vue-ui"]={},P.Vue))})(this,function(P,e){"use strict";const fe={__name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],setup(s,{emit:h}){const m=h,d=s,w=e.useSlots(),a=e.ref([]),C=e.computed(()=>a.value.reduce((o,r)=>(o[~~r.id]=r)&&o,{})),x=e.computed(()=>a.value.length),y=e.ref(null),V=e.ref(!1),b=e.ref({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),B=e.ref({splitter:null,timeoutId:null}),S=e.computed(()=>({[`splitpanes splitpanes--${d.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":b.value.dragging})),N=()=>{document.addEventListener("mousemove",z,{passive:!1}),document.addEventListener("mouseup",L),"ontouchstart"in window&&(document.addEventListener("touchmove",z,{passive:!1}),document.addEventListener("touchend",L))},M=()=>{document.removeEventListener("mousemove",z,{passive:!1}),document.removeEventListener("mouseup",L),"ontouchstart"in window&&(document.removeEventListener("touchmove",z,{passive:!1}),document.removeEventListener("touchend",L))},E=(o,r)=>{const c=o.target.closest(".splitpanes__splitter");if(c){const{left:n,top:p}=c.getBoundingClientRect(),{clientX:u,clientY:k}="ontouchstart"in window&&o.touches?o.touches[0]:o;b.value.cursorOffset=d.horizontal?k-p:u-n}N(),b.value.mouseDown=!0,b.value.activeSplitter=r},z=o=>{b.value.mouseDown&&(o.preventDefault(),b.value.dragging=!0,requestAnimationFrame(()=>{l(A(o)),m("resize",a.value.map(r=>({min:r.min,max:r.max,size:r.size})))}))},L=()=>{b.value.dragging&&m("resized",a.value.map(o=>({min:o.min,max:o.max,size:o.size}))),b.value.mouseDown=!1,setTimeout(()=>{b.value.dragging=!1,M()},100)},W=(o,r)=>{"ontouchstart"in window&&(o.preventDefault(),d.dblClickSplitter&&(B.value.splitter===r?(clearTimeout(B.value.timeoutId),B.value.timeoutId=null,D(o,r),B.value.splitter=null):(B.value.splitter=r,B.value.timeoutId=setTimeout(()=>B.value.splitter=null,500)))),b.value.dragging||m("splitter-click",a.value[r])},D=(o,r)=>{let c=0;a.value=a.value.map((n,p)=>(n.size=p===r?n.max:n.min,p!==r&&(c+=n.min),n)),a.value[r].size-=c,m("pane-maximize",a.value[r]),m("resized",a.value.map(n=>({min:n.min,max:n.max,size:n.size})))},H=(o,r)=>{m("pane-click",C.value[r])},A=o=>{const r=y.value.getBoundingClientRect(),{clientX:c,clientY:n}="ontouchstart"in window&&o.touches?o.touches[0]:o;return{x:c-(d.horizontal?0:b.value.cursorOffset)-r.left,y:n-(d.horizontal?b.value.cursorOffset:0)-r.top}},i=o=>{o=o[d.horizontal?"y":"x"];const r=y.value[d.horizontal?"clientHeight":"clientWidth"];return d.rtl&&!d.horizontal&&(o=r-o),o*100/r},l=o=>{const r=b.value.activeSplitter;let c={prevPanesSize:_(r),nextPanesSize:$(r),prevReachedMinPanes:0,nextReachedMinPanes:0};const n=0+(d.pushOtherPanes?0:c.prevPanesSize),p=100-(d.pushOtherPanes?0:c.nextPanesSize),u=Math.max(Math.min(i(o),p),n);let k=[r,r+1],U=a.value[k[0]]||null,F=a.value[k[1]]||null;const me=U.max<100&&u>=U.max+c.prevPanesSize,rt=F.max<100&&u<=100-(F.max+$(r+1));if(me||rt){me?(U.size=U.max,F.size=Math.max(100-U.max-c.prevPanesSize-c.nextPanesSize,0)):(U.size=Math.max(100-F.max-c.prevPanesSize-$(r+1),0),F.size=F.max);return}if(d.pushOtherPanes){const he=f(c,u);if(!he)return;({sums:c,panesToResize:k}=he),U=a.value[k[0]]||null,F=a.value[k[1]]||null}U!==null&&(U.size=Math.min(Math.max(u-c.prevPanesSize-c.prevReachedMinPanes,U.min),U.max)),F!==null&&(F.size=Math.min(Math.max(100-u-c.nextPanesSize-c.nextReachedMinPanes,F.min),F.max))},f=(o,r)=>{const c=b.value.activeSplitter,n=[c,c+1];return r<o.prevPanesSize+a.value[n[0]].min&&(n[0]=Y(c).index,o.prevReachedMinPanes=0,n[0]<c&&a.value.forEach((p,u)=>{u>n[0]&&u<=c&&(p.size=p.min,o.prevReachedMinPanes+=p.min)}),o.prevPanesSize=_(n[0]),n[0]===void 0)?(o.prevReachedMinPanes=0,a.value[0].size=a.value[0].min,a.value.forEach((p,u)=>{u>0&&u<=c&&(p.size=p.min,o.prevReachedMinPanes+=p.min)}),a.value[n[1]].size=100-o.prevReachedMinPanes-a.value[0].min-o.prevPanesSize-o.nextPanesSize,null):r>100-o.nextPanesSize-a.value[n[1]].min&&(n[1]=K(c).index,o.nextReachedMinPanes=0,n[1]>c+1&&a.value.forEach((p,u)=>{u>c&&u<n[1]&&(p.size=p.min,o.nextReachedMinPanes+=p.min)}),o.nextPanesSize=$(n[1]-1),n[1]===void 0)?(o.nextReachedMinPanes=0,a.value.forEach((p,u)=>{u<x.value-1&&u>=c+1&&(p.size=p.min,o.nextReachedMinPanes+=p.min)}),a.value[n[0]].size=100-o.prevPanesSize-$(n[0]-1),null):{sums:o,panesToResize:n}},_=o=>a.value.reduce((r,c,n)=>r+(n<o?c.size:0),0),$=o=>a.value.reduce((r,c,n)=>r+(n>o+1?c.size:0),0),Y=o=>[...a.value].reverse().find(r=>r.index<o&&r.size>r.min)||{},K=o=>a.value.find(r=>r.index>o+1&&r.size>r.min)||{},j=()=>{var o;Array.from(((o=y.value)==null?void 0:o.children)||[]).forEach(r=>{const c=r.classList.contains("splitpanes__pane"),n=r.classList.contains("splitpanes__splitter");!c&&!n&&(r.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},R=(o,r,c=!1)=>{const n=o-1,p=document.createElement("div");p.classList.add("splitpanes__splitter"),c||(p.onmousedown=u=>E(u,n),typeof window<"u"&&"ontouchstart"in window&&(p.ontouchstart=u=>E(u,n)),p.onclick=u=>W(u,n+1)),d.dblClickSplitter&&(p.ondblclick=u=>D(u,n+1)),r.parentNode.insertBefore(p,r)},q=o=>{o.onmousedown=void 0,o.onclick=void 0,o.ondblclick=void 0,o.remove()},O=()=>{var o;const r=Array.from(((o=y.value)==null?void 0:o.children)||[]);r.forEach(n=>{n.className.includes("splitpanes__splitter")&&q(n)});let c=0;r.forEach(n=>{n.className.includes("splitpanes__pane")&&(!c&&d.firstSplitter?R(c,n,!0):c&&R(c,n),c++)})},T=({uid:o,...r})=>{const c=C.value[o];Object.entries(r).forEach(([n,p])=>c[n]=p)},X=o=>{var r;let c=-1;Array.from(((r=y.value)==null?void 0:r.children)||[]).some(n=>(n.className.includes("splitpanes__pane")&&c++,n.isSameNode(o.el))),a.value.splice(c,0,{...o,index:c}),a.value.forEach((n,p)=>n.index=p),V.value&&e.nextTick(()=>{O(),G({addedPane:a.value[c]}),m("pane-add",{index:c,panes:a.value.map(n=>({min:n.min,max:n.max,size:n.size}))})})},J=o=>{const r=a.value.findIndex(n=>n.id===o),c=a.value.splice(r,1)[0];a.value.forEach((n,p)=>n.index=p),e.nextTick(()=>{O(),G({removedPane:{...c}}),m("pane-remove",{removed:c,panes:a.value.map(n=>({min:n.min,max:n.max,size:n.size}))})})},G=(o={})=>{!o.addedPane&&!o.removedPane?Z():a.value.some(r=>r.givenSize!==null||r.min||r.max<100)?v(o):Q(),V.value&&m("resized",a.value.map(r=>({min:r.min,max:r.max,size:r.size})))},Q=()=>{const o=100/x.value;let r=0;const c=[],n=[];a.value.forEach(p=>{p.size=Math.max(Math.min(o,p.max),p.min),r-=p.size,p.size>=p.max&&c.push(p.id),p.size<=p.min&&n.push(p.id)}),r>.1&&t(r,c,n)},Z=()=>{let o=100;const r=[],c=[];let n=0;a.value.forEach(u=>{o-=u.size,u.givenSize!==null&&n++,u.size>=u.max&&r.push(u.id),u.size<=u.min&&c.push(u.id)});let p=100;o>.1&&(a.value.forEach(u=>{u.givenSize===null&&(u.size=Math.max(Math.min(o/(x.value-n),u.max),u.min)),p-=u.size}),p>.1&&t(p,r,c))},v=({addedPane:o,removedPane:r}={})=>{let c=100/x.value,n=0;const p=[],u=[];((o==null?void 0:o.givenSize)??null)!==null&&(c=(100-o.givenSize)/(x.value-1).value),a.value.forEach(k=>{n-=k.size,k.size>=k.max&&p.push(k.id),k.size<=k.min&&u.push(k.id)}),!(Math.abs(n)<.1)&&(a.value.forEach(k=>{(o==null?void 0:o.givenSize)!==null&&(o==null?void 0:o.id)===k.id||(k.size=Math.max(Math.min(c,k.max),k.min)),n-=k.size,k.size>=k.max&&p.push(k.id),k.size<=k.min&&u.push(k.id)}),n>.1&&t(n,p,u))},t=(o,r,c)=>{let n;o>0?n=o/(x.value-r.length):n=o/(x.value-c.length),a.value.forEach((p,u)=>{if(o>0&&!r.includes(p.id)){const k=Math.max(Math.min(p.size+n,p.max),p.min),U=k-p.size;o-=U,p.size=k}else if(!c.includes(p.id)){const k=Math.max(Math.min(p.size+n,p.max),p.min),U=k-p.size;o-=U,p.size=k}}),Math.abs(o)>.1&&e.nextTick(()=>{V.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})};e.watch(()=>d.firstSplitter,()=>O()),e.watch(()=>d.dblClickSplitter,o=>{[...y.value.querySelectorAll(".splitpanes__splitter")].forEach((r,c)=>{r.ondblclick=o?n=>D(n,c):void 0})}),e.onBeforeUnmount(()=>V.value=!1),e.onMounted(()=>{j(),O(),G(),m("ready"),V.value=!0});const g=()=>{var o;return e.h("div",{ref:y,class:S.value},(o=w.default)==null?void 0:o.call(w))};return e.provide("panes",a),e.provide("indexedPanes",C),e.provide("horizontal",e.computed(()=>d.horizontal)),e.provide("requestUpdate",T),e.provide("onPaneAdd",X),e.provide("onPaneRemove",J),e.provide("onPaneClick",H),(o,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g)))}},ue={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(s){var h;const m=s,d=e.inject("requestUpdate"),w=e.inject("onPaneAdd"),a=e.inject("horizontal"),C=e.inject("onPaneRemove"),x=e.inject("onPaneClick"),y=(h=e.getCurrentInstance())==null?void 0:h.uid,V=e.inject("indexedPanes"),b=e.computed(()=>V.value[y]),B=e.ref(null),S=e.computed(()=>{const z=isNaN(m.size)||m.size===void 0?0:parseFloat(m.size);return Math.max(Math.min(z,M.value),N.value)}),N=e.computed(()=>{const z=parseFloat(m.minSize);return isNaN(z)?0:z}),M=e.computed(()=>{const z=parseFloat(m.maxSize);return isNaN(z)?100:z}),E=e.computed(()=>{var z;return`${a.value?"height":"width"}: ${(z=b.value)==null?void 0:z.size}%`});return e.onMounted(()=>{w({id:y,el:B.value,min:N.value,max:M.value,givenSize:m.size===void 0?null:S.value,size:S.value})}),e.watch(()=>S.value,z=>d({uid:y,size:z})),e.watch(()=>N.value,z=>d({uid:y,min:z})),e.watch(()=>M.value,z=>d({uid:y,max:z})),e.onBeforeUnmount(()=>C(y)),(z,L)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"paneEl",ref:B,class:"splitpanes__pane",onClick:L[0]||(L[0]=W=>e.unref(x)(W,z._.uid)),style:e.normalizeStyle(E.value)},[e.renderSlot(z.$slots,"default")],4))}},it="",_e=e.defineComponent({__name:"index",props:{styles:{default:()=>({width:"100%",height:"100%"})},horizontal:{type:Boolean,default:!1}},setup(s){return(h,m)=>(e.openBlock(),e.createBlock(e.unref(fe),{horizontal:h.horizontal,style:e.normalizeStyle(h.styles),class:"splitpanes"},{default:e.withCtx(()=>[e.renderSlot(h.$slots,"default",{},void 0,!0)]),_:3},8,["horizontal","style"]))}}),dt="",I=(s,h)=>{const m=s.__vccOpts||s;for(const[d,w]of h)m[d]=w;return m},ee=I(_e,[["__scopeId","data-v-15862e4c"]]),te=e.defineComponent({__name:"pane",props:{styles:{default:()=>({background:"#ececec"})}},setup(s){return(h,m)=>(e.openBlock(),e.createBlock(e.unref(ue),{style:e.normalizeStyle(h.styles)},{default:e.withCtx(()=>[e.renderSlot(h.$slots,"default")]),_:3},8,["style"]))}});/*! Element Plus Icons Vue v2.3.1 */var ye=e.defineComponent({name:"Check",__name:"check",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),ge=ye,ze=e.defineComponent({name:"CircleClose",__name:"circle-close",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),e.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),ke=ze,we=e.defineComponent({name:"Close",__name:"close",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),le=we,Ce=e.defineComponent({name:"DeleteFilled",__name:"delete-filled",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),Ve=Ce,be=e.defineComponent({name:"Delete",__name:"delete",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),Be=be,xe=e.defineComponent({name:"Edit",__name:"edit",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),e.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),Se=xe,Ne=e.defineComponent({name:"Filter",__name:"filter",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),oe=Ne,Ee=e.defineComponent({name:"FolderOpened",__name:"folder-opened",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),ae=Ee,Me=e.defineComponent({name:"FullScreen",__name:"full-screen",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),Pe=Me,Ue=e.defineComponent({name:"Minus",__name:"minus",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),Le=Ue,Fe=e.defineComponent({name:"Search",__name:"search",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),$e=Fe,Te=e.defineComponent({name:"Upload",__name:"upload",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),ne=Te,We=function(){function s(h){if(!h)throw new TypeError("Invalid argument; `value` has no value.");this.value=s.EMPTY,h&&s.isGuid(h)&&(this.value=h)}return s.isGuid=function(h){var m=h.toString();return h&&(h instanceof s||s.validator.test(m))},s.create=function(){return new s([s.gen(2),s.gen(1),s.gen(1),s.gen(1),s.gen(3)].join("-"))},s.createEmpty=function(){return new s("emptyguid")},s.parse=function(h){return new s(h)},s.raw=function(){return[s.gen(2),s.gen(1),s.gen(1),s.gen(1),s.gen(3)].join("-")},s.gen=function(h){for(var m="",d=0;d<h;d++)m+=((1+Math.random())*65536|0).toString(16).substring(1);return m},s.prototype.equals=function(h){return s.isGuid(h)&&this.value===h.toString()},s.prototype.isEmpty=function(){return this.value===s.EMPTY},s.prototype.toString=function(){return this.value},s.prototype.toJSON=function(){return{value:this.value}},s.validator=new RegExp("^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$","i"),s.EMPTY="00000000-0000-0000-0000-000000000000",s}(),De=We;const Re={style:{}},Ie=["id","accept"],He={class:"filename"},Oe=e.defineComponent({__name:"index",props:{size:{default:"default"},name:{default:"上传文件"},icon:{default:ne},type:{default:"success"},accept:{default:"*"}},emits:["upload"],setup(s,{expose:h,emit:m}){const d=m;let w=De.create().toString(),a,C=e.ref("");function x(){a.click()}function y(){C.value=a.value}function V(){a.files!==null&&d("upload",a.files[0])}function b(){a.value="",C.value=""}return e.onMounted(()=>{a=document.getElementById(w)}),h({Clear:b}),(B,S)=>{const N=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Re,[e.createVNode(N,{type:B.type,icon:e.unref(ae),size:B.size,class:"btn",onClick:x},{default:e.withCtx(()=>S[0]||(S[0]=[e.createTextVNode("选择文件")])),_:1,__:[0]},8,["type","icon","size"]),e.withDirectives(e.createElementVNode("input",{type:"file",id:e.unref(w),onChange:y,accept:B.accept},null,40,Ie),[[e.vShow,!1]]),e.createElementVNode("span",He,e.toDisplayString(e.unref(C)),1),e.createVNode(N,{type:B.type,icon:B.icon,size:B.size,disabled:e.unref(C)==null||e.unref(C)=="",class:"btn",title:e.unref(C)==null||e.unref(C)==""?"请选择文件":"",onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.name),1)]),_:1},8,["type","icon","size","disabled","title"])])}}}),st="",re=I(Oe,[["__scopeId","data-v-d2ed1fe1"]]),Ae=["accept"],Ge={class:"filename"},qe={class:"content"},Ye=e.defineComponent({__name:"index",props:{size:{default:"default"},accept:{default:"*"}},emits:["upload","clear"],setup(s,{expose:h,emit:m}){const d=s,w=m,a=e.ref(),C=e.ref([]);function x(){var S;(S=a.value)==null||S.click()}function y(){var S,N,M;if(C.value=[],(S=a.value)!=null&&S.files)for(let E=0;E<((M=(N=a.value)==null?void 0:N.files)==null?void 0:M.length);E++)C.value[E]=a.value.files[E];else C.value=[]}function V(S){C.value.splice(S,1)}function b(){w("upload",C.value)}function B(){C.value=[]}return h({Clear:B}),(S,N)=>{const M=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("input",{type:"file",ref_key:"files",ref:a,multiple:"",style:{display:"none"},onChange:y,accept:d.accept},null,40,Ae),e.createVNode(M,{type:"success",size:d.size,icon:e.unref(ae),onClick:x},{default:e.withCtx(()=>N[0]||(N[0]=[e.createTextVNode("选择文件")])),_:1,__:[0]},8,["size","icon"]),e.createVNode(M,{type:"success",size:d.size,icon:e.unref(ne),onClick:b,disabled:C.value.length==0},{default:e.withCtx(()=>N[1]||(N[1]=[e.createTextVNode("上传文件")])),_:1,__:[1]},8,["size","icon","disabled"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(E,z)=>(e.openBlock(),e.createElementBlock("p",Ge,[e.createElementVNode("span",qe,e.toDisplayString(E.name),1),e.createVNode(M,{size:"small",icon:e.unref(le),class:"operation",link:"",onClick:L=>V(z)},null,8,["icon","onClick"])]))),256))])}}}),ct="",ie=I(Ye,[["__scopeId","data-v-fd9596c6"]]),Ke=e.defineComponent({__name:"index",props:{asideWidth:{default:220},headerMaxHeight:{default:60},horizontal:{type:Boolean,default:!1}},setup(s){const h=e.useSlots();return(m,d)=>{const w=e.resolveComponent("el-aside"),a=e.resolveComponent("el-header"),C=e.resolveComponent("el-main"),x=e.resolveComponent("el-container");return e.openBlock(),e.createBlock(x,{class:"container"},{default:e.withCtx(()=>[e.unref(h).aside&&!m.horizontal?(e.openBlock(),e.createBlock(w,{key:0,class:"aside",style:e.normalizeStyle("width: "+m.asideWidth+"px;")},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"aside",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("",!0),e.unref(h).header&&m.horizontal?(e.openBlock(),e.createBlock(a,{key:1,class:"inside_header",style:e.normalizeStyle("height: "+m.headerMaxHeight+"px;")},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"header",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("",!0),e.createVNode(C,{class:"main"},{default:e.withCtx(()=>[e.createVNode(x,{class:"inside_container"},{default:e.withCtx(()=>[e.unref(h).header&&!m.horizontal?(e.openBlock(),e.createBlock(a,{key:0,class:"inside_header",style:e.normalizeStyle("height: "+m.headerMaxHeight+"px;")},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"header",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("",!0),e.unref(h).aside&&m.horizontal?(e.openBlock(),e.createBlock(w,{key:1,class:"aside",style:e.normalizeStyle("width: "+m.asideWidth+"px;")},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"aside",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("",!0),e.createVNode(C,{class:"inside_main"},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]),_:3})]),_:3})}}}),pt="",de=I(Ke,[["__scopeId","data-v-79d244c7"]]),je={key:0,class:"header"},Xe={class:"header_title"},Je=["innerHTML"],Qe={class:"header_title"},Ze={class:"pagination"},ve=e.defineComponent({__name:"index",props:{maxHeight:{default:550},size:{default:"default"},tableData:{default:()=>[]},headStyle:{default:{}},tableColumn:{default:()=>[]},stripe:{type:Boolean,default:!0},border:{type:Boolean,default:!1},highLight:{type:Boolean,default:!1},type:{},typeLabel:{default:"序号"},typeWidth:{default:60},typeIsFixed:{type:Boolean},operate:{type:Boolean},operateSize:{default:"default"},rowButtonSize:{default:"default"},operateLabel:{default:""},operateWidth:{default:220},operateIsFixed:{type:Boolean},search:{type:Boolean},clear:{type:Boolean},edit:{type:Boolean},delete:{type:Boolean},deleteTitle:{},pagination:{type:Boolean,default:!1},small:{type:Boolean,default:!1},total:{default:0},hideOnSinglePage:{type:Boolean,default:!1},defaultSelect:{},defaultSize:{default:5},filter:{type:Boolean}},emits:["row-click","row-dblclick","selection-change","search","clear","delete","edit","page-index","page-size","get-ref","filter"],setup(s,{expose:h,emit:m}){const d=s,w=m;let a=e.reactive({pageIndex:1,pageSize:5}),C=e.ref(),x=e.ref();const y=e.ref([]),V=e.ref([]),b=e.ref(!1),B=e.useSlots(),S=l=>{w("row-click",l)},N=l=>{w("row-click",l)},M=l=>{w("selection-change",l)},E=()=>{if(d.tableColumn.length>0)for(let l=0;l<d.tableColumn.length;l++){let f=d.tableColumn[l];a[f.prop]=null}w("clear")},z=()=>{w("search",a)},L=l=>{w("edit",l)},W=l=>{w("delete",l)},D=l=>{for(let f=0;f<l.length;f++)a[l[f].prop]=l[f].label},H=()=>a,A=()=>{y.value.forEach(l=>{var f=V.value.find(_=>_.label==l.label);f&&f.filter&&(l.hidden=!f.check,l.hidden&&(a[l.prop]=null))}),b.value=!1,x.value.hide(),w("filter",()=>V.value)},i=l=>{y.value=l,d.filter&&(V.value=[],y.value.forEach(f=>{f.filter?f.check?V.value.push({label:f.label,check:!0,prop:f.prop,filter:f.filter}):(V.value.push({label:f.label,check:!1,prop:f.prop,filter:f.filter}),f.hidden=!0):V.value.push({label:f.label,check:!0,prop:f.prop,filter:f.filter})})),y.value.forEach(f=>{var _=V.value.find($=>$.label==f.label);_&&_.filter&&(f.hidden=!_.check,f.hidden&&(a[f.prop]=null)),_!=null&&_.filter||(f.hidden=!1)})};return e.watch(()=>a.pageIndex,(l,f)=>{w("page-index",Number(l),Number(f))}),e.watch(()=>a.pageSize,(l,f)=>{w("page-size",Number(l),Number(f))}),h({Assignment:D,GetParameters:H,SetFilter:i}),e.onMounted(()=>{if(d.tableColumn.length>0)for(let l=0;l<d.tableColumn.length;l++){let f=d.tableColumn[l];a[f.prop]=null}d.tableData.forEach(l=>{d.defaultSelect&&d.type=="selection"&&d.defaultSelect(l)&&C.value.toggleRowSelection(l,void 0,!1)}),a.pageSize=d.defaultSize,d.filter||(y.value=d.tableColumn)}),(l,f)=>{const _=e.resolveComponent("el-table-column"),$=e.resolveComponent("el-input"),Y=e.resolveComponent("el-input-number"),K=e.resolveComponent("el-option"),j=e.resolveComponent("el-select"),R=e.resolveComponent("el-date-picker"),q=e.resolveComponent("el-time-picker"),O=e.resolveComponent("el-switch"),T=e.resolveComponent("el-button"),X=e.resolveComponent("el-icon"),J=e.resolveComponent("el-checkbox"),G=e.resolveComponent("el-popover"),Q=e.resolveComponent("el-popconfirm"),Z=e.resolveComponent("el-table"),v=e.resolveComponent("el-pagination");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(B).header?(e.openBlock(),e.createElementBlock("div",je,[e.renderSlot(l.$slots,"header",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Z,{data:l.tableData,class:e.normalizeClass([l.size&&l.size=="small"?"mini-table":"table"]),"max-height":l.maxHeight,size:l.size,stripe:l.stripe,border:l.border,"highlight-current-row":l.highLight,onRowClick:S,onRowDblclick:N,onSelectionChange:M,ref_key:"tableRef",ref:C,"header-cell-style":l.headStyle},{default:e.withCtx(()=>[l.type&&l.type=="index"?(e.openBlock(),e.createBlock(_,{key:0,align:"center",type:"index",width:l.typeWidth+"px",fixed:l.typeIsFixed?"left":!1,label:l.typeLabel},null,8,["width","fixed","label"])):e.createCommentVNode("",!0),l.type=="selection"?(e.openBlock(),e.createBlock(_,{key:1,align:"center",type:"selection",width:l.typeWidth+"px",fixed:l.typeIsFixed?"left":!1},null,8,["width","fixed"])):e.createCommentVNode("",!0),l.type=="expand"?(e.openBlock(),e.createBlock(_,{key:2,align:"center",type:"expand",width:l.typeWidth+"px",fixed:l.typeIsFixed?"left":!1,label:l.typeLabel},{default:e.withCtx(t=>[e.renderSlot(l.$slots,"expand",{row:t==null?void 0:t.row},void 0,!0)]),_:3},8,["width","fixed","label"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(_,{key:0,prop:t.costom?!1:t.prop,width:t.width?t.width:"","min-width":t.minWidth?t.minWidth:"",fixed:t.fixed?t.fixed:!1,align:t.align?t.align:"left","show-overflow-tooltip":!!t.overflow},e.createSlots({header:e.withCtx(()=>[e.createElementVNode("div",Xe,e.toDisplayString(t.label),1),t.search&&(!t.type||t.type=="text")?(e.openBlock(),e.createBlock($,{key:0,modelValue:e.unref(a)[t.prop],"onUpdate:modelValue":g=>e.unref(a)[t.prop]=g,size:t.size,clearable:"",style:e.normalizeStyle(t.searchWidth?"width: "+t.searchWidth+"px;":"width: 92%"),disabled:t.disabled,placeholder:t.placeholder?t.placeholder:"请输入"+t.label,class:e.normalizeClass([t.align&&t.align=="center"?"center":""]),onKeyup:e.withKeys(z,["enter","native"])},null,8,["modelValue","onUpdate:modelValue","size","style","disabled","placeholder","class"])):e.createCommentVNode("",!0),t.search&&t.type=="number"?(e.openBlock(),e.createBlock(Y,{key:1,modelValue:e.unref(a)[t.prop],"onUpdate:modelValue":g=>e.unref(a)[t.prop]=g,size:t.size,clearable:"",style:e.normalizeStyle(t.searchWidth?"width: "+t.searchWidth+"px;":"width: 92%"),disabled:t.disabled,placeholder:t.placeholder?t.placeholder:"请输入"+t.label,class:e.normalizeClass([t.align&&t.align=="center"?"center":""]),max:t.max!=null?t.max:1/0,min:t.min!=null?t.min:-1/0,step:t.step!=null?t.step:1,onKeyup:e.withKeys(z,["enter","native"])},null,8,["modelValue","onUpdate:modelValue","size","style","disabled","placeholder","class","max","min","step"])):e.createCommentVNode("",!0),t.search&&t.type=="select"?(e.openBlock(),e.createBlock(j,{key:2,modelValue:e.unref(a)[t.prop],"onUpdate:modelValue":g=>e.unref(a)[t.prop]=g,size:t.size,clearable:"",filterable:"",style:e.normalizeStyle(t.searchWidth?"width: "+t.searchWidth+"px;":"width: 92%"),disabled:t.disabled,multiple:t.multiple,"collapse-tags":t.omit,placeholder:t.placeholder?t.placeholder:"请选择"+t.label,class:e.normalizeClass([t.align&&t.align=="center"?"center":""])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,g=>(e.openBlock(),e.createBlock(K,{label:g.label?g.label:g.value,value:g.value,disabled:g.disabled},null,8,["label","value","disabled"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue","size","style","disabled","multiple","collapse-tags","placeholder","class"])):e.createCommentVNode("",!0),t.search&&t.type=="date"?(e.openBlock(),e.createBlock(R,{key:3,modelValue:e.unref(a)[t.prop],"onUpdate:modelValue":g=>e.unref(a)[t.prop]=g,type:"date",style:e.normalizeStyle(t.searchWidth?"width: "+t.searchWidth+"px;":""),placeholder:t.placeholder?t.placeholder:"请选择日期",size:t.size,class:e.normalizeClass([t.align&&t.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","style","placeholder","size","class"])):e.createCommentVNode("",!0),t.search&&t.type=="time"?(e.openBlock(),e.createBlock(q,{key:4,modelValue:e.unref(a)[t.prop],"onUpdate:modelValue":g=>e.unref(a)[t.prop]=g,"arrow-control":"",style:e.normalizeStyle(t.searchWidth?"width: "+t.searchWidth+"px;":"width: 92%"),placeholder:t.placeholder?t.placeholder:"请选择时间",size:t.size,class:e.normalizeClass([t.align&&t.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","style","placeholder","size","class"])):e.createCommentVNode("",!0),t.search&&t.type=="datetime"?(e.openBlock(),e.createBlock(R,{key:5,modelValue:e.unref(a)[t.prop],"onUpdate:modelValue":g=>e.unref(a)[t.prop]=g,type:"datetime",style:e.normalizeStyle(t.searchWidth?"width: "+t.searchWidth+"px;":"width: 92%"),placeholder:t.placeholder?t.placeholder:"请选择日期时间",size:t.size,class:e.normalizeClass([t.align&&t.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","style","placeholder","size","class"])):e.createCommentVNode("",!0),t.search&&t.type=="daterange"?(e.openBlock(),e.createBlock(R,{key:6,modelValue:e.unref(a)[t.prop],"onUpdate:modelValue":g=>e.unref(a)[t.prop]=g,type:"daterange","range-separator":"-","start-placeholder":t.placeholder?t.placeholder.split("&&")[0]:"请选择开始日期","end-placeholder":t.placeholder?t.placeholder.split("&&")[1]:"请选择结束日期",style:e.normalizeStyle(t.searchWidth?"width: "+t.searchWidth+"px;":"width: 92%"),size:t.size,class:e.normalizeClass([t.align&&t.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","style","size","class"])):e.createCommentVNode("",!0),t.search&&t.type=="timerange"?(e.openBlock(),e.createBlock(q,{key:7,modelValue:e.unref(a)[t.prop],"onUpdate:modelValue":g=>e.unref(a)[t.prop]=g,"is-range":"","arrow-control":"","range-separator":"-","start-placeholder":t.placeholder?t.placeholder.split("&&")[0]:"请选择开始时间","end-placeholder":t.placeholder?t.placeholder.split("&&")[1]:"请选择结束时间",style:e.normalizeStyle(t.searchWidth?"width: "+t.searchWidth+"px;":"width: 92%"),size:t.size,class:e.normalizeClass([t.align&&t.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","style","size","class"])):e.createCommentVNode("",!0),t.search&&t.type=="datetimerange"?(e.openBlock(),e.createBlock(R,{key:8,modelValue:e.unref(a)[t.prop],"onUpdate:modelValue":g=>e.unref(a)[t.prop]=g,type:"datetimerange","range-separator":"-","start-placeholder":t.placeholder?t.placeholder.split("&&")[0]:"请选择开始日期时间","end-placeholder":t.placeholder?t.placeholder.split("&&")[1]:"请选择结束日期时间",style:e.normalizeStyle(t.searchWidth?"width: "+t.searchWidth+"px;":"width: 92%"),size:t.size,class:e.normalizeClass([t.align&&t.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","style","size","class"])):e.createCommentVNode("",!0),t.search&&t.type=="switch"?(e.openBlock(),e.createBlock(O,{key:9,modelValue:e.unref(a)[t.prop],"onUpdate:modelValue":g=>e.unref(a)[t.prop]=g,size:t.size,"active-text":t.openText,"inactive-text":t.closeText,class:e.normalizeClass([t.align&&t.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","size","active-text","inactive-text","class"])):e.createCommentVNode("",!0)]),_:2},[t.costom?{name:"default",fn:e.withCtx(g=>[e.createElementVNode("span",{innerHTML:t.costom?t.costom(g==null?void 0:g.row):""},null,8,Je)]),key:"0"}:void 0,t.component?{name:"default",fn:e.withCtx(g=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.component),{data:g==null?void 0:g.row},null,8,["data"]))]),key:"1"}:void 0]),1032,["prop","width","min-width","fixed","align","show-overflow-tooltip"]))],64))),256)),l.operate?(e.openBlock(),e.createBlock(_,{key:3,align:"center",width:l.operateWidth?l.operateWidth:"",fixed:l.operateIsFixed?"right":!1},{header:e.withCtx(()=>[e.createElementVNode("div",Qe,e.toDisplayString(l.operateLabel),1),e.renderSlot(l.$slots,"operate-front",{},void 0,!0),l.search?(e.openBlock(),e.createBlock(T,{key:0,type:"primary",size:l.operateSize,icon:e.unref($e),onClick:z},{default:e.withCtx(()=>f[3]||(f[3]=[e.createTextVNode("搜索")])),_:1,__:[3]},8,["size","icon"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"operate-middle",{},void 0,!0),l.clear?(e.openBlock(),e.createBlock(T,{key:1,type:"info",size:l.operateSize,icon:e.unref(ke),onClick:E},{default:e.withCtx(()=>f[4]||(f[4]=[e.createTextVNode("清空")])),_:1,__:[4]},8,["size","icon"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"operate",{},void 0,!0),l.filter?(e.openBlock(),e.createBlock(G,{key:2,ref_key:"popover",ref:x,width:"150",trigger:"click",placement:"bottom"},{reference:e.withCtx(()=>[e.createVNode(T,{type:"link",size:l.operateSize,icon:e.unref(oe),onClick:f[0]||(f[0]=t=>b.value=!b.value)},null,8,["size","icon"])]),default:e.withCtx(()=>[e.createElementVNode("h4",null,[e.createVNode(X,null,{default:e.withCtx(()=>[e.createVNode(e.unref(oe))]),_:1}),f[5]||(f[5]=e.createTextVNode(" 显示字段筛选 "))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,t=>(e.openBlock(),e.createElementBlock("p",null,[e.createVNode(J,{modelValue:t.check,"onUpdate:modelValue":g=>t.check=g,label:t.label,value:t.label,disabled:!t.filter,size:"small"},null,8,["modelValue","onUpdate:modelValue","label","value","disabled"])]))),256)),e.createVNode(T,{type:"primary",size:"small",style:{"margin-top":"10px","margin-left":"5px"},onClick:A},{default:e.withCtx(()=>f[6]||(f[6]=[e.createTextVNode("确认")])),_:1,__:[6]})]),_:1},512)):e.createCommentVNode("",!0)]),default:e.withCtx(t=>[e.renderSlot(l.$slots,"row-operate-front",{row:t==null?void 0:t.row},void 0,!0),l.edit?(e.openBlock(),e.createBlock(T,{key:0,link:"",type:"primary",size:l.rowButtonSize,icon:e.unref(Se),onClick:g=>L(t==null?void 0:t.row)},{default:e.withCtx(()=>f[7]||(f[7]=[e.createTextVNode("修改")])),_:2,__:[7]},1032,["size","icon","onClick"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"row-operate-middle",{row:t==null?void 0:t.row},void 0,!0),l.delete?(e.openBlock(),e.createBlock(Q,{key:1,"confirm-button-text":"否","cancel-button-text":"是","confirm-button-type":"text","cancel-button-type":"danger",icon:e.unref(Ve),width:"auto",onCancel:g=>W(t==null?void 0:t.row),title:l.deleteTitle?l.deleteTitle:"是否要删除当前行?"},{reference:e.withCtx(()=>[e.createVNode(T,{link:"",type:"danger",size:l.rowButtonSize,icon:e.unref(Be)},{default:e.withCtx(()=>f[8]||(f[8]=[e.createTextVNode("删除")])),_:1,__:[8]},8,["size","icon"])]),_:2},1032,["icon","onCancel","title"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"row-operate",{row:t==null?void 0:t.row},void 0,!0)]),_:3},8,["width","fixed"])):e.createCommentVNode("",!0)]),_:3},8,["data","class","max-height","size","stripe","border","highlight-current-row","header-cell-style"]),e.createElementVNode("div",Ze,[l.pagination?(e.openBlock(),e.createBlock(v,{key:0,"current-page":e.unref(a).pageIndex,"onUpdate:currentPage":f[1]||(f[1]=t=>e.unref(a).pageIndex=t),"page-size":e.unref(a).pageSize,"onUpdate:pageSize":f[2]||(f[2]=t=>e.unref(a).pageSize=t),small:l.small,"hide-on-Single-page":l.hideOnSinglePage,background:"",layout:"prev, pager, next, total, jumper, sizes","page-sizes":[5,10,20,50],total:l.total,class:"mt-4"},null,8,["current-page","page-size","small","hide-on-Single-page","total"])):e.createCommentVNode("",!0)])],64)}}}),mt="",se=I(ve,[["__scopeId","data-v-b417a1fd"]]),et={class:"dialog"},tt=["innerHTML"],lt={class:"form"},ce=!0,ot=e.defineComponent({__name:"index",props:e.mergeModels({title:{default:"弹出框"},width:{default:"500px"},fullscreen:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},buttonSize:{default:"default"},loading:{type:Boolean,default:!1},rules:{default:()=>{}},formSize:{default:"default"},lableWidth:{default:"120px"}},{form:{default:{}},formModifiers:{}}),emits:e.mergeModels(["close","submit"],["update:form"]),setup(s,{emit:h}){const m=h,d=e.useModel(s,"form"),w=e.ref(!1),a=e.ref();function C(){m("close")}function x(){a.value.validate(y=>{y&&m("submit")})}return(y,V)=>{const b=e.resolveComponent("el-icon"),B=e.resolveComponent("el-input"),S=e.resolveComponent("el-input-number"),N=e.resolveComponent("el-option"),M=e.resolveComponent("el-select"),E=e.resolveComponent("el-date-picker"),z=e.resolveComponent("el-time-picker"),L=e.resolveComponent("el-switch"),W=e.resolveComponent("el-form-item"),D=e.resolveComponent("el-form"),H=e.resolveComponent("el-button"),A=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",et,[e.createVNode(A,{modelValue:ce,"onUpdate:modelValue":V[1]||(V[1]=i=>ce=i),width:y.width,fullscreen:w.value,"close-on-click-modal":!1,"close-on-press-escape":!1,draggable:y.draggable,onClose:C,overflow:""},e.createSlots({header:e.withCtx(()=>[e.createElementVNode("span",{innerHTML:y.title},null,8,tt),y.fullscreen?(e.openBlock(),e.createBlock(b,{key:0,class:"fullscreen",onClick:V[0]||(V[0]=i=>w.value=!w.value)},{default:e.withCtx(()=>[w.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(Pe),{key:0})),w.value?(e.openBlock(),e.createBlock(e.unref(Le),{key:1})):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.renderSlot(y.$slots,"header",{},void 0,!0),e.createElementVNode("div",lt,[e.createVNode(D,{model:d.value,rules:y.rules,ref_key:"formRef",ref:a,inline:!0,"label-width":y.lableWidth,size:y.formSize},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(i,l,f)=>(e.openBlock(),e.createBlock(W,{key:f,label:i.label,prop:l,style:e.normalizeStyle("width:"+(i.width?i.width:"90%"))},{default:e.withCtx(()=>[!i.type||i.type=="text"?(e.openBlock(),e.createBlock(B,{key:0,modelValue:d.value[l].default,"onUpdate:modelValue":_=>d.value[l].default=_,clearable:"",disabled:i.disabled,readonly:i.readonly,placeholder:i.placeholder?i.placeholder:"请输入"+i.label,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","disabled","readonly","placeholder"])):e.createCommentVNode("",!0),i.type=="number"?(e.openBlock(),e.createBlock(S,{key:1,modelValue:d.value[l].default,"onUpdate:modelValue":_=>d.value[l].default=_,clearable:"",disabled:i.disabled,readonly:i.readonly,style:{width:"100%"},placeholder:i.placeholder?i.placeholder:"请输入"+i.label,max:i.max!=null?i.max:1/0,min:i.min!=null?i.min:-1/0,step:i.step!=null?i.step:1},null,8,["modelValue","onUpdate:modelValue","disabled","readonly","placeholder","max","min","step"])):e.createCommentVNode("",!0),i.type=="select"?(e.openBlock(),e.createBlock(M,{key:2,modelValue:d.value[l].default,"onUpdate:modelValue":_=>d.value[l].default=_,clearable:"",filterable:"",disabled:i.disabled,multiple:i.multiple,"collapse-tags":i.omit,placeholder:i.placeholder?i.placeholder:"请选择"+i.label,style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.options,_=>(e.openBlock(),e.createBlock(N,{label:_.label?_.label:_.value,value:_.value,disabled:_.disabled},null,8,["label","value","disabled"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","multiple","collapse-tags","placeholder"])):e.createCommentVNode("",!0),i.type=="date"?(e.openBlock(),e.createBlock(E,{key:3,modelValue:d.value[l].default,"onUpdate:modelValue":_=>d.value[l].default=_,type:"date",placeholder:i.placeholder?i.placeholder:"请选择日期",disabled:i.disabled,readonly:i.readonly,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled","readonly"])):e.createCommentVNode("",!0),i.type=="time"?(e.openBlock(),e.createBlock(z,{key:4,modelValue:d.value[l].default,"onUpdate:modelValue":_=>d.value[l].default=_,"arrow-control":"",placeholder:i.placeholder?i.placeholder:"请选择时间",disabled:i.disabled,readonly:i.readonly,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled","readonly"])):e.createCommentVNode("",!0),i.type=="datetime"?(e.openBlock(),e.createBlock(E,{key:5,modelValue:d.value[l].default,"onUpdate:modelValue":_=>d.value[l].default=_,type:"datetime",placeholder:i.placeholder?i.placeholder:"请选择日期时间",disabled:i.disabled,readonly:i.readonly,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled","readonly"])):e.createCommentVNode("",!0),i.type=="daterange"?(e.openBlock(),e.createBlock(E,{key:6,modelValue:d.value[l].default,"onUpdate:modelValue":_=>d.value[l].default=_,type:"daterange","range-separator":"-","start-placeholder":i.placeholder?i.placeholder.split("&&")[0]:"请选择开始日期","end-placeholder":i.placeholder?i.placeholder.split("&&")[1]:"请选择结束日期",disabled:i.disabled,readonly:i.readonly,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","disabled","readonly"])):e.createCommentVNode("",!0),i.type=="timerange"?(e.openBlock(),e.createBlock(z,{key:7,modelValue:d.value[l].default,"onUpdate:modelValue":_=>d.value[l].default=_,"is-range":"","arrow-control":"","range-separator":"-","start-placeholder":i.placeholder?i.placeholder.split("&&")[0]:"请选择开始时间","end-placeholder":i.placeholder?i.placeholder.split("&&")[1]:"请选择结束时间",disabled:i.disabled,readonly:i.readonly,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","disabled","readonly"])):e.createCommentVNode("",!0),i.type=="datetimerange"?(e.openBlock(),e.createBlock(E,{key:8,modelValue:d.value[l].default,"onUpdate:modelValue":_=>d.value[l].default=_,type:"datetimerange","range-separator":"-","start-placeholder":i.placeholder?i.placeholder.split("&&")[0]:"请选择开始日期时间","end-placeholder":i.placeholder?i.placeholder.split("&&")[1]:"请选择结束日期时间",disabled:i.disabled,readonly:i.readonly,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","disabled","readonly"])):e.createCommentVNode("",!0),i.type=="switch"?(e.openBlock(),e.createBlock(L,{key:9,modelValue:d.value[l].default,"onUpdate:modelValue":_=>d.value[l].default=_,"active-text":i.openText,"inactive-text":i.closeText,disabled:i.disabled,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","active-text","inactive-text","disabled"])):e.createCommentVNode("",!0)]),_:2},1032,["label","prop","style"]))),128))]),_:1},8,["model","rules","label-width","size"])]),e.renderSlot(y.$slots,"footer",{},void 0,!0)]),_:2},[y.footer?{name:"footer",fn:e.withCtx(()=>[e.createVNode(H,{type:"primary",size:y.buttonSize,icon:e.unref(ge),class:"btn",loading:y.loading,onClick:x},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.loading?"提交中":"提交"),1)]),_:1},8,["size","icon","loading"]),e.createVNode(H,{type:"info",size:y.buttonSize,icon:e.unref(le),class:"btn",onClick:C},{default:e.withCtx(()=>V[2]||(V[2]=[e.createTextVNode("取消")])),_:1,__:[2]},8,["size","icon"])]),key:"0"}:void 0]),1032,["width","fullscreen","draggable"])])}}}),ht="",pe=I(ot,[["__scopeId","data-v-98c59677"]]);function at(s,h,m){return h.default==null||h.default.toString()==""?m(new Error(h.label+"不能为空")):m()}const nt={install:s=>{s.component("SplitPanes",ee),s.component("Pane",te),s.component("UpLoadFile",re),s.component("Layout",de),s.component("TableForm",se),s.component("UpLoadFiles",ie),s.component("DvDialog",pe)}};P.DvDialog=pe,P.FormValidate=at,P.Layout=de,P.Pane=te,P.SplitPanes=ee,P.TableForm=se,P.UpLoadFile=re,P.UpLoadFiles=ie,P.default=nt,Object.defineProperties(P,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(P,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(P=typeof globalThis<"u"?globalThis:P||self,e(P["dld-vue-ui"]={},P.Vue))})(this,function(P,e){"use strict";const fe={__name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],setup(s,{emit:h}){const m=h,d=s,w=e.useSlots(),a=e.ref([]),C=e.computed(()=>a.value.reduce((o,r)=>(o[~~r.id]=r)&&o,{})),x=e.computed(()=>a.value.length),y=e.ref(null),V=e.ref(!1),b=e.ref({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),B=e.ref({splitter:null,timeoutId:null}),S=e.computed(()=>({[`splitpanes splitpanes--${d.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":b.value.dragging})),N=()=>{document.addEventListener("mousemove",z,{passive:!1}),document.addEventListener("mouseup",L),"ontouchstart"in window&&(document.addEventListener("touchmove",z,{passive:!1}),document.addEventListener("touchend",L))},M=()=>{document.removeEventListener("mousemove",z,{passive:!1}),document.removeEventListener("mouseup",L),"ontouchstart"in window&&(document.removeEventListener("touchmove",z,{passive:!1}),document.removeEventListener("touchend",L))},E=(o,r)=>{const c=o.target.closest(".splitpanes__splitter");if(c){const{left:n,top:p}=c.getBoundingClientRect(),{clientX:u,clientY:k}="ontouchstart"in window&&o.touches?o.touches[0]:o;b.value.cursorOffset=d.horizontal?k-p:u-n}N(),b.value.mouseDown=!0,b.value.activeSplitter=r},z=o=>{b.value.mouseDown&&(o.preventDefault(),b.value.dragging=!0,requestAnimationFrame(()=>{l(A(o)),m("resize",a.value.map(r=>({min:r.min,max:r.max,size:r.size})))}))},L=()=>{b.value.dragging&&m("resized",a.value.map(o=>({min:o.min,max:o.max,size:o.size}))),b.value.mouseDown=!1,setTimeout(()=>{b.value.dragging=!1,M()},100)},W=(o,r)=>{"ontouchstart"in window&&(o.preventDefault(),d.dblClickSplitter&&(B.value.splitter===r?(clearTimeout(B.value.timeoutId),B.value.timeoutId=null,D(o,r),B.value.splitter=null):(B.value.splitter=r,B.value.timeoutId=setTimeout(()=>B.value.splitter=null,500)))),b.value.dragging||m("splitter-click",a.value[r])},D=(o,r)=>{let c=0;a.value=a.value.map((n,p)=>(n.size=p===r?n.max:n.min,p!==r&&(c+=n.min),n)),a.value[r].size-=c,m("pane-maximize",a.value[r]),m("resized",a.value.map(n=>({min:n.min,max:n.max,size:n.size})))},H=(o,r)=>{m("pane-click",C.value[r])},A=o=>{const r=y.value.getBoundingClientRect(),{clientX:c,clientY:n}="ontouchstart"in window&&o.touches?o.touches[0]:o;return{x:c-(d.horizontal?0:b.value.cursorOffset)-r.left,y:n-(d.horizontal?b.value.cursorOffset:0)-r.top}},i=o=>{o=o[d.horizontal?"y":"x"];const r=y.value[d.horizontal?"clientHeight":"clientWidth"];return d.rtl&&!d.horizontal&&(o=r-o),o*100/r},l=o=>{const r=b.value.activeSplitter;let c={prevPanesSize:_(r),nextPanesSize:$(r),prevReachedMinPanes:0,nextReachedMinPanes:0};const n=0+(d.pushOtherPanes?0:c.prevPanesSize),p=100-(d.pushOtherPanes?0:c.nextPanesSize),u=Math.max(Math.min(i(o),p),n);let k=[r,r+1],U=a.value[k[0]]||null,F=a.value[k[1]]||null;const me=U.max<100&&u>=U.max+c.prevPanesSize,rt=F.max<100&&u<=100-(F.max+$(r+1));if(me||rt){me?(U.size=U.max,F.size=Math.max(100-U.max-c.prevPanesSize-c.nextPanesSize,0)):(U.size=Math.max(100-F.max-c.prevPanesSize-$(r+1),0),F.size=F.max);return}if(d.pushOtherPanes){const he=f(c,u);if(!he)return;({sums:c,panesToResize:k}=he),U=a.value[k[0]]||null,F=a.value[k[1]]||null}U!==null&&(U.size=Math.min(Math.max(u-c.prevPanesSize-c.prevReachedMinPanes,U.min),U.max)),F!==null&&(F.size=Math.min(Math.max(100-u-c.nextPanesSize-c.nextReachedMinPanes,F.min),F.max))},f=(o,r)=>{const c=b.value.activeSplitter,n=[c,c+1];return r<o.prevPanesSize+a.value[n[0]].min&&(n[0]=Y(c).index,o.prevReachedMinPanes=0,n[0]<c&&a.value.forEach((p,u)=>{u>n[0]&&u<=c&&(p.size=p.min,o.prevReachedMinPanes+=p.min)}),o.prevPanesSize=_(n[0]),n[0]===void 0)?(o.prevReachedMinPanes=0,a.value[0].size=a.value[0].min,a.value.forEach((p,u)=>{u>0&&u<=c&&(p.size=p.min,o.prevReachedMinPanes+=p.min)}),a.value[n[1]].size=100-o.prevReachedMinPanes-a.value[0].min-o.prevPanesSize-o.nextPanesSize,null):r>100-o.nextPanesSize-a.value[n[1]].min&&(n[1]=K(c).index,o.nextReachedMinPanes=0,n[1]>c+1&&a.value.forEach((p,u)=>{u>c&&u<n[1]&&(p.size=p.min,o.nextReachedMinPanes+=p.min)}),o.nextPanesSize=$(n[1]-1),n[1]===void 0)?(o.nextReachedMinPanes=0,a.value.forEach((p,u)=>{u<x.value-1&&u>=c+1&&(p.size=p.min,o.nextReachedMinPanes+=p.min)}),a.value[n[0]].size=100-o.prevPanesSize-$(n[0]-1),null):{sums:o,panesToResize:n}},_=o=>a.value.reduce((r,c,n)=>r+(n<o?c.size:0),0),$=o=>a.value.reduce((r,c,n)=>r+(n>o+1?c.size:0),0),Y=o=>[...a.value].reverse().find(r=>r.index<o&&r.size>r.min)||{},K=o=>a.value.find(r=>r.index>o+1&&r.size>r.min)||{},j=()=>{var o;Array.from(((o=y.value)==null?void 0:o.children)||[]).forEach(r=>{const c=r.classList.contains("splitpanes__pane"),n=r.classList.contains("splitpanes__splitter");!c&&!n&&(r.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},R=(o,r,c=!1)=>{const n=o-1,p=document.createElement("div");p.classList.add("splitpanes__splitter"),c||(p.onmousedown=u=>E(u,n),typeof window<"u"&&"ontouchstart"in window&&(p.ontouchstart=u=>E(u,n)),p.onclick=u=>W(u,n+1)),d.dblClickSplitter&&(p.ondblclick=u=>D(u,n+1)),r.parentNode.insertBefore(p,r)},q=o=>{o.onmousedown=void 0,o.onclick=void 0,o.ondblclick=void 0,o.remove()},O=()=>{var o;const r=Array.from(((o=y.value)==null?void 0:o.children)||[]);r.forEach(n=>{n.className.includes("splitpanes__splitter")&&q(n)});let c=0;r.forEach(n=>{n.className.includes("splitpanes__pane")&&(!c&&d.firstSplitter?R(c,n,!0):c&&R(c,n),c++)})},T=({uid:o,...r})=>{const c=C.value[o];Object.entries(r).forEach(([n,p])=>c[n]=p)},X=o=>{var r;let c=-1;Array.from(((r=y.value)==null?void 0:r.children)||[]).some(n=>(n.className.includes("splitpanes__pane")&&c++,n.isSameNode(o.el))),a.value.splice(c,0,{...o,index:c}),a.value.forEach((n,p)=>n.index=p),V.value&&e.nextTick(()=>{O(),G({addedPane:a.value[c]}),m("pane-add",{index:c,panes:a.value.map(n=>({min:n.min,max:n.max,size:n.size}))})})},J=o=>{const r=a.value.findIndex(n=>n.id===o),c=a.value.splice(r,1)[0];a.value.forEach((n,p)=>n.index=p),e.nextTick(()=>{O(),G({removedPane:{...c}}),m("pane-remove",{removed:c,panes:a.value.map(n=>({min:n.min,max:n.max,size:n.size}))})})},G=(o={})=>{!o.addedPane&&!o.removedPane?Z():a.value.some(r=>r.givenSize!==null||r.min||r.max<100)?v(o):Q(),V.value&&m("resized",a.value.map(r=>({min:r.min,max:r.max,size:r.size})))},Q=()=>{const o=100/x.value;let r=0;const c=[],n=[];a.value.forEach(p=>{p.size=Math.max(Math.min(o,p.max),p.min),r-=p.size,p.size>=p.max&&c.push(p.id),p.size<=p.min&&n.push(p.id)}),r>.1&&t(r,c,n)},Z=()=>{let o=100;const r=[],c=[];let n=0;a.value.forEach(u=>{o-=u.size,u.givenSize!==null&&n++,u.size>=u.max&&r.push(u.id),u.size<=u.min&&c.push(u.id)});let p=100;o>.1&&(a.value.forEach(u=>{u.givenSize===null&&(u.size=Math.max(Math.min(o/(x.value-n),u.max),u.min)),p-=u.size}),p>.1&&t(p,r,c))},v=({addedPane:o,removedPane:r}={})=>{let c=100/x.value,n=0;const p=[],u=[];((o==null?void 0:o.givenSize)??null)!==null&&(c=(100-o.givenSize)/(x.value-1).value),a.value.forEach(k=>{n-=k.size,k.size>=k.max&&p.push(k.id),k.size<=k.min&&u.push(k.id)}),!(Math.abs(n)<.1)&&(a.value.forEach(k=>{(o==null?void 0:o.givenSize)!==null&&(o==null?void 0:o.id)===k.id||(k.size=Math.max(Math.min(c,k.max),k.min)),n-=k.size,k.size>=k.max&&p.push(k.id),k.size<=k.min&&u.push(k.id)}),n>.1&&t(n,p,u))},t=(o,r,c)=>{let n;o>0?n=o/(x.value-r.length):n=o/(x.value-c.length),a.value.forEach((p,u)=>{if(o>0&&!r.includes(p.id)){const k=Math.max(Math.min(p.size+n,p.max),p.min),U=k-p.size;o-=U,p.size=k}else if(!c.includes(p.id)){const k=Math.max(Math.min(p.size+n,p.max),p.min),U=k-p.size;o-=U,p.size=k}}),Math.abs(o)>.1&&e.nextTick(()=>{V.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})};e.watch(()=>d.firstSplitter,()=>O()),e.watch(()=>d.dblClickSplitter,o=>{[...y.value.querySelectorAll(".splitpanes__splitter")].forEach((r,c)=>{r.ondblclick=o?n=>D(n,c):void 0})}),e.onBeforeUnmount(()=>V.value=!1),e.onMounted(()=>{j(),O(),G(),m("ready"),V.value=!0});const g=()=>{var o;return e.h("div",{ref:y,class:S.value},(o=w.default)==null?void 0:o.call(w))};return e.provide("panes",a),e.provide("indexedPanes",C),e.provide("horizontal",e.computed(()=>d.horizontal)),e.provide("requestUpdate",T),e.provide("onPaneAdd",X),e.provide("onPaneRemove",J),e.provide("onPaneClick",H),(o,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g)))}},ue={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(s){var h;const m=s,d=e.inject("requestUpdate"),w=e.inject("onPaneAdd"),a=e.inject("horizontal"),C=e.inject("onPaneRemove"),x=e.inject("onPaneClick"),y=(h=e.getCurrentInstance())==null?void 0:h.uid,V=e.inject("indexedPanes"),b=e.computed(()=>V.value[y]),B=e.ref(null),S=e.computed(()=>{const z=isNaN(m.size)||m.size===void 0?0:parseFloat(m.size);return Math.max(Math.min(z,M.value),N.value)}),N=e.computed(()=>{const z=parseFloat(m.minSize);return isNaN(z)?0:z}),M=e.computed(()=>{const z=parseFloat(m.maxSize);return isNaN(z)?100:z}),E=e.computed(()=>{var z;return`${a.value?"height":"width"}: ${(z=b.value)==null?void 0:z.size}%`});return e.onMounted(()=>{w({id:y,el:B.value,min:N.value,max:M.value,givenSize:m.size===void 0?null:S.value,size:S.value})}),e.watch(()=>S.value,z=>d({uid:y,size:z})),e.watch(()=>N.value,z=>d({uid:y,min:z})),e.watch(()=>M.value,z=>d({uid:y,max:z})),e.onBeforeUnmount(()=>C(y)),(z,L)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"paneEl",ref:B,class:"splitpanes__pane",onClick:L[0]||(L[0]=W=>e.unref(x)(W,z._.uid)),style:e.normalizeStyle(E.value)},[e.renderSlot(z.$slots,"default")],4))}},it="",_e=e.defineComponent({__name:"index",props:{styles:{default:()=>({width:"100%",height:"100%"})},horizontal:{type:Boolean,default:!1}},setup(s){return(h,m)=>(e.openBlock(),e.createBlock(e.unref(fe),{horizontal:h.horizontal,style:e.normalizeStyle(h.styles),class:"splitpanes"},{default:e.withCtx(()=>[e.renderSlot(h.$slots,"default",{},void 0,!0)]),_:3},8,["horizontal","style"]))}}),dt="",I=(s,h)=>{const m=s.__vccOpts||s;for(const[d,w]of h)m[d]=w;return m},ee=I(_e,[["__scopeId","data-v-15862e4c"]]),te=e.defineComponent({__name:"pane",props:{styles:{default:()=>({background:"#ececec"})}},setup(s){return(h,m)=>(e.openBlock(),e.createBlock(e.unref(ue),{style:e.normalizeStyle(h.styles)},{default:e.withCtx(()=>[e.renderSlot(h.$slots,"default")]),_:3},8,["style"]))}});/*! Element Plus Icons Vue v2.3.1 */var ye=e.defineComponent({name:"Check",__name:"check",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),ge=ye,ze=e.defineComponent({name:"CircleClose",__name:"circle-close",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),e.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),ke=ze,we=e.defineComponent({name:"Close",__name:"close",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),le=we,Ce=e.defineComponent({name:"DeleteFilled",__name:"delete-filled",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),Ve=Ce,be=e.defineComponent({name:"Delete",__name:"delete",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),Be=be,xe=e.defineComponent({name:"Edit",__name:"edit",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),e.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),Se=xe,Ne=e.defineComponent({name:"Filter",__name:"filter",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),oe=Ne,Ee=e.defineComponent({name:"FolderOpened",__name:"folder-opened",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),ae=Ee,Me=e.defineComponent({name:"FullScreen",__name:"full-screen",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),Pe=Me,Ue=e.defineComponent({name:"Minus",__name:"minus",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),Le=Ue,Fe=e.defineComponent({name:"Search",__name:"search",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),$e=Fe,Te=e.defineComponent({name:"Upload",__name:"upload",setup(s){return(h,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),ne=Te,We=function(){function s(h){if(!h)throw new TypeError("Invalid argument; `value` has no value.");this.value=s.EMPTY,h&&s.isGuid(h)&&(this.value=h)}return s.isGuid=function(h){var m=h.toString();return h&&(h instanceof s||s.validator.test(m))},s.create=function(){return new s([s.gen(2),s.gen(1),s.gen(1),s.gen(1),s.gen(3)].join("-"))},s.createEmpty=function(){return new s("emptyguid")},s.parse=function(h){return new s(h)},s.raw=function(){return[s.gen(2),s.gen(1),s.gen(1),s.gen(1),s.gen(3)].join("-")},s.gen=function(h){for(var m="",d=0;d<h;d++)m+=((1+Math.random())*65536|0).toString(16).substring(1);return m},s.prototype.equals=function(h){return s.isGuid(h)&&this.value===h.toString()},s.prototype.isEmpty=function(){return this.value===s.EMPTY},s.prototype.toString=function(){return this.value},s.prototype.toJSON=function(){return{value:this.value}},s.validator=new RegExp("^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$","i"),s.EMPTY="00000000-0000-0000-0000-000000000000",s}(),De=We;const Re={style:{}},Ie=["id","accept"],He={class:"filename"},Oe=e.defineComponent({__name:"index",props:{size:{default:"default"},name:{default:"上传文件"},icon:{default:ne},type:{default:"success"},accept:{default:"*"}},emits:["upload"],setup(s,{expose:h,emit:m}){const d=m;let w=De.create().toString(),a,C=e.ref("");function x(){a.click()}function y(){C.value=a.value}function V(){a.files!==null&&d("upload",a.files[0])}function b(){a.value="",C.value=""}return e.onMounted(()=>{a=document.getElementById(w)}),h({Clear:b}),(B,S)=>{const N=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Re,[e.createVNode(N,{type:B.type,icon:e.unref(ae),size:B.size,class:"btn",onClick:x},{default:e.withCtx(()=>S[0]||(S[0]=[e.createTextVNode("选择文件")])),_:1,__:[0]},8,["type","icon","size"]),e.withDirectives(e.createElementVNode("input",{type:"file",id:e.unref(w),onChange:y,accept:B.accept},null,40,Ie),[[e.vShow,!1]]),e.createElementVNode("span",He,e.toDisplayString(e.unref(C)),1),e.createVNode(N,{type:B.type,icon:B.icon,size:B.size,disabled:e.unref(C)==null||e.unref(C)=="",class:"btn",title:e.unref(C)==null||e.unref(C)==""?"请选择文件":"",onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.name),1)]),_:1},8,["type","icon","size","disabled","title"])])}}}),st="",re=I(Oe,[["__scopeId","data-v-d2ed1fe1"]]),Ae=["accept"],Ge={class:"filename"},qe={class:"content"},Ye=e.defineComponent({__name:"index",props:{size:{default:"default"},accept:{default:"*"}},emits:["upload","clear"],setup(s,{expose:h,emit:m}){const d=s,w=m,a=e.ref(),C=e.ref([]);function x(){var S;(S=a.value)==null||S.click()}function y(){var S,N,M;if(C.value=[],(S=a.value)!=null&&S.files)for(let E=0;E<((M=(N=a.value)==null?void 0:N.files)==null?void 0:M.length);E++)C.value[E]=a.value.files[E];else C.value=[]}function V(S){C.value.splice(S,1)}function b(){w("upload",C.value)}function B(){C.value=[]}return h({Clear:B}),(S,N)=>{const M=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("input",{type:"file",ref_key:"files",ref:a,multiple:"",style:{display:"none"},onChange:y,accept:d.accept},null,40,Ae),e.createVNode(M,{type:"success",size:d.size,icon:e.unref(ae),onClick:x},{default:e.withCtx(()=>N[0]||(N[0]=[e.createTextVNode("选择文件")])),_:1,__:[0]},8,["size","icon"]),e.createVNode(M,{type:"success",size:d.size,icon:e.unref(ne),onClick:b,disabled:C.value.length==0},{default:e.withCtx(()=>N[1]||(N[1]=[e.createTextVNode("上传文件")])),_:1,__:[1]},8,["size","icon","disabled"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(E,z)=>(e.openBlock(),e.createElementBlock("p",Ge,[e.createElementVNode("span",qe,e.toDisplayString(E.name),1),e.createVNode(M,{size:"small",icon:e.unref(le),class:"operation",link:"",onClick:L=>V(z)},null,8,["icon","onClick"])]))),256))])}}}),ct="",ie=I(Ye,[["__scopeId","data-v-fd9596c6"]]),Ke=e.defineComponent({__name:"index",props:{asideWidth:{default:220},headerMaxHeight:{default:60},horizontal:{type:Boolean,default:!1}},setup(s){const h=e.useSlots();return(m,d)=>{const w=e.resolveComponent("el-aside"),a=e.resolveComponent("el-header"),C=e.resolveComponent("el-main"),x=e.resolveComponent("el-container");return e.openBlock(),e.createBlock(x,{class:"container"},{default:e.withCtx(()=>[e.unref(h).aside&&!m.horizontal?(e.openBlock(),e.createBlock(w,{key:0,class:"aside",style:e.normalizeStyle("width: "+m.asideWidth+"px;")},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"aside",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("",!0),e.unref(h).header&&m.horizontal?(e.openBlock(),e.createBlock(a,{key:1,class:"inside_header",style:e.normalizeStyle("height: "+m.headerMaxHeight+"px;")},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"header",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("",!0),e.createVNode(C,{class:"main"},{default:e.withCtx(()=>[e.createVNode(x,{class:"inside_container"},{default:e.withCtx(()=>[e.unref(h).header&&!m.horizontal?(e.openBlock(),e.createBlock(a,{key:0,class:"inside_header",style:e.normalizeStyle("height: "+m.headerMaxHeight+"px;")},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"header",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("",!0),e.unref(h).aside&&m.horizontal?(e.openBlock(),e.createBlock(w,{key:1,class:"aside",style:e.normalizeStyle("width: "+m.asideWidth+"px;")},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"aside",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("",!0),e.createVNode(C,{class:"inside_main"},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]),_:3})]),_:3})}}}),pt="",de=I(Ke,[["__scopeId","data-v-79d244c7"]]),je={key:0,class:"header"},Xe={class:"header_title"},Je=["innerHTML"],Qe={class:"header_title"},Ze={class:"pagination"},ve=e.defineComponent({__name:"index",props:{maxHeight:{default:550},size:{default:"default"},tableData:{default:()=>[]},headStyle:{default:{}},tableColumn:{default:()=>[]},stripe:{type:Boolean,default:!0},border:{type:Boolean,default:!1},highLight:{type:Boolean,default:!1},type:{},typeLabel:{default:"序号"},typeWidth:{default:60},typeIsFixed:{type:Boolean},operate:{type:Boolean},operateSize:{default:"default"},rowButtonSize:{default:"default"},operateLabel:{default:""},operateWidth:{default:220},operateIsFixed:{type:Boolean},search:{type:Boolean},clear:{type:Boolean},edit:{type:Boolean},delete:{type:Boolean},deleteTitle:{},pagination:{type:Boolean,default:!1},small:{type:Boolean,default:!1},total:{default:0},hideOnSinglePage:{type:Boolean,default:!1},defaultSelect:{},defaultSize:{default:5},filter:{type:Boolean}},emits:["row-click","row-dblclick","selection-change","search","clear","delete","edit","page-index","page-size","get-ref","filter"],setup(s,{expose:h,emit:m}){const d=s,w=m;let a=e.reactive({pageIndex:1,pageSize:5}),C=e.ref(),x=e.ref();const y=e.ref([]),V=e.ref([]),b=e.ref(!1),B=e.useSlots(),S=l=>{w("row-click",l)},N=l=>{w("row-click",l)},M=l=>{w("selection-change",l)},E=()=>{if(d.tableColumn.length>0)for(let l=0;l<d.tableColumn.length;l++){let f=d.tableColumn[l];a[f.prop]=null}w("clear")},z=()=>{w("search",a)},L=l=>{w("edit",l)},W=l=>{w("delete",l)},D=l=>{for(let f=0;f<l.length;f++)a[l[f].prop]=l[f].label},H=()=>a,A=()=>{y.value.forEach(l=>{var f=V.value.find(_=>_.label==l.label);f&&f.filter&&(l.hidden=!f.check,l.hidden&&(a[l.prop]=null))}),b.value=!1,x.value.hide(),w("filter",()=>V.value)},i=l=>{y.value=l,d.filter&&(V.value=[],y.value.forEach(f=>{f.filter?f.check?V.value.push({label:f.label,check:!0,prop:f.prop,filter:f.filter}):(V.value.push({label:f.label,check:!1,prop:f.prop,filter:f.filter}),f.hidden=!0):V.value.push({label:f.label,check:!0,prop:f.prop,filter:f.filter})})),y.value.forEach(f=>{var _=V.value.find($=>$.label==f.label);_&&_.filter&&(f.hidden=!_.check,f.hidden&&(a[f.prop]=null)),_!=null&&_.filter||(f.hidden=!1)})};return e.watch(()=>a.pageIndex,(l,f)=>{w("page-index",Number(l),Number(f))}),e.watch(()=>a.pageSize,(l,f)=>{w("page-size",Number(l),Number(f))}),h({Assignment:D,GetParameters:H,SetFilter:i}),e.onMounted(()=>{if(d.tableColumn.length>0)for(let l=0;l<d.tableColumn.length;l++){let f=d.tableColumn[l];a[f.prop]=null}d.tableData.forEach(l=>{d.defaultSelect&&d.type=="selection"&&d.defaultSelect(l)&&C.value.toggleRowSelection(l,void 0,!1)}),a.pageSize=d.defaultSize,d.filter||(y.value=d.tableColumn)}),(l,f)=>{const _=e.resolveComponent("el-table-column"),$=e.resolveComponent("el-input"),Y=e.resolveComponent("el-input-number"),K=e.resolveComponent("el-option"),j=e.resolveComponent("el-select"),R=e.resolveComponent("el-date-picker"),q=e.resolveComponent("el-time-picker"),O=e.resolveComponent("el-switch"),T=e.resolveComponent("el-button"),X=e.resolveComponent("el-icon"),J=e.resolveComponent("el-checkbox"),G=e.resolveComponent("el-popover"),Q=e.resolveComponent("el-popconfirm"),Z=e.resolveComponent("el-table"),v=e.resolveComponent("el-pagination");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(B).header?(e.openBlock(),e.createElementBlock("div",je,[e.renderSlot(l.$slots,"header",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Z,{data:l.tableData,class:e.normalizeClass([l.size&&l.size=="small"?"mini-table":"table"]),"max-height":l.maxHeight,size:l.size,stripe:l.stripe,border:l.border,"highlight-current-row":l.highLight,onRowClick:S,onRowDblclick:N,onSelectionChange:M,ref_key:"tableRef",ref:C,"header-cell-style":l.headStyle},{default:e.withCtx(()=>[l.type&&l.type=="index"?(e.openBlock(),e.createBlock(_,{key:0,align:"center",type:"index",width:l.typeWidth+"px",fixed:l.typeIsFixed?"left":!1,label:l.typeLabel},null,8,["width","fixed","label"])):e.createCommentVNode("",!0),l.type=="selection"?(e.openBlock(),e.createBlock(_,{key:1,align:"center",type:"selection",width:l.typeWidth+"px",fixed:l.typeIsFixed?"left":!1},null,8,["width","fixed"])):e.createCommentVNode("",!0),l.type=="expand"?(e.openBlock(),e.createBlock(_,{key:2,align:"center",type:"expand",width:l.typeWidth+"px",fixed:l.typeIsFixed?"left":!1,label:l.typeLabel},{default:e.withCtx(t=>[e.renderSlot(l.$slots,"expand",{row:t==null?void 0:t.row},void 0,!0)]),_:3},8,["width","fixed","label"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(_,{key:0,prop:t.costom?!1:t.prop,width:t.width?t.width:"","min-width":t.minWidth?t.minWidth:"",fixed:t.fixed?t.fixed:!1,align:t.align?t.align:"left","show-overflow-tooltip":!!t.overflow},e.createSlots({header:e.withCtx(()=>[e.createElementVNode("div",Xe,e.toDisplayString(t.label),1),t.search&&(!t.type||t.type=="text")?(e.openBlock(),e.createBlock($,{key:0,modelValue:e.unref(a)[t.prop],"onUpdate:modelValue":g=>e.unref(a)[t.prop]=g,size:t.size,clearable:"",style:e.normalizeStyle(t.searchWidth?"width: "+t.searchWidth+"px;":"width: 92%"),disabled:t.disabled,placeholder:t.placeholder?t.placeholder:"请输入"+t.label,class:e.normalizeClass([t.align&&t.align=="center"?"center":""]),onKeyup:e.withKeys(z,["enter","native"])},null,8,["modelValue","onUpdate:modelValue","size","style","disabled","placeholder","class"])):e.createCommentVNode("",!0),t.search&&t.type=="number"?(e.openBlock(),e.createBlock(Y,{key:1,modelValue:e.unref(a)[t.prop],"onUpdate:modelValue":g=>e.unref(a)[t.prop]=g,size:t.size,clearable:"",style:e.normalizeStyle(t.searchWidth?"width: "+t.searchWidth+"px;":"width: 92%"),disabled:t.disabled,placeholder:t.placeholder?t.placeholder:"请输入"+t.label,class:e.normalizeClass([t.align&&t.align=="center"?"center":""]),max:t.max!=null?t.max:1/0,min:t.min!=null?t.min:-1/0,step:t.step!=null?t.step:1,onKeyup:e.withKeys(z,["enter","native"])},null,8,["modelValue","onUpdate:modelValue","size","style","disabled","placeholder","class","max","min","step"])):e.createCommentVNode("",!0),t.search&&t.type=="select"?(e.openBlock(),e.createBlock(j,{key:2,modelValue:e.unref(a)[t.prop],"onUpdate:modelValue":g=>e.unref(a)[t.prop]=g,size:t.size,clearable:"",filterable:"",style:e.normalizeStyle(t.searchWidth?"width: "+t.searchWidth+"px;":"width: 92%"),disabled:t.disabled,multiple:t.multiple,"collapse-tags":t.omit,placeholder:t.placeholder?t.placeholder:"请选择"+t.label,class:e.normalizeClass([t.align&&t.align=="center"?"center":""])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,g=>(e.openBlock(),e.createBlock(K,{label:g.label?g.label:g.value,value:g.value,disabled:g.disabled},null,8,["label","value","disabled"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue","size","style","disabled","multiple","collapse-tags","placeholder","class"])):e.createCommentVNode("",!0),t.search&&t.type=="date"?(e.openBlock(),e.createBlock(R,{key:3,modelValue:e.unref(a)[t.prop],"onUpdate:modelValue":g=>e.unref(a)[t.prop]=g,type:"date",style:e.normalizeStyle(t.searchWidth?"width: "+t.searchWidth+"px;":""),placeholder:t.placeholder?t.placeholder:"请选择日期",size:t.size,class:e.normalizeClass([t.align&&t.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","style","placeholder","size","class"])):e.createCommentVNode("",!0),t.search&&t.type=="time"?(e.openBlock(),e.createBlock(q,{key:4,modelValue:e.unref(a)[t.prop],"onUpdate:modelValue":g=>e.unref(a)[t.prop]=g,"arrow-control":"",style:e.normalizeStyle(t.searchWidth?"width: "+t.searchWidth+"px;":"width: 92%"),placeholder:t.placeholder?t.placeholder:"请选择时间",size:t.size,class:e.normalizeClass([t.align&&t.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","style","placeholder","size","class"])):e.createCommentVNode("",!0),t.search&&t.type=="datetime"?(e.openBlock(),e.createBlock(R,{key:5,modelValue:e.unref(a)[t.prop],"onUpdate:modelValue":g=>e.unref(a)[t.prop]=g,type:"datetime",style:e.normalizeStyle(t.searchWidth?"width: "+t.searchWidth+"px;":"width: 92%"),placeholder:t.placeholder?t.placeholder:"请选择日期时间",size:t.size,class:e.normalizeClass([t.align&&t.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","style","placeholder","size","class"])):e.createCommentVNode("",!0),t.search&&t.type=="daterange"?(e.openBlock(),e.createBlock(R,{key:6,modelValue:e.unref(a)[t.prop],"onUpdate:modelValue":g=>e.unref(a)[t.prop]=g,type:"daterange","range-separator":"-","start-placeholder":t.placeholder?t.placeholder.split("&&")[0]:"请选择开始日期","end-placeholder":t.placeholder?t.placeholder.split("&&")[1]:"请选择结束日期",style:e.normalizeStyle(t.searchWidth?"width: "+t.searchWidth+"px;":"width: 92%"),size:t.size,class:e.normalizeClass([t.align&&t.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","style","size","class"])):e.createCommentVNode("",!0),t.search&&t.type=="timerange"?(e.openBlock(),e.createBlock(q,{key:7,modelValue:e.unref(a)[t.prop],"onUpdate:modelValue":g=>e.unref(a)[t.prop]=g,"is-range":"","arrow-control":"","range-separator":"-","start-placeholder":t.placeholder?t.placeholder.split("&&")[0]:"请选择开始时间","end-placeholder":t.placeholder?t.placeholder.split("&&")[1]:"请选择结束时间",style:e.normalizeStyle(t.searchWidth?"width: "+t.searchWidth+"px;":"width: 92%"),size:t.size,class:e.normalizeClass([t.align&&t.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","style","size","class"])):e.createCommentVNode("",!0),t.search&&t.type=="datetimerange"?(e.openBlock(),e.createBlock(R,{key:8,modelValue:e.unref(a)[t.prop],"onUpdate:modelValue":g=>e.unref(a)[t.prop]=g,type:"datetimerange","range-separator":"-","start-placeholder":t.placeholder?t.placeholder.split("&&")[0]:"请选择开始日期时间","end-placeholder":t.placeholder?t.placeholder.split("&&")[1]:"请选择结束日期时间",style:e.normalizeStyle(t.searchWidth?"width: "+t.searchWidth+"px;":"width: 92%"),size:t.size,class:e.normalizeClass([t.align&&t.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","style","size","class"])):e.createCommentVNode("",!0),t.search&&t.type=="switch"?(e.openBlock(),e.createBlock(O,{key:9,modelValue:e.unref(a)[t.prop],"onUpdate:modelValue":g=>e.unref(a)[t.prop]=g,size:t.size,"active-text":t.openText,"inactive-text":t.closeText,class:e.normalizeClass([t.align&&t.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","size","active-text","inactive-text","class"])):e.createCommentVNode("",!0)]),_:2},[t.costom?{name:"default",fn:e.withCtx(g=>[e.createElementVNode("span",{innerHTML:t.costom?t.costom(g==null?void 0:g.row):""},null,8,Je)]),key:"0"}:void 0,t.component?{name:"default",fn:e.withCtx(g=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.component),{data:g==null?void 0:g.row},null,8,["data"]))]),key:"1"}:void 0]),1032,["prop","width","min-width","fixed","align","show-overflow-tooltip"]))],64))),256)),l.operate?(e.openBlock(),e.createBlock(_,{key:3,align:"center",width:l.operateWidth?l.operateWidth:"",fixed:l.operateIsFixed?"right":!1},{header:e.withCtx(()=>[e.createElementVNode("div",Qe,e.toDisplayString(l.operateLabel),1),e.renderSlot(l.$slots,"operate-front",{},void 0,!0),l.search?(e.openBlock(),e.createBlock(T,{key:0,type:"primary",size:l.operateSize,icon:e.unref($e),onClick:z},{default:e.withCtx(()=>f[3]||(f[3]=[e.createTextVNode("搜索")])),_:1,__:[3]},8,["size","icon"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"operate-middle",{},void 0,!0),l.clear?(e.openBlock(),e.createBlock(T,{key:1,type:"info",size:l.operateSize,icon:e.unref(ke),onClick:E},{default:e.withCtx(()=>f[4]||(f[4]=[e.createTextVNode("清空")])),_:1,__:[4]},8,["size","icon"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"operate",{},void 0,!0),l.filter?(e.openBlock(),e.createBlock(G,{key:2,ref_key:"popover",ref:x,width:"150",trigger:"click",placement:"bottom"},{reference:e.withCtx(()=>[e.createVNode(T,{type:"link",size:l.operateSize,icon:e.unref(oe),onClick:f[0]||(f[0]=t=>b.value=!b.value)},null,8,["size","icon"])]),default:e.withCtx(()=>[e.createElementVNode("h4",null,[e.createVNode(X,null,{default:e.withCtx(()=>[e.createVNode(e.unref(oe))]),_:1}),f[5]||(f[5]=e.createTextVNode(" 显示字段筛选 "))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,t=>(e.openBlock(),e.createElementBlock("p",null,[e.createVNode(J,{modelValue:t.check,"onUpdate:modelValue":g=>t.check=g,label:t.label,value:t.label,disabled:!t.filter,size:"small"},null,8,["modelValue","onUpdate:modelValue","label","value","disabled"])]))),256)),e.createVNode(T,{type:"primary",size:"small",style:{"margin-top":"10px","margin-left":"5px"},onClick:A},{default:e.withCtx(()=>f[6]||(f[6]=[e.createTextVNode("确认")])),_:1,__:[6]})]),_:1},512)):e.createCommentVNode("",!0)]),default:e.withCtx(t=>[e.renderSlot(l.$slots,"row-operate-front",{row:t==null?void 0:t.row},void 0,!0),l.edit?(e.openBlock(),e.createBlock(T,{key:0,link:"",type:"primary",size:l.rowButtonSize,icon:e.unref(Se),onClick:g=>L(t==null?void 0:t.row)},{default:e.withCtx(()=>f[7]||(f[7]=[e.createTextVNode("修改")])),_:2,__:[7]},1032,["size","icon","onClick"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"row-operate-middle",{row:t==null?void 0:t.row},void 0,!0),l.delete?(e.openBlock(),e.createBlock(Q,{key:1,"confirm-button-text":"否","cancel-button-text":"是","confirm-button-type":"text","cancel-button-type":"danger",icon:e.unref(Ve),width:"auto",onCancel:g=>W(t==null?void 0:t.row),title:l.deleteTitle?l.deleteTitle:"是否要删除当前行?"},{reference:e.withCtx(()=>[e.createVNode(T,{link:"",type:"danger",size:l.rowButtonSize,icon:e.unref(Be)},{default:e.withCtx(()=>f[8]||(f[8]=[e.createTextVNode("删除")])),_:1,__:[8]},8,["size","icon"])]),_:2},1032,["icon","onCancel","title"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"row-operate",{row:t==null?void 0:t.row},void 0,!0)]),_:3},8,["width","fixed"])):e.createCommentVNode("",!0)]),_:3},8,["data","class","max-height","size","stripe","border","highlight-current-row","header-cell-style"]),e.createElementVNode("div",Ze,[l.pagination?(e.openBlock(),e.createBlock(v,{key:0,"current-page":e.unref(a).pageIndex,"onUpdate:currentPage":f[1]||(f[1]=t=>e.unref(a).pageIndex=t),"page-size":e.unref(a).pageSize,"onUpdate:pageSize":f[2]||(f[2]=t=>e.unref(a).pageSize=t),small:l.small,"hide-on-Single-page":l.hideOnSinglePage,background:"",layout:"prev, pager, next, total, jumper, sizes","page-sizes":[5,10,20,50],total:l.total,class:"mt-4"},null,8,["current-page","page-size","small","hide-on-Single-page","total"])):e.createCommentVNode("",!0)])],64)}}}),mt="",se=I(ve,[["__scopeId","data-v-b417a1fd"]]),et={class:"dialog"},tt=["innerHTML"],lt={class:"form"},ce=!0,ot=e.defineComponent({__name:"index",props:e.mergeModels({title:{default:"弹出框"},width:{default:"500px"},fullscreen:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},buttonSize:{default:"default"},loading:{type:Boolean,default:!1},rules:{default:()=>{}},formSize:{default:"default"},lableWidth:{default:"120px"}},{form:{default:{}},formModifiers:{}}),emits:e.mergeModels(["close","submit"],["update:form"]),setup(s,{emit:h}){const m=h;let d=e.useModel(s,"form");const w=e.ref(!1),a=e.ref();function C(){m("close")}function x(){a.value.validate(y=>{y&&m("submit")})}return(y,V)=>{const b=e.resolveComponent("el-icon"),B=e.resolveComponent("el-input"),S=e.resolveComponent("el-input-number"),N=e.resolveComponent("el-option"),M=e.resolveComponent("el-select"),E=e.resolveComponent("el-date-picker"),z=e.resolveComponent("el-time-picker"),L=e.resolveComponent("el-switch"),W=e.resolveComponent("el-form-item"),D=e.resolveComponent("el-form"),H=e.resolveComponent("el-button"),A=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",et,[e.createVNode(A,{modelValue:ce,"onUpdate:modelValue":V[1]||(V[1]=i=>ce=i),width:y.width,fullscreen:w.value,"close-on-click-modal":!1,"close-on-press-escape":!1,draggable:y.draggable,onClose:C,overflow:""},e.createSlots({header:e.withCtx(()=>[e.createElementVNode("span",{innerHTML:y.title},null,8,tt),y.fullscreen?(e.openBlock(),e.createBlock(b,{key:0,class:"fullscreen",onClick:V[0]||(V[0]=i=>w.value=!w.value)},{default:e.withCtx(()=>[w.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(Pe),{key:0})),w.value?(e.openBlock(),e.createBlock(e.unref(Le),{key:1})):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.renderSlot(y.$slots,"header",{},void 0,!0),e.createElementVNode("div",lt,[e.createVNode(D,{model:e.unref(d),rules:y.rules,ref_key:"formRef",ref:a,inline:!0,"label-width":y.lableWidth,size:y.formSize},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),(i,l,f)=>(e.openBlock(),e.createBlock(W,{key:f,label:i.label,prop:l,style:e.normalizeStyle("width:"+(i.width?i.width:"90%"))},{default:e.withCtx(()=>[!i.type||i.type=="text"?(e.openBlock(),e.createBlock(B,{key:0,modelValue:e.unref(d)[l].default,"onUpdate:modelValue":_=>e.unref(d)[l].default=_,clearable:"",disabled:i.disabled,readonly:i.readonly,placeholder:i.placeholder?i.placeholder:"请输入"+i.label,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","disabled","readonly","placeholder"])):e.createCommentVNode("",!0),i.type=="number"?(e.openBlock(),e.createBlock(S,{key:1,modelValue:e.unref(d)[l].default,"onUpdate:modelValue":_=>e.unref(d)[l].default=_,clearable:"",disabled:i.disabled,readonly:i.readonly,style:{width:"100%"},placeholder:i.placeholder?i.placeholder:"请输入"+i.label,max:i.max!=null?i.max:1/0,min:i.min!=null?i.min:-1/0,step:i.step!=null?i.step:1},null,8,["modelValue","onUpdate:modelValue","disabled","readonly","placeholder","max","min","step"])):e.createCommentVNode("",!0),i.type=="select"?(e.openBlock(),e.createBlock(M,{key:2,modelValue:e.unref(d)[l].default,"onUpdate:modelValue":_=>e.unref(d)[l].default=_,clearable:"",filterable:"",disabled:i.disabled,multiple:i.multiple,"collapse-tags":i.omit,placeholder:i.placeholder?i.placeholder:"请选择"+i.label,style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.options,_=>(e.openBlock(),e.createBlock(N,{label:_.label?_.label:_.value,value:_.value,disabled:_.disabled},null,8,["label","value","disabled"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","multiple","collapse-tags","placeholder"])):e.createCommentVNode("",!0),i.type=="date"?(e.openBlock(),e.createBlock(E,{key:3,modelValue:e.unref(d)[l].default,"onUpdate:modelValue":_=>e.unref(d)[l].default=_,type:"date",placeholder:i.placeholder?i.placeholder:"请选择日期",disabled:i.disabled,readonly:i.readonly,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled","readonly"])):e.createCommentVNode("",!0),i.type=="time"?(e.openBlock(),e.createBlock(z,{key:4,modelValue:e.unref(d)[l].default,"onUpdate:modelValue":_=>e.unref(d)[l].default=_,"arrow-control":"",placeholder:i.placeholder?i.placeholder:"请选择时间",disabled:i.disabled,readonly:i.readonly,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled","readonly"])):e.createCommentVNode("",!0),i.type=="datetime"?(e.openBlock(),e.createBlock(E,{key:5,modelValue:e.unref(d)[l].default,"onUpdate:modelValue":_=>e.unref(d)[l].default=_,type:"datetime",placeholder:i.placeholder?i.placeholder:"请选择日期时间",disabled:i.disabled,readonly:i.readonly,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled","readonly"])):e.createCommentVNode("",!0),i.type=="daterange"?(e.openBlock(),e.createBlock(E,{key:6,modelValue:e.unref(d)[l].default,"onUpdate:modelValue":_=>e.unref(d)[l].default=_,type:"daterange","range-separator":"-","start-placeholder":i.placeholder?i.placeholder.split("&&")[0]:"请选择开始日期","end-placeholder":i.placeholder?i.placeholder.split("&&")[1]:"请选择结束日期",disabled:i.disabled,readonly:i.readonly,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","disabled","readonly"])):e.createCommentVNode("",!0),i.type=="timerange"?(e.openBlock(),e.createBlock(z,{key:7,modelValue:e.unref(d)[l].default,"onUpdate:modelValue":_=>e.unref(d)[l].default=_,"is-range":"","arrow-control":"","range-separator":"-","start-placeholder":i.placeholder?i.placeholder.split("&&")[0]:"请选择开始时间","end-placeholder":i.placeholder?i.placeholder.split("&&")[1]:"请选择结束时间",disabled:i.disabled,readonly:i.readonly,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","disabled","readonly"])):e.createCommentVNode("",!0),i.type=="datetimerange"?(e.openBlock(),e.createBlock(E,{key:8,modelValue:e.unref(d)[l].default,"onUpdate:modelValue":_=>e.unref(d)[l].default=_,type:"datetimerange","range-separator":"-","start-placeholder":i.placeholder?i.placeholder.split("&&")[0]:"请选择开始日期时间","end-placeholder":i.placeholder?i.placeholder.split("&&")[1]:"请选择结束日期时间",disabled:i.disabled,readonly:i.readonly,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","disabled","readonly"])):e.createCommentVNode("",!0),i.type=="switch"?(e.openBlock(),e.createBlock(L,{key:9,modelValue:e.unref(d)[l].default,"onUpdate:modelValue":_=>e.unref(d)[l].default=_,"active-text":i.openText,"inactive-text":i.closeText,disabled:i.disabled,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","active-text","inactive-text","disabled"])):e.createCommentVNode("",!0)]),_:2},1032,["label","prop","style"]))),128))]),_:1},8,["model","rules","label-width","size"])]),e.renderSlot(y.$slots,"footer",{},void 0,!0)]),_:2},[y.footer?{name:"footer",fn:e.withCtx(()=>[e.createVNode(H,{type:"primary",size:y.buttonSize,icon:e.unref(ge),class:"btn",loading:y.loading,onClick:x},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.loading?"提交中":"提交"),1)]),_:1},8,["size","icon","loading"]),e.createVNode(H,{type:"info",size:y.buttonSize,icon:e.unref(le),class:"btn",onClick:C},{default:e.withCtx(()=>V[2]||(V[2]=[e.createTextVNode("取消")])),_:1,__:[2]},8,["size","icon"])]),key:"0"}:void 0]),1032,["width","fullscreen","draggable"])])}}}),ht="",pe=I(ot,[["__scopeId","data-v-3385eac2"]]);function at(s,h,m){return h.default==null||h.default.toString()==""?m(new Error(h.label+"不能为空")):m()}const nt={install:s=>{s.component("SplitPanes",ee),s.component("Pane",te),s.component("UpLoadFile",re),s.component("Layout",de),s.component("TableForm",se),s.component("UpLoadFiles",ie),s.component("DvDialog",pe)}};P.DvDialog=pe,P.FormValidate=at,P.Layout=de,P.Pane=te,P.SplitPanes=ee,P.TableForm=se,P.UpLoadFile=re,P.UpLoadFiles=ie,P.default=nt,Object.defineProperties(P,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{-webkit-user-select:none;user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme .splitpanes--dragging{-webkit-user-select:none;user-select:none;pointer-events:none}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}.splitpanes[data-v-15862e4c] .splitpanes__splitter{min-width:4px;min-height:4px}.fileupload[data-v-d2ed1fe1]{overflow-x:auto}.btn[data-v-d2ed1fe1]{margin-left:5px;margin-right:5px}.filename[data-v-d2ed1fe1]{font-size:12px;text-indent:1em}.filename[data-v-d2ed1fe1]:hover{background:rgb(228,228,228)}.filename[data-v-fd9596c6]{width:100%;height:22px;font-size:13px;position:relative}.filename[data-v-fd9596c6]:hover{background:rgb(245,245,245)}.filename .content[data-v-fd9596c6]{position:absolute;left:0px;top:3px;text-indent:1em}.filename .operation[data-v-fd9596c6]{position:absolute;right:5px;top:3px}.container[data-v-79d244c7]{height:100%;background:rgb(241,241,241)}.container .aside[data-v-79d244c7]{height:100%;background:#fff;margin-right:4px;transition:width .3s linear}.container .aside[data-v-79d244c7]::-webkit-scrollbar{height:7px;width:7px}.container .aside[data-v-79d244c7]::-webkit-scrollbar-thumb{border-radius:4px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);background:#b6dcfd}.container .aside[data-v-79d244c7]::-webkit-scrollbar-track{-webkit-box-shadow:0;border-radius:0;background:#f6f8ff}.container .main[data-v-79d244c7]{height:100%;padding:0;margin-left:0}.container .main .inside_container[data-v-79d244c7]{height:100%;margin-left:0}.container .main .inside_container .inside_header[data-v-79d244c7]{padding:5px;background:#fff;margin-bottom:2px}.container .main .inside_container .inside_main[data-v-79d244c7]{padding:0;background:#fff}.container .main .inside_container .inside_main[data-v-79d244c7]::-webkit-scrollbar{height:7px;width:7px}.container .main .inside_container .inside_main[data-v-79d244c7]::-webkit-scrollbar-thumb{border-radius:4px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);background:#b6dcfd}.container .main .inside_container .inside_main[data-v-79d244c7]::-webkit-scrollbar-track{-webkit-box-shadow:0;border-radius:0;background:#f6f8ff}.header[data-v-b417a1fd]{text-align:right;margin-bottom:2px}.center[data-v-b417a1fd] .el-input__inner,.center[data-v-b417a1fd] .el-select__placeholder{text-align:center}.table[data-v-b417a1fd] .el-table__cell{padding:4px 0}.mini-table[data-v-b417a1fd] .el-table__cell{padding:2px 0}.pagination[data-v-b417a1fd]{display:flex;justify-content:flex-end;margin-top:2px}.form[data-v-98c59677] .el-form-item__label{display:block!important;text-align:right}.dialog[data-v-98c59677]{border-radius:10px}.dialog[data-v-98c59677] .el-dialog__header{padding:10px;position:relative}.dialog[data-v-98c59677] .el-dialog__header .fullscreen{width:50px;height:50px;position:absolute;right:50px;top:-1px;cursor:pointer;color:#4d4d4d;font-size:16px}.dialog[data-v-98c59677] .el-dialog__header .fullscreen:hover{color:#409eff}.dialog[data-v-98c59677] .el-dialog__header :deep(.el-dialog__body){padding:15px}.dialog[data-v-98c59677] .el-dialog__header .btn{margin-left:10px;margin-right:10px}
1
+ .splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{-webkit-user-select:none;user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme .splitpanes--dragging{-webkit-user-select:none;user-select:none;pointer-events:none}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}.splitpanes[data-v-15862e4c] .splitpanes__splitter{min-width:4px;min-height:4px}.fileupload[data-v-d2ed1fe1]{overflow-x:auto}.btn[data-v-d2ed1fe1]{margin-left:5px;margin-right:5px}.filename[data-v-d2ed1fe1]{font-size:12px;text-indent:1em}.filename[data-v-d2ed1fe1]:hover{background:rgb(228,228,228)}.filename[data-v-fd9596c6]{width:100%;height:22px;font-size:13px;position:relative}.filename[data-v-fd9596c6]:hover{background:rgb(245,245,245)}.filename .content[data-v-fd9596c6]{position:absolute;left:0px;top:3px;text-indent:1em}.filename .operation[data-v-fd9596c6]{position:absolute;right:5px;top:3px}.container[data-v-79d244c7]{height:100%;background:rgb(241,241,241)}.container .aside[data-v-79d244c7]{height:100%;background:#fff;margin-right:4px;transition:width .3s linear}.container .aside[data-v-79d244c7]::-webkit-scrollbar{height:7px;width:7px}.container .aside[data-v-79d244c7]::-webkit-scrollbar-thumb{border-radius:4px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);background:#b6dcfd}.container .aside[data-v-79d244c7]::-webkit-scrollbar-track{-webkit-box-shadow:0;border-radius:0;background:#f6f8ff}.container .main[data-v-79d244c7]{height:100%;padding:0;margin-left:0}.container .main .inside_container[data-v-79d244c7]{height:100%;margin-left:0}.container .main .inside_container .inside_header[data-v-79d244c7]{padding:5px;background:#fff;margin-bottom:2px}.container .main .inside_container .inside_main[data-v-79d244c7]{padding:0;background:#fff}.container .main .inside_container .inside_main[data-v-79d244c7]::-webkit-scrollbar{height:7px;width:7px}.container .main .inside_container .inside_main[data-v-79d244c7]::-webkit-scrollbar-thumb{border-radius:4px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);background:#b6dcfd}.container .main .inside_container .inside_main[data-v-79d244c7]::-webkit-scrollbar-track{-webkit-box-shadow:0;border-radius:0;background:#f6f8ff}.header[data-v-b417a1fd]{text-align:right;margin-bottom:2px}.center[data-v-b417a1fd] .el-input__inner,.center[data-v-b417a1fd] .el-select__placeholder{text-align:center}.table[data-v-b417a1fd] .el-table__cell{padding:4px 0}.mini-table[data-v-b417a1fd] .el-table__cell{padding:2px 0}.pagination[data-v-b417a1fd]{display:flex;justify-content:flex-end;margin-top:2px}.form[data-v-3385eac2] .el-form-item__label{display:block!important;text-align:right}.dialog[data-v-3385eac2]{border-radius:10px}.dialog[data-v-3385eac2] .el-dialog__header{padding:10px;position:relative}.dialog[data-v-3385eac2] .el-dialog__header .fullscreen{width:50px;height:50px;position:absolute;right:50px;top:-1px;cursor:pointer;color:#4d4d4d;font-size:16px}.dialog[data-v-3385eac2] .el-dialog__header .fullscreen:hover{color:#409eff}.dialog[data-v-3385eac2] .el-dialog__header :deep(.el-dialog__body){padding:15px}.dialog[data-v-3385eac2] .el-dialog__header .btn{margin-left:10px;margin-right:10px}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dld-vue-ui",
3
3
  "private": false,
4
- "version": "1.2.3",
4
+ "version": "1.2.4",
5
5
  "type": "module",
6
6
  "main": "./dist/dld-vue-ui.umd.js",
7
7
  "module": "./dist/dld-vue-ui.js",