dld-vue-ui 1.0.7 → 1.1.1

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(f,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(f=typeof globalThis<"u"?globalThis:f||self,e(f["dld-vue-ui"]={},f.Vue))})(this,function(f,e){"use strict";const T={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,l)=>(t[l.id]=l)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,l){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=l},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(l=>({min:l.min,max:l.max,size:l.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,l){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===l?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,l),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=l,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[l])},onSplitterDblClick(t,l){let o=0;this.panes=this.panes.map((i,a)=>(i.size=a===l?i.max:i.min,a!==l&&(o+=i.min),i)),this.panes[l].size-=o,this.$emit("pane-maximize",this.panes[l]),this.$emit("resized",this.panes.map(i=>({min:i.min,max:i.max,size:i.size})))},onPaneClick(t,l){this.$emit("pane-click",this.indexedPanes[l])},getCurrentMouseDrag(t){const l=this.container.getBoundingClientRect(),{clientX:o,clientY:i}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:o-l.left,y:i-l.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const l=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=l-t),t*100/l},calculatePanesSize(t){const l=this.touch.activeSplitter;let o={prevPanesSize:this.sumPrevPanesSize(l),nextPanesSize:this.sumNextPanesSize(l),prevReachedMinPanes:0,nextReachedMinPanes:0};const i=0+(this.pushOtherPanes?0:o.prevPanesSize),a=100-(this.pushOtherPanes?0:o.nextPanesSize),s=Math.max(Math.min(this.getCurrentDragPercentage(t),a),i);let d=[l,l+1],h=this.panes[d[0]]||null,u=this.panes[d[1]]||null;const _=h.max<100&&s>=h.max+o.prevPanesSize,w=u.max<100&&s<=100-(u.max+this.sumNextPanesSize(l+1));if(_||w){_?(h.size=h.max,u.size=Math.max(100-h.max-o.prevPanesSize-o.nextPanesSize,0)):(h.size=Math.max(100-u.max-o.prevPanesSize-this.sumNextPanesSize(l+1),0),u.size=u.max);return}if(this.pushOtherPanes){const m=this.doPushOtherPanes(o,s);if(!m)return;({sums:o,panesToResize:d}=m),h=this.panes[d[0]]||null,u=this.panes[d[1]]||null}h!==null&&(h.size=Math.min(Math.max(s-o.prevPanesSize-o.prevReachedMinPanes,h.min),h.max)),u!==null&&(u.size=Math.min(Math.max(100-s-o.nextPanesSize-o.nextReachedMinPanes,u.min),u.max))},doPushOtherPanes(t,l){const o=this.touch.activeSplitter,i=[o,o+1];return l<t.prevPanesSize+this.panes[i[0]].min&&(i[0]=this.findPrevExpandedPane(o).index,t.prevReachedMinPanes=0,i[0]<o&&this.panes.forEach((a,s)=>{s>i[0]&&s<=o&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),t.prevPanesSize=this.sumPrevPanesSize(i[0]),i[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((a,s)=>{s>0&&s<=o&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),this.panes[i[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):l>100-t.nextPanesSize-this.panes[i[1]].min&&(i[1]=this.findNextExpandedPane(o).index,t.nextReachedMinPanes=0,i[1]>o+1&&this.panes.forEach((a,s)=>{s>o&&s<i[1]&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),t.nextPanesSize=this.sumNextPanesSize(i[1]-1),i[1]===void 0)?(t.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((a,s)=>{s<this.panesCount-1&&s>=o+1&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),this.panes[i[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:i}},sumPrevPanesSize(t){return this.panes.reduce((l,o,i)=>l+(i<t?o.size:0),0)},sumNextPanesSize(t){return this.panes.reduce((l,o,i)=>l+(i>t+1?o.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(l=>l.index<t&&l.size>l.min)||{}},findNextExpandedPane(t){return this.panes.find(l=>l.index>t+1&&l.size>l.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const l=t.classList.contains("splitpanes__pane"),o=t.classList.contains("splitpanes__splitter");!l&&!o&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(t,l,o=!1){const i=t-1,a=document.createElement("div");a.classList.add("splitpanes__splitter"),o||(a.onmousedown=s=>this.onMouseDown(s,i),typeof window<"u"&&"ontouchstart"in window&&(a.ontouchstart=s=>this.onMouseDown(s,i)),a.onclick=s=>this.onSplitterClick(s,i+1)),this.dblClickSplitter&&(a.ondblclick=s=>this.onSplitterDblClick(s,i+1)),l.parentNode.insertBefore(a,l)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(o=>{o.className.includes("splitpanes__splitter")&&this.removeSplitter(o)});let l=0;t.forEach(o=>{o.className.includes("splitpanes__pane")&&(!l&&this.firstSplitter?this.addSplitter(l,o,!0):l&&this.addSplitter(l,o),l++)})},requestUpdate({target:t,...l}){const o=this.indexedPanes[t._.uid];Object.entries(l).forEach(([i,a])=>o[i]=a)},onPaneAdd(t){let l=-1;Array.from(t.$el.parentNode.children).some(a=>(a.className.includes("splitpanes__pane")&&l++,a===t.$el));const o=parseFloat(t.minSize),i=parseFloat(t.maxSize);this.panes.splice(l,0,{id:t._.uid,index:l,min:isNaN(o)?0:o,max:isNaN(i)?100:i,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((a,s)=>a.index=s),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[l]}),this.$emit("pane-add",{index:l,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},onPaneRemove(t){const l=this.panes.findIndex(i=>i.id===t._.uid),o=this.panes.splice(l,1)[0];this.panes.forEach((i,a)=>i.index=a),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...o,index:l}}),this.$emit("pane-remove",{removed:o,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(l=>l.givenSize!==null||l.min||l.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(l=>({min:l.min,max:l.max,size:l.size})))},equalize(){const t=100/this.panesCount;let l=0;const o=[],i=[];this.panes.forEach(a=>{a.size=Math.max(Math.min(t,a.max),a.min),l-=a.size,a.size>=a.max&&o.push(a.id),a.size<=a.min&&i.push(a.id)}),l>.1&&this.readjustSizes(l,o,i)},initialPanesSizing(){let t=100;const l=[],o=[];let i=0;this.panes.forEach(s=>{t-=s.size,s.size!==null&&i++,s.size>=s.max&&l.push(s.id),s.size<=s.min&&o.push(s.id)});let a=100;t>.1&&(this.panes.forEach(s=>{s.size===null&&(s.size=Math.max(Math.min(t/(this.panesCount-i),s.max),s.min)),a-=s.size}),a>.1&&this.readjustSizes(t,l,o))},equalizeAfterAddOrRemove({addedPane:t,removedPane:l}={}){let o=100/this.panesCount,i=0;const a=[],s=[];t&&t.givenSize!==null&&(o=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(d=>{i-=d.size,d.size>=d.max&&a.push(d.id),d.size<=d.min&&s.push(d.id)}),!(Math.abs(i)<.1)&&(this.panes.forEach(d=>{t&&t.givenSize!==null&&t.id===d.id||(d.size=Math.max(Math.min(o,d.max),d.min)),i-=d.size,d.size>=d.max&&a.push(d.id),d.size<=d.min&&s.push(d.id)}),i>.1&&this.readjustSizes(i,a,s))},readjustSizes(t,l,o){let i;t>0?i=t/(this.panesCount-l.length):i=t/(this.panesCount-o.length),this.panes.forEach((a,s)=>{if(t>0&&!l.includes(a.id)){const d=Math.max(Math.min(a.size+i,a.max),a.min),h=d-a.size;t-=h,a.size=d}else if(!o.includes(a.id)){const d=Math.max(Math.min(a.size+i,a.max),a.min),h=d-a.size;t-=h,a.size=d}a.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[a.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((l,o)=>{l.ondblclick=t?i=>this.onSplitterDblClick(i,o):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return e.h("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},R=(t,l)=>{const o=t.__vccOpts||t;for(const[i,a]of l)o[i]=a;return o},W={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function H(t,l,o,i,a,s){return e.openBlock(),e.createElementBlock("div",{class:"splitpanes__pane",onClick:l[0]||(l[0]=d=>s.onPaneClick(d,t._.uid)),style:e.normalizeStyle(t.style)},[e.renderSlot(t.$slots,"default")],4)}const A=R(W,[["render",H]]),wt="",I=e.defineComponent({__name:"index",props:{styles:{type:Object,required:!1,default:()=>({width:"100%",height:"100%"})},horizontal:{type:Boolean,required:!1,default:!1}},setup(t){return(l,o)=>(e.openBlock(),e.createBlock(e.unref(T),{horizontal:t.horizontal,style:e.normalizeStyle(t.styles),class:"splitpanes"},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},8,["horizontal","style"]))}}),St="",C=(t,l)=>{const o=t.__vccOpts||t;for(const[i,a]of l)o[i]=a;return o},V=C(I,[["__scopeId","data-v-4226b5d2"],["__file","D:/Code/front/dld-vue-ui/src/packages/SplitPanes/index.vue"]]),E=C(e.defineComponent({__name:"pane",props:{styles:{type:Object,required:!0,default:()=>({background:"#ececec"})}},setup(t){return(l,o)=>(e.openBlock(),e.createBlock(e.unref(A),{style:e.normalizeStyle(t.styles)},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["style"]))}}),[["__file","D:/Code/front/dld-vue-ui/src/packages/SplitPanes/pane.vue"]]);/*! Element Plus Icons Vue v2.0.10 */var z=(t,l)=>{let o=t.__vccOpts||t;for(let[i,a]of l)o[i]=a;return o},O={name:"CircleClose"},j={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},G=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.248L466.752 512z"},null,-1),K=e.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Y=[G,K];function J(t,l,o,i,a,s){return e.openBlock(),e.createElementBlock("svg",j,Y)}var X=z(O,[["render",J],["__file","circle-close.vue"]]),Q={name:"Close"},Z={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},v=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"},null,-1),ee=[v];function te(t,l,o,i,a,s){return e.openBlock(),e.createElementBlock("svg",Z,ee)}var ne=z(Q,[["render",te],["__file","close.vue"]]),le={name:"DeleteFilled"},ae={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},oe=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-64h256zm64 0h192v-64H416v64zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32H192zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32zm192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32z"},null,-1),ie=[oe];function se(t,l,o,i,a,s){return e.openBlock(),e.createElementBlock("svg",ae,ie)}var re=z(le,[["render",se],["__file","delete-filled.vue"]]),de={name:"Delete"},ce={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},pe=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-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),he=[pe];function ue(t,l,o,i,a,s){return e.openBlock(),e.createElementBlock("svg",ce,he)}var me=z(de,[["render",ue],["__file","delete.vue"]]),fe={name:"Edit"},_e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ze=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 64H192v640h640V512z"},null,-1),ye=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"},null,-1),ge=[ze,ye];function xe(t,l,o,i,a,s){return e.openBlock(),e.createElementBlock("svg",_e,ge)}var ke=z(fe,[["render",xe],["__file","edit.vue"]]),Ce={name:"Filter"},we={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Se=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.288L384 523.392z"},null,-1),Be=[Se];function be(t,l,o,i,a,s){return e.openBlock(),e.createElementBlock("svg",we,Be)}var N=z(Ce,[["render",be],["__file","filter.vue"]]),Ve={name:"FolderOpened"},Ee={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ne=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 384H832zm-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 896z"},null,-1),Fe=[Ne];function Pe(t,l,o,i,a,s){return e.openBlock(),e.createElementBlock("svg",Ee,Fe)}var F=z(Ve,[["render",Pe],["__file","folder-opened.vue"]]),$e={name:"Search"},Me={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qe=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 704z"},null,-1),Le=[qe];function De(t,l,o,i,a,s){return e.openBlock(),e.createElementBlock("svg",Me,Le)}var Ue=z($e,[["render",De],["__file","search.vue"]]),Te={name:"Upload"},Re={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},We=e.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248L544 253.696z"},null,-1),He=[We];function Ae(t,l,o,i,a,s){return e.openBlock(),e.createElementBlock("svg",Re,He)}var P=z(Te,[["render",Ae],["__file","upload.vue"]]),Ie=function(){function t(l){if(!l)throw new TypeError("Invalid argument; `value` has no value.");this.value=t.EMPTY,l&&t.isGuid(l)&&(this.value=l)}return t.isGuid=function(l){var o=l.toString();return l&&(l instanceof t||t.validator.test(o))},t.create=function(){return new t([t.gen(2),t.gen(1),t.gen(1),t.gen(1),t.gen(3)].join("-"))},t.createEmpty=function(){return new t("emptyguid")},t.parse=function(l){return new t(l)},t.raw=function(){return[t.gen(2),t.gen(1),t.gen(1),t.gen(1),t.gen(3)].join("-")},t.gen=function(l){for(var o="",i=0;i<l;i++)o+=((1+Math.random())*65536|0).toString(16).substring(1);return o},t.prototype.equals=function(l){return t.isGuid(l)&&this.value===l.toString()},t.prototype.isEmpty=function(){return this.value===t.EMPTY},t.prototype.toString=function(){return this.value},t.prototype.toJSON=function(){return{value:this.value}},t.validator=new RegExp("^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$","i"),t.EMPTY="00000000-0000-0000-0000-000000000000",t}(),Oe=Ie;const je={style:{}},Ge=["id","accept"],Ke={class:"filename"},Ye=e.defineComponent({__name:"index",props:{size:{type:String,required:!1,default:"default"},name:{type:String,required:!1,default:"\u4E0A\u4F20\u6587\u4EF6"},icon:{type:null,required:!1,default:P},type:{type:null,required:!1,default:"success"},accept:{type:String,required:!0,default:"*"}},emits:["upload"],setup(t,{expose:l,emit:o}){let i=Oe.create().toString(),a,s=e.ref("");function d(){a.click()}function h(){s.value=a.value}function u(){a.files!==null&&o("upload",a.files[0])}function _(){a.value="",s.value=""}return e.onMounted(()=>{a=document.getElementById(i)}),l({Clear:_}),(w,m)=>{const y=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",je,[e.createVNode(y,{type:t.type,icon:e.unref(F),size:t.size,class:"btn",onClick:d},{default:e.withCtx(()=>[e.createTextVNode("\u9009\u62E9\u6587\u4EF6")]),_:1},8,["type","icon","size"]),e.withDirectives(e.createElementVNode("input",{type:"file",id:e.unref(i),onChange:h,accept:t.accept},null,40,Ge),[[e.vShow,!1]]),e.createElementVNode("span",Ke,e.toDisplayString(e.unref(s)),1),e.createVNode(y,{type:t.type,icon:t.icon,size:t.size,disabled:e.unref(s)==null||e.unref(s)=="",class:"btn",title:e.unref(s)==null||e.unref(s)==""?"\u8BF7\u9009\u62E9\u6587\u4EF6":"",onClick:u},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.name),1)]),_:1},8,["type","icon","size","disabled","title"])])}}}),bt="",$=C(Ye,[["__scopeId","data-v-83b9cdd7"],["__file","D:/Code/front/dld-vue-ui/src/packages/UpLoadFile/index.vue"]]),Je=["accept"],Xe={class:"filename"},Qe={class:"content"},Ze=e.defineComponent({__name:"index",props:{size:{type:String,required:!0,default:"default"},accept:{type:String,required:!0,default:"*"}},emits:["upload","clear"],setup(t,{expose:l,emit:o}){const i=t,a=e.ref(),s=e.ref([]);function d(){var m;(m=a.value)==null||m.click()}function h(){var m,y,g;if(s.value=[],(m=a.value)!=null&&m.files)for(let x=0;x<((g=(y=a.value)==null?void 0:y.files)==null?void 0:g.length);x++)s.value[x]=a.value.files[x];else s.value=[]}function u(m){s.value.splice(m,1)}function _(){o("upload",s.value)}function w(){s.value=[]}return l({Clear:w}),(m,y)=>{const g=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:h,accept:i.accept},null,40,Je),e.createVNode(g,{type:"success",size:i.size,icon:e.unref(F),onClick:d},{default:e.withCtx(()=>[e.createTextVNode("\u9009\u62E9\u6587\u4EF6")]),_:1},8,["size","icon"]),e.createVNode(g,{type:"success",size:i.size,icon:e.unref(P),onClick:_,disabled:s.value.length==0},{default:e.withCtx(()=>[e.createTextVNode("\u4E0A\u4F20\u6587\u4EF6")]),_:1},8,["size","icon","disabled"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(x,B)=>(e.openBlock(),e.createElementBlock("p",Xe,[e.createElementVNode("span",Qe,e.toDisplayString(x.name),1),e.createVNode(g,{size:"small",icon:e.unref(ne),class:"operation",link:"",onClick:D=>u(B)},null,8,["icon","onClick"])]))),256))])}}}),Vt="",M=C(Ze,[["__scopeId","data-v-50d3310f"],["__file","D:/Code/front/dld-vue-ui/src/packages/UpLoadFiles/index.vue"]]),ve=e.defineComponent({__name:"index",props:{asideWidth:{type:Number,required:!1,default:220},headerMaxHeight:{type:Number,required:!1,default:60},horizontal:{type:Boolean,required:!1,default:!1}},setup(t){const l=e.useSlots();return(o,i)=>{const a=e.resolveComponent("el-aside"),s=e.resolveComponent("el-header"),d=e.resolveComponent("el-main"),h=e.resolveComponent("el-container");return e.openBlock(),e.createBlock(h,{class:"container"},{default:e.withCtx(()=>[e.unref(l).aside&&!t.horizontal?(e.openBlock(),e.createBlock(a,{key:0,class:"aside",style:e.normalizeStyle("width: "+t.asideWidth+"px;")},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"aside",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("v-if",!0),e.unref(l).header&&t.horizontal?(e.openBlock(),e.createBlock(s,{key:1,class:"inside_header",style:e.normalizeStyle("height: "+t.headerMaxHeight+"px;")},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"header",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("v-if",!0),e.createVNode(d,{class:"main"},{default:e.withCtx(()=>[e.createVNode(h,{class:"inside_container"},{default:e.withCtx(()=>[e.unref(l).header&&!t.horizontal?(e.openBlock(),e.createBlock(s,{key:0,class:"inside_header",style:e.normalizeStyle("height: "+t.headerMaxHeight+"px;")},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"header",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("v-if",!0),e.unref(l).aside&&t.horizontal?(e.openBlock(),e.createBlock(a,{key:1,class:"aside",style:e.normalizeStyle("width: "+t.asideWidth+"px;")},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"aside",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("v-if",!0),e.createVNode(d,{class:"inside_main"},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]),_:3})]),_:3})}}}),Et="",q=C(ve,[["__scopeId","data-v-5d747d9d"],["__file","D:/Code/front/dld-vue-ui/src/packages/Layout/index.vue"]]),et={key:0,class:"header"},tt={class:"header_title"},nt=["innerHTML"],lt={class:"header_title"},at={class:"pagination"},ot=e.defineComponent({__name:"index",props:{maxHeight:{type:[Number,String],required:!1,default:550},size:{type:String,required:!1,default:"default"},tableData:{type:Array,required:!1,default:()=>[]},headStyle:{type:null,required:!1,default:{}},tableColumn:{type:Array,required:!1,default:()=>[]},stripe:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},highLight:{type:Boolean,required:!1,default:!1},type:{type:String,required:!1},typeLabel:{type:String,required:!1,default:"\u5E8F\u53F7"},typeWidth:{type:Number,required:!1,default:60},typeIsFixed:{type:Boolean,required:!1},operate:{type:Boolean,required:!1},operateSize:{type:String,required:!1,default:"default"},rowButtonSize:{type:String,required:!1,default:"default"},operateLabel:{type:String,required:!1,default:""},operateWidth:{type:Number,required:!1,default:220},operateIsFixed:{type:Boolean,required:!1},search:{type:Boolean,required:!1},clear:{type:Boolean,required:!1},edit:{type:Boolean,required:!1},delete:{type:Boolean,required:!1},deleteTitle:{type:String,required:!1},pagination:{type:Boolean,required:!1,default:!1},small:{type:Boolean,required:!1,default:!1},total:{type:Number,required:!1,default:0},hideOnSinglePage:{type:Boolean,required:!1,default:!1},defaultSelect:{type:Function,required:!1},defaultSize:{type:Number,required:!1,default:5},filter:{type:Boolean,required:!1}},emits:["row-click","row-dblclick","selection-change","search","clear","delete","edit","page-index","page-size","get-ref","filter"],setup(t,{expose:l,emit:o}){const i=t;let a=e.reactive({pageIndex:1,pageSize:5}),s=e.ref(),d=e.ref();const h=e.ref([]),u=e.ref([]),_=e.ref(!1),w=e.useSlots(),m=r=>{o("row-click",r)},y=r=>{o("row-click",r)},g=r=>{o("selection-change",r)},x=()=>{if(i.tableColumn.length>0)for(let r=0;r<i.tableColumn.length;r++){let c=i.tableColumn[r];a[c.prop]=null}o("clear")},B=()=>{o("search",a)},D=r=>{o("edit",r)},st=r=>{o("delete",r)},rt=r=>{for(let c=0;c<r.length;c++)a[r[c].prop]=r[c].label},dt=()=>a,ct=()=>{h.value.forEach(r=>{var c=u.value.find(k=>k.label==r.label);c&&c.filter&&(r.hidden=!c.check,r.hidden&&(a[r.prop]=null))}),_.value=!1,d.value.hide(),o("filter",()=>u.value)},pt=r=>{h.value=r,i.filter&&(u.value=[],h.value.forEach(c=>{c.filter?c.check?u.value.push({label:c.label,check:!0,prop:c.prop,filter:c.filter}):(u.value.push({label:c.label,check:!1,prop:c.prop,filter:c.filter}),c.hidden=!0):u.value.push({label:c.label,check:!0,prop:c.prop,filter:c.filter})}))};return e.watch(()=>a.pageIndex,(r,c)=>{o("page-index",Number(r),Number(c))}),e.watch(()=>a.pageSize,(r,c)=>{o("page-size",Number(r),Number(c))}),l({Assignment:rt,GetParameters:dt,SetFilter:pt}),e.onMounted(()=>{if(i.tableColumn.length>0)for(let r=0;r<i.tableColumn.length;r++){let c=i.tableColumn[r];a[c.prop]=null}i.tableData.forEach(r=>{i.defaultSelect&&i.type=="selection"&&i.defaultSelect(r)&&s.value.toggleRowSelection(r,void 0,!1)}),a.pageSize=i.defaultSize}),(r,c)=>{const k=e.resolveComponent("el-table-column"),ht=e.resolveComponent("el-input"),ut=e.resolveComponent("el-input-number"),mt=e.resolveComponent("el-option"),ft=e.resolveComponent("el-select"),b=e.resolveComponent("el-date-picker"),U=e.resolveComponent("el-time-picker"),_t=e.resolveComponent("el-switch"),S=e.resolveComponent("el-button"),zt=e.resolveComponent("el-icon"),yt=e.resolveComponent("el-checkbox"),gt=e.resolveComponent("el-popover"),xt=e.resolveComponent("el-popconfirm"),kt=e.resolveComponent("el-table"),Ct=e.resolveComponent("el-pagination");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(w).header?(e.openBlock(),e.createElementBlock("div",et,[e.renderSlot(r.$slots,"header",{},void 0,!0)])):e.createCommentVNode("v-if",!0),e.createVNode(kt,{data:t.tableData,class:e.normalizeClass([t.size&&t.size=="small"?"mini-table":"table"]),"max-height":t.maxHeight,size:t.size,stripe:t.stripe,border:t.border,"highlight-current-row":t.highLight,onRowClick:m,onRowDblclick:y,onSelectionChange:g,ref_key:"tableRef",ref:s,"header-cell-style":t.headStyle},{default:e.withCtx(()=>[t.type&&t.type=="index"?(e.openBlock(),e.createBlock(k,{key:0,align:"center",type:"index",width:t.typeWidth+"px",fixed:t.typeIsFixed?"left":!1,label:t.typeLabel},null,8,["width","fixed","label"])):e.createCommentVNode("v-if",!0),t.type=="selection"?(e.openBlock(),e.createBlock(k,{key:1,align:"center",type:"selection",width:t.typeWidth+"px",fixed:t.typeIsFixed?"left":!1},null,8,["width","fixed"])):e.createCommentVNode("v-if",!0),t.type=="expand"?(e.openBlock(),e.createBlock(k,{key:2,align:"center",type:"expand",width:t.typeWidth+"px",fixed:t.typeIsFixed?"left":!1,label:t.typeLabel},{default:e.withCtx(n=>[e.renderSlot(r.$slots,"expand",{row:n.row},void 0,!0)]),_:3},8,["width","fixed","label"])):e.createCommentVNode("v-if",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,n=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[n.hidden?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(k,{key:0,prop:n.costom?!1:n.prop,width:n.width?n.width:"","min-width":n.minWidth?n.minWidth:"",fixed:n.fixed?n.fixed:!1,align:n.align?n.align:"left","show-overflow-tooltip":!!n.overflow},e.createSlots({header:e.withCtx(()=>[e.createElementVNode("div",tt,e.toDisplayString(n.label),1),e.createCommentVNode(" \u6587\u672C\u641C\u7D22\u6846 "),n.search&&(!n.type||n.type=="text")?(e.openBlock(),e.createBlock(ht,{key:0,modelValue:e.unref(a)[n.prop],"onUpdate:modelValue":p=>e.unref(a)[n.prop]=p,size:n.size,clearable:"",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),disabled:n.disabled,placeholder:n.placeholder?n.placeholder:"\u8BF7\u8F93\u5165"+n.label,class:e.normalizeClass([n.align&&n.align=="center"?"center":""]),onKeyup:e.withKeys(B,["enter","native"])},null,8,["modelValue","onUpdate:modelValue","size","style","disabled","placeholder","class","onKeyup"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u6570\u5B57\u6846\u641C\u7D22 "),n.search&&n.type=="number"?(e.openBlock(),e.createBlock(ut,{key:1,modelValue:e.unref(a)[n.prop],"onUpdate:modelValue":p=>e.unref(a)[n.prop]=p,size:n.size,clearable:"",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),disabled:n.disabled,placeholder:n.placeholder?n.placeholder:"\u8BF7\u8F93\u5165"+n.label,class:e.normalizeClass([n.align&&n.align=="center"?"center":""]),max:n.max!=null?n.max:1/0,min:n.min!=null?n.min:-1/0,step:n.step!=null?n.step:1,onKeyup:e.withKeys(B,["enter","native"])},null,8,["modelValue","onUpdate:modelValue","size","style","disabled","placeholder","class","max","min","step","onKeyup"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u9009\u62E9\u641C\u7D22 "),n.search&&n.type=="select"?(e.openBlock(),e.createBlock(ft,{key:2,modelValue:e.unref(a)[n.prop],"onUpdate:modelValue":p=>e.unref(a)[n.prop]=p,size:n.size,clearable:"",filterable:"",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),disabled:n.disabled,multiple:n.multiple,"collapse-tags":n.omit,placeholder:n.placeholder?n.placeholder:"\u8BF7\u9009\u62E9"+n.label,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.options,p=>(e.openBlock(),e.createBlock(mt,{label:p.label?p.label:p.value,value:p.value,disabled:p.disabled},null,8,["label","value","disabled"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue","size","style","disabled","multiple","collapse-tags","placeholder","class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u65E5\u671F\u9009\u62E9 "),n.search&&n.type=="date"?(e.openBlock(),e.createBlock(b,{key:3,modelValue:e.unref(a)[n.prop],"onUpdate:modelValue":p=>e.unref(a)[n.prop]=p,type:"date",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":""),placeholder:n.placeholder?n.placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",size:n.size,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","style","placeholder","size","class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u65F6\u95F4\u9009\u62E9 "),n.search&&n.type=="time"?(e.openBlock(),e.createBlock(U,{key:4,modelValue:e.unref(a)[n.prop],"onUpdate:modelValue":p=>e.unref(a)[n.prop]=p,"arrow-control":"",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),placeholder:n.placeholder?n.placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",size:n.size,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","style","placeholder","size","class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u65E5\u671F\u65F6\u95F4\u641C\u7D22 "),n.search&&n.type=="datetime"?(e.openBlock(),e.createBlock(b,{key:5,modelValue:e.unref(a)[n.prop],"onUpdate:modelValue":p=>e.unref(a)[n.prop]=p,type:"datetime",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),placeholder:n.placeholder?n.placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F\u65F6\u95F4",size:n.size,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","style","placeholder","size","class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u65E5\u671F\u8303\u56F4\u9009\u62E9 "),n.search&&n.type=="daterange"?(e.openBlock(),e.createBlock(b,{key:6,modelValue:e.unref(a)[n.prop],"onUpdate:modelValue":p=>e.unref(a)[n.prop]=p,type:"daterange","range-separator":"-","start-placeholder":n.placeholder?n.placeholder.split("&&")[0]:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F","end-placeholder":n.placeholder?n.placeholder.split("&&")[1]:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),size:n.size,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","style","size","class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u65F6\u95F4\u8303\u56F4\u9009\u62E9 "),n.search&&n.type=="timerange"?(e.openBlock(),e.createBlock(U,{key:7,modelValue:e.unref(a)[n.prop],"onUpdate:modelValue":p=>e.unref(a)[n.prop]=p,"is-range":"","arrow-control":"","range-separator":"-","start-placeholder":n.placeholder?n.placeholder.split("&&")[0]:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4","end-placeholder":n.placeholder?n.placeholder.split("&&")[1]:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),size:n.size,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","style","size","class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u65E5\u671F\u65F6\u95F4\u8303\u56F4\u9009\u62E9 "),n.search&&n.type=="datetimerange"?(e.openBlock(),e.createBlock(b,{key:8,modelValue:e.unref(a)[n.prop],"onUpdate:modelValue":p=>e.unref(a)[n.prop]=p,type:"datetimerange","range-separator":"-","start-placeholder":n.placeholder?n.placeholder.split("&&")[0]:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F\u65F6\u95F4","end-placeholder":n.placeholder?n.placeholder.split("&&")[1]:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F\u65F6\u95F4",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),size:n.size,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","style","size","class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u5F00\u5173 "),n.search&&n.type=="switch"?(e.openBlock(),e.createBlock(_t,{key:9,modelValue:e.unref(a)[n.prop],"onUpdate:modelValue":p=>e.unref(a)[n.prop]=p,size:n.size,"active-text":n.openText,"inactive-text":n.closeText,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","size","active-text","inactive-text","class"])):e.createCommentVNode("v-if",!0)]),_:2},[n.costom?{name:"default",fn:e.withCtx(p=>[e.createElementVNode("span",{innerHTML:n.costom?n.costom(p.row):""},null,8,nt)]),key:"0"}:void 0,n.component?{name:"default",fn:e.withCtx(p=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.component),{data:p.row},null,8,["data"]))]),key:"1"}:void 0]),1032,["prop","width","min-width","fixed","align","show-overflow-tooltip"]))],64))),256)),t.operate?(e.openBlock(),e.createBlock(k,{key:3,align:"center",width:t.operateWidth?t.operateWidth:"",fixed:t.operateIsFixed?"right":!1},{header:e.withCtx(()=>[e.createElementVNode("div",lt,e.toDisplayString(t.operateLabel),1),e.renderSlot(r.$slots,"operate-front",{},void 0,!0),t.search?(e.openBlock(),e.createBlock(S,{key:0,type:"primary",size:t.operateSize,icon:e.unref(Ue),onClick:B},{default:e.withCtx(()=>[e.createTextVNode("\u641C\u7D22")]),_:1},8,["size","icon"])):e.createCommentVNode("v-if",!0),e.renderSlot(r.$slots,"operate-middle",{},void 0,!0),t.clear?(e.openBlock(),e.createBlock(S,{key:1,type:"info",size:t.operateSize,icon:e.unref(X),onClick:x},{default:e.withCtx(()=>[e.createTextVNode("\u6E05\u7A7A")]),_:1},8,["size","icon"])):e.createCommentVNode("v-if",!0),e.renderSlot(r.$slots,"operate",{},void 0,!0),t.filter?(e.openBlock(),e.createBlock(gt,{key:2,ref_key:"popover",ref:d,width:"150",trigger:"click",placement:"bottom"},{reference:e.withCtx(()=>[e.createVNode(S,{type:"link",size:t.operateSize,icon:e.unref(N),onClick:c[0]||(c[0]=n=>_.value=!_.value)},null,8,["size","icon"])]),default:e.withCtx(()=>[e.createElementVNode("h4",null,[e.createVNode(zt,null,{default:e.withCtx(()=>[e.createVNode(e.unref(N))]),_:1}),e.createTextVNode(" \u663E\u793A\u5B57\u6BB5\u7B5B\u9009 ")]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,n=>(e.openBlock(),e.createElementBlock("p",null,[e.createVNode(yt,{modelValue:n.check,"onUpdate:modelValue":p=>n.check=p,label:n.label,value:n.label,disabled:!n.filter,size:"small"},null,8,["modelValue","onUpdate:modelValue","label","value","disabled"])]))),256)),e.createVNode(S,{type:"primary",size:"small",style:{"margin-top":"10px","margin-left":"5px"},onClick:ct},{default:e.withCtx(()=>[e.createTextVNode("\u786E\u8BA4")]),_:1})]),_:1},512)):e.createCommentVNode("v-if",!0)]),default:e.withCtx(n=>[e.renderSlot(r.$slots,"row-operate-front",{row:n.row},void 0,!0),t.edit?(e.openBlock(),e.createBlock(S,{key:0,link:"",type:"primary",size:t.rowButtonSize,icon:e.unref(ke),onClick:p=>D(n.row)},{default:e.withCtx(()=>[e.createTextVNode("\u4FEE\u6539")]),_:2},1032,["size","icon","onClick"])):e.createCommentVNode("v-if",!0),e.renderSlot(r.$slots,"row-operate-middle",{row:n.row},void 0,!0),t.delete?(e.openBlock(),e.createBlock(xt,{key:1,"confirm-button-text":"\u5426","cancel-button-text":"\u662F","confirm-button-type":"text","cancel-button-type":"danger",icon:e.unref(re),width:"auto",onCancel:p=>st(n.row),title:t.deleteTitle?t.deleteTitle:"\u662F\u5426\u8981\u5220\u9664\u5F53\u524D\u884C\uFF1F"},{reference:e.withCtx(()=>[e.createVNode(S,{link:"",type:"danger",size:t.rowButtonSize,icon:e.unref(me)},{default:e.withCtx(()=>[e.createTextVNode("\u5220\u9664")]),_:1},8,["size","icon"])]),_:2},1032,["icon","onCancel","title"])):e.createCommentVNode("v-if",!0),e.renderSlot(r.$slots,"row-operate",{row:n.row},void 0,!0)]),_:3},8,["width","fixed"])):e.createCommentVNode("v-if",!0)]),_:3},8,["data","class","max-height","size","stripe","border","highlight-current-row","header-cell-style"]),e.createElementVNode("div",at,[t.pagination?(e.openBlock(),e.createBlock(Ct,{key:0,"current-page":e.unref(a).pageIndex,"onUpdate:current-page":c[1]||(c[1]=n=>e.unref(a).pageIndex=n),"page-size":e.unref(a).pageSize,"onUpdate:page-size":c[2]||(c[2]=n=>e.unref(a).pageSize=n),small:t.small,"hide-on-Single-page":t.hideOnSinglePage,background:"",layout:"prev, pager, next, total, jumper, sizes","page-sizes":[5,10,20,50],total:t.total,class:"mt-4"},null,8,["current-page","page-size","small","hide-on-Single-page","total"])):e.createCommentVNode("v-if",!0)])],64)}}}),Nt="",L=C(ot,[["__scopeId","data-v-f4c855de"],["__file","D:/Code/front/dld-vue-ui/src/packages/TableForm/index.vue"]]),it={install:t=>{t.component("SplitPanes",V),t.component("Pane",E),t.component("UpLoadFile",$),t.component("Layout",q),t.component("TableForm",L),t.component("UpLoadFiles",M)}};f.Layout=q,f.Pane=E,f.SplitPanes=V,f.TableForm=L,f.UpLoadFile=$,f.UpLoadFiles=M,f.default=it,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(c,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(c=typeof globalThis<"u"?globalThis:c||self,e(c["dld-vue-ui"]={},c.Vue))})(this,function(c,e){"use strict";function y(a,r,n){return r.default==null||r.default.toString()==""?n(new Error(r.label+"不能为空")):n()}/*! Element Plus Icons Vue v2.3.1 */var b=e.defineComponent({name:"Check",__name:"check",setup(a){return(r,n)=>(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"})]))}}),g=b,w=e.defineComponent({name:"Close",__name:"close",setup(a){return(r,n)=>(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"})]))}}),k=w,B=e.defineComponent({name:"FullScreen",__name:"full-screen",setup(a){return(r,n)=>(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"})]))}}),C=B,x=e.defineComponent({name:"Minus",__name:"minus",setup(a){return(r,n)=>(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"})]))}}),N=x;const P="",U=(a,r)=>{const n=a.__vccOpts||a;for(const[o,i]of r)n[o]=i;return n},S={class:"dialog"},z=["innerHTML"],E={class:"form"},f=!0,M=U({__name:"index",props:e.mergeModels({title:{type:String,default:"弹出框"},width:{type:String,default:"500px"},fullscreen:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},buttonSize:{type:String,default:"default"},loading:{type:Boolean,default:!1},rules:{type:Object,default:{}},formSize:{type:String,default:"default"},lableWidth:{type:String,default:"120px"}},{form:{default:{}},formModifiers:{}}),emits:e.mergeModels(["close","submit"],["update:form"]),setup(a,{emit:r}){const n=r,o=e.useModel(a,"form"),i=e.ref(!1),_=e.ref();function h(){n("close")}function T(){_.value.validate(p=>{p&&n("submit")})}return(p,s)=>{const L=e.resolveComponent("el-icon"),F=e.resolveComponent("el-input"),D=e.resolveComponent("el-input-number"),H=e.resolveComponent("el-option"),I=e.resolveComponent("el-select"),m=e.resolveComponent("el-date-picker"),u=e.resolveComponent("el-time-picker"),O=e.resolveComponent("el-switch"),$=e.resolveComponent("el-form-item"),R=e.resolveComponent("el-form"),V=e.resolveComponent("el-button"),W=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",S,[e.createVNode(W,{modelValue:f,"onUpdate:modelValue":s[1]||(s[1]=l=>f=l),width:a.width,fullscreen:i.value,"close-on-click-modal":!1,"close-on-press-escape":!1,draggable:a.draggable,onClose:h,overflow:""},e.createSlots({header:e.withCtx(()=>[e.createElementVNode("span",{innerHTML:a.title},null,8,z),a.fullscreen?(e.openBlock(),e.createBlock(L,{key:0,class:"fullscreen",onClick:s[0]||(s[0]=l=>i.value=!i.value)},{default:e.withCtx(()=>[i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(C),{key:0})),i.value?(e.openBlock(),e.createBlock(e.unref(N),{key:1})):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.renderSlot(p.$slots,"header",{},void 0,!0),e.createElementVNode("div",E,[e.createVNode(R,{model:o.value,rules:a.rules,ref_key:"formRef",ref:_,inline:!0,"label-width":a.lableWidth,size:a.formSize},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(l,d,q)=>(e.openBlock(),e.createBlock($,{key:q,label:l.label,prop:d,style:e.normalizeStyle("width:"+(l.width?l.width:"90%"))},{default:e.withCtx(()=>[!l.type||l.type=="text"?(e.openBlock(),e.createBlock(F,{key:0,modelValue:o.value[d].default,"onUpdate:modelValue":t=>o.value[d].default=t,clearable:"",disabled:l.disabled,readonly:l.readonly,placeholder:l.placeholder?l.placeholder:"请输入"+l.label,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","disabled","readonly","placeholder"])):e.createCommentVNode("",!0),l.type=="number"?(e.openBlock(),e.createBlock(D,{key:1,modelValue:o.value[d].default,"onUpdate:modelValue":t=>o.value[d].default=t,clearable:"",disabled:l.disabled,readonly:l.readonly,style:{width:"100%"},placeholder:l.placeholder?l.placeholder:"请输入"+l.label,max:l.max!=null?l.max:1/0,min:l.min!=null?l.min:-1/0,step:l.step!=null?l.step:1},null,8,["modelValue","onUpdate:modelValue","disabled","readonly","placeholder","max","min","step"])):e.createCommentVNode("",!0),l.type=="select"?(e.openBlock(),e.createBlock(I,{key:2,modelValue:o.value[d].default,"onUpdate:modelValue":t=>o.value[d].default=t,clearable:"",filterable:"",disabled:l.disabled,multiple:l.multiple,"collapse-tags":l.omit,placeholder:l.placeholder?l.placeholder:"请选择"+l.label,style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.options,t=>(e.openBlock(),e.createBlock(H,{label:t.label?t.label:t.value,value:t.value,disabled:t.disabled},null,8,["label","value","disabled"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","multiple","collapse-tags","placeholder"])):e.createCommentVNode("",!0),l.type=="date"?(e.openBlock(),e.createBlock(m,{key:3,modelValue:o.value[d].default,"onUpdate:modelValue":t=>o.value[d].default=t,type:"date",placeholder:l.placeholder?l.placeholder:"请选择日期",disabled:l.disabled,readonly:l.readonly,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled","readonly"])):e.createCommentVNode("",!0),l.type=="time"?(e.openBlock(),e.createBlock(u,{key:4,modelValue:o.value[d].default,"onUpdate:modelValue":t=>o.value[d].default=t,"arrow-control":"",placeholder:l.placeholder?l.placeholder:"请选择时间",disabled:l.disabled,readonly:l.readonly,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled","readonly"])):e.createCommentVNode("",!0),l.type=="datetime"?(e.openBlock(),e.createBlock(m,{key:5,modelValue:o.value[d].default,"onUpdate:modelValue":t=>o.value[d].default=t,type:"datetime",placeholder:l.placeholder?l.placeholder:"请选择日期时间",disabled:l.disabled,readonly:l.readonly,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled","readonly"])):e.createCommentVNode("",!0),l.type=="daterange"?(e.openBlock(),e.createBlock(m,{key:6,modelValue:o.value[d].default,"onUpdate:modelValue":t=>o.value[d].default=t,type:"daterange","range-separator":"-","start-placeholder":l.placeholder?l.placeholder.split("&&")[0]:"请选择开始日期","end-placeholder":l.placeholder?l.placeholder.split("&&")[1]:"请选择结束日期",disabled:l.disabled,readonly:l.readonly,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","disabled","readonly"])):e.createCommentVNode("",!0),l.type=="timerange"?(e.openBlock(),e.createBlock(u,{key:7,modelValue:o.value[d].default,"onUpdate:modelValue":t=>o.value[d].default=t,"is-range":"","arrow-control":"","range-separator":"-","start-placeholder":l.placeholder?l.placeholder.split("&&")[0]:"请选择开始时间","end-placeholder":l.placeholder?l.placeholder.split("&&")[1]:"请选择结束时间",disabled:l.disabled,readonly:l.readonly,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","disabled","readonly"])):e.createCommentVNode("",!0),l.type=="datetimerange"?(e.openBlock(),e.createBlock(m,{key:8,modelValue:o.value[d].default,"onUpdate:modelValue":t=>o.value[d].default=t,type:"datetimerange","range-separator":"-","start-placeholder":l.placeholder?l.placeholder.split("&&")[0]:"请选择开始日期时间","end-placeholder":l.placeholder?l.placeholder.split("&&")[1]:"请选择结束日期时间",disabled:l.disabled,readonly:l.readonly,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","disabled","readonly"])):e.createCommentVNode("",!0),l.type=="switch"?(e.openBlock(),e.createBlock(O,{key:9,modelValue:o.value[d].default,"onUpdate:modelValue":t=>o.value[d].default=t,"active-text":l.openText,"inactive-text":l.closeText,disabled:l.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(p.$slots,"footer",{},void 0,!0)]),_:2},[a.footer?{name:"footer",fn:e.withCtx(()=>[e.createVNode(V,{type:"primary",size:a.buttonSize,icon:e.unref(g),class:"btn",loading:a.loading,onClick:T},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.loading?"提交中":"提交"),1)]),_:1},8,["size","icon","loading"]),e.createVNode(V,{type:"info",size:a.buttonSize,icon:e.unref(k),class:"btn",onClick:h},{default:e.withCtx(()=>s[2]||(s[2]=[e.createTextVNode("取消")])),_:1,__:[2]},8,["size","icon"])]),key:"0"}:void 0]),1032,["width","fullscreen","draggable"])])}}},[["__scopeId","data-v-c1bd2f2e"]]);c.DvDialog=M,c.FormValidate=y,Object.defineProperty(c,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 *{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 .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-4226b5d2] .splitpanes__splitter{min-width:4px;min-height:4px}.fileupload[data-v-83b9cdd7]{overflow-x:auto}.btn[data-v-83b9cdd7]{margin-left:5px;margin-right:5px}.filename[data-v-83b9cdd7]{font-size:12px;text-indent:1em}.filename[data-v-83b9cdd7]:hover{background:rgb(228,228,228)}.filename[data-v-50d3310f]{width:100%;height:22px;font-size:13px;position:relative}.filename[data-v-50d3310f]:hover{background:rgb(245,245,245)}.filename .content[data-v-50d3310f]{position:absolute;left:0px;top:3px;text-indent:1em}.filename .operation[data-v-50d3310f]{position:absolute;right:5px;top:3px}.container[data-v-5d747d9d]{height:100%;background:rgb(241,241,241)}.container .aside[data-v-5d747d9d]{height:100%;background:#fff;margin-right:4px;transition:width .3s linear}.container .aside[data-v-5d747d9d]::-webkit-scrollbar{height:7px;width:7px}.container .aside[data-v-5d747d9d]::-webkit-scrollbar-thumb{border-radius:4px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);background:#b6dcfd}.container .aside[data-v-5d747d9d]::-webkit-scrollbar-track{-webkit-box-shadow:0;border-radius:0;background:#f6f8ff}.container .main[data-v-5d747d9d]{height:100%;padding:0;margin-left:0}.container .main .inside_container[data-v-5d747d9d]{height:100%;margin-left:0}.container .main .inside_container .inside_header[data-v-5d747d9d]{padding:5px;background:#fff;margin-bottom:2px}.container .main .inside_container .inside_main[data-v-5d747d9d]{padding:0;background:#fff}.container .main .inside_container .inside_main[data-v-5d747d9d]::-webkit-scrollbar{height:7px;width:7px}.container .main .inside_container .inside_main[data-v-5d747d9d]::-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-5d747d9d]::-webkit-scrollbar-track{-webkit-box-shadow:0;border-radius:0;background:#f6f8ff}.header[data-v-f4c855de]{text-align:right;margin-bottom:2px}.center[data-v-f4c855de] .el-input__inner,.center[data-v-f4c855de] .el-select__placeholder{text-align:center}.table[data-v-f4c855de] .el-table__cell{padding:4px 0}.mini-table[data-v-f4c855de] .el-table__cell{padding:2px 0}.pagination[data-v-f4c855de]{display:flex;justify-content:flex-end;margin-top:2px}
1
+ .form[data-v-c1bd2f2e]{margin-top:20px;margin-bottom:10px}.form[data-v-c1bd2f2e] .el-form-item__label{display:block!important;text-align:right}.dialog[data-v-c1bd2f2e]{border-radius:10px}.dialog[data-v-c1bd2f2e] .el-dialog__header{padding:10px;position:relative}.dialog[data-v-c1bd2f2e] .el-dialog__header .fullscreen{width:50px;height:50px;position:absolute;right:50px;top:-1px;cursor:pointer;color:#4d4d4d;font-size:16px}.dialog[data-v-c1bd2f2e] .el-dialog__header .fullscreen:hover{color:#409eff}.dialog[data-v-c1bd2f2e] .el-dialog__header :deep(.el-dialog__body){padding:15px}.dialog[data-v-c1bd2f2e] .el-dialog__header .btn{margin-left:10px;margin-right:10px}
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/package.json CHANGED
@@ -1,17 +1,15 @@
1
1
  {
2
2
  "name": "dld-vue-ui",
3
3
  "private": false,
4
- "version": "1.0.7",
4
+ "version": "1.1.1",
5
5
  "type": "module",
6
6
  "main": "./dist/dld-vue-ui.umd.js",
7
7
  "module": "./dist/dld-vue-ui.js",
8
- "types": "./dist/packages/index.d.ts",
9
8
  "license": "MIT",
10
9
  "exports": {
11
10
  ".": {
12
11
  "import": "./dist/dld-vue-ui.js",
13
- "require": "./dist/dld-vue-ui.umd.js",
14
- "types": "./dist/packages/index.d.ts"
12
+ "require": "./dist/dld-vue-ui.umd.js"
15
13
  },
16
14
  "./dist/style.css": {
17
15
  "import": "./dist/style.css",
@@ -25,8 +23,8 @@
25
23
  ],
26
24
  "scripts": {
27
25
  "dev": "vite --mode development",
28
- "build": "vue-tsc --noEmit && vite build --mode production",
29
- "pub": "vue-tsc --noEmit && vite build --mode publish",
26
+ "build": "vite build --mode production",
27
+ "pub": "vite build --mode publish",
30
28
  "preview": "vite preview"
31
29
  },
32
30
  "dependencies": {
@@ -34,27 +32,25 @@
34
32
  "@element-plus/icons-vue": "^2.0.10",
35
33
  "@jiaminghi/data-view": "^2.10.0",
36
34
  "less": "^4.2.0",
37
- "vue": "^3.2.41",
38
- "vue-router": "^4.1.6"
35
+ "vue": "^3.4.10"
39
36
  },
40
37
  "devDependencies": {
41
38
  "@dataview/datav-vue3": "^0.0.0-test.1672506674342",
39
+ "@element-plus/icons-vue": "^2.3.1",
42
40
  "@highlightjs/vue-plugin": "^2.1.0",
43
41
  "@jiaminghi/data-view": "^2.10.0",
44
- "@types/node": "^18.11.10",
45
42
  "@types/splitpanes": "^2.2.1",
46
- "@vitejs/plugin-vue": "^3.2.0",
43
+ "@vitejs/plugin-vue": "^4.0.0",
47
44
  "axios": "^1.2.0",
48
- "element-plus": "^2.2.26",
49
- "guid-typescript": "^1.0.9",
45
+ "element-plus": "^2.10.4",
50
46
  "highlight.js": "^11.7.0",
51
47
  "less": "^4.2.0",
52
48
  "sass": "^1.56.1",
53
49
  "splitpanes": "^3.1.5",
54
50
  "terser": "^5.16.1",
55
- "typescript": "^4.6.4",
56
- "vite": "^3.2.3",
51
+ "vite": "^4.1.0",
57
52
  "vite-plugin-dts": "^1.7.1",
58
- "vue-tsc": "^1.0.9"
53
+ "vue-cli": "latest",
54
+ "vue-router": "^4.1.6"
59
55
  }
60
- }
56
+ }
@@ -1,42 +0,0 @@
1
- declare const _sfc_main: import("vue").DefineComponent<{
2
- asideWidth: {
3
- type: NumberConstructor;
4
- required: false;
5
- default: number;
6
- };
7
- headerMaxHeight: {
8
- type: NumberConstructor;
9
- required: false;
10
- default: number;
11
- };
12
- horizontal: {
13
- type: BooleanConstructor;
14
- required: false;
15
- default: boolean;
16
- };
17
- }, {
18
- slots: Readonly<{
19
- [name: string]: import("vue").Slot | undefined;
20
- }>;
21
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
- asideWidth: {
23
- type: NumberConstructor;
24
- required: false;
25
- default: number;
26
- };
27
- headerMaxHeight: {
28
- type: NumberConstructor;
29
- required: false;
30
- default: number;
31
- };
32
- horizontal: {
33
- type: BooleanConstructor;
34
- required: false;
35
- default: boolean;
36
- };
37
- }>>, {
38
- horizontal: boolean;
39
- asideWidth: number;
40
- headerMaxHeight: number;
41
- }>;
42
- export default _sfc_main;
@@ -1,3 +0,0 @@
1
- import SplitPanes from './index.vue';
2
- import Pane from './pane.vue';
3
- export { SplitPanes, Pane };
@@ -1,36 +0,0 @@
1
- import { Splitpanes } from 'splitpanes';
2
- declare const _sfc_main: import("vue").DefineComponent<{
3
- styles: {
4
- type: ObjectConstructor;
5
- required: false;
6
- default: () => {
7
- width: string;
8
- height: string;
9
- };
10
- };
11
- horizontal: {
12
- type: BooleanConstructor;
13
- required: false;
14
- default: boolean;
15
- };
16
- }, {
17
- readonly Splitpanes: Splitpanes;
18
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
- styles: {
20
- type: ObjectConstructor;
21
- required: false;
22
- default: () => {
23
- width: string;
24
- height: string;
25
- };
26
- };
27
- horizontal: {
28
- type: BooleanConstructor;
29
- required: false;
30
- default: boolean;
31
- };
32
- }>>, {
33
- styles: Record<string, any>;
34
- horizontal: boolean;
35
- }>;
36
- export default _sfc_main;
@@ -1,23 +0,0 @@
1
- import { Pane } from 'splitpanes';
2
- declare const _sfc_main: import("vue").DefineComponent<{
3
- styles: {
4
- type: ObjectConstructor;
5
- required: true;
6
- default: () => {
7
- background: string;
8
- };
9
- };
10
- }, {
11
- readonly Pane: Pane;
12
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
- styles: {
14
- type: ObjectConstructor;
15
- required: true;
16
- default: () => {
17
- background: string;
18
- };
19
- };
20
- }>>, {
21
- styles: Record<string, any>;
22
- }>;
23
- export default _sfc_main;
@@ -1,148 +0,0 @@
1
- import { Component } from "vue";
2
- export interface ITableColumn {
3
- /**
4
- * 列绑定的字段
5
- */
6
- prop: string;
7
- /**
8
- * 列的名称
9
- */
10
- label: string;
11
- /**
12
- * 列宽
13
- */
14
- width?: number | string;
15
- /**
16
- * 最小列宽
17
- */
18
- minWidth?: number | string;
19
- /**
20
- * 是否固定
21
- */
22
- fixed?: 'left' | 'right';
23
- /**
24
- * 对齐方式
25
- */
26
- align?: 'left' | 'center' | 'right';
27
- /**
28
- * 是否支持搜索
29
- */
30
- search?: boolean;
31
- /**
32
- * 禁用搜索框
33
- */
34
- disabled?: boolean;
35
- /**
36
- * 搜索框大小
37
- */
38
- size?: 'large' | 'default' | 'small';
39
- /**
40
- * 搜索框的宽度
41
- */
42
- searchWidth?: number;
43
- /**
44
- * 自定义搜索提示,多项用&&分割
45
- */
46
- placeholder?: string;
47
- /**
48
- * 搜索框类型
49
- */
50
- type?: 'text' | 'select' | 'number' | 'date' | 'datetime' | 'time' | 'daterange' | 'timerange' | 'datetimerange' | 'switch';
51
- /**
52
- * 搜索框的下拉列表,type='select'有效
53
- */
54
- options?: IOptions[];
55
- /**
56
- * 是否支持多选
57
- */
58
- multiple?: boolean;
59
- /**
60
- * 多选时省略
61
- */
62
- omit?: boolean;
63
- /**
64
- * 开关关闭文字
65
- */
66
- closeText?: string;
67
- /**
68
- * 开关打开文字
69
- */
70
- openText?: string;
71
- /**
72
- * 数字框的最大值
73
- */
74
- max?: number;
75
- /**
76
- * 数字框的最小值
77
- */
78
- min?: number;
79
- /**
80
- * 数字框步长
81
- */
82
- step?: number;
83
- /**
84
- * 自定义
85
- */
86
- costom?: (val: ITableData) => string;
87
- /**
88
- * 表格内容溢出
89
- */
90
- overflow?: boolean;
91
- /**
92
- * 是否隐藏列
93
- */
94
- hidden?: boolean;
95
- /**
96
- * 组件
97
- */
98
- component?: Component;
99
- /**
100
- * 允许筛选
101
- */
102
- filter?: boolean;
103
- /**
104
- * 是否默认选中
105
- */
106
- check?: boolean;
107
- }
108
- /**
109
- * 表单格式
110
- */
111
- export interface ITableData {
112
- [name: string]: unknown;
113
- }
114
- /**
115
- * 下拉框选项
116
- */
117
- export interface IOptions {
118
- /**
119
- * 显示文本
120
- */
121
- label?: string;
122
- /**
123
- * 选择的值
124
- */
125
- value: string | number | boolean;
126
- /**
127
- * 是否禁用
128
- */
129
- disabled?: boolean;
130
- }
131
- export interface ICheck {
132
- /**
133
- * 选项值
134
- */
135
- label: string;
136
- /**
137
- * 菜单字段
138
- */
139
- prop: string;
140
- /**
141
- * 是否选中
142
- */
143
- check: boolean;
144
- /**
145
- * 是否可筛选
146
- */
147
- filter: boolean | undefined;
148
- }