vxe-pc-ui 4.9.0 → 4.9.2
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.
- package/es/icon/style.css +1 -1
- package/es/modal/src/modal.js +5 -2
- package/es/split/src/split-pane.js +3 -3
- package/es/split/src/split.js +244 -141
- package/es/split/style.css +82 -45
- package/es/split/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tabs/src/tabs.js +6 -3
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/upload/src/upload.js +7 -2
- package/es/vxe-split/style.css +82 -45
- package/es/vxe-split/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +270 -166
- package/lib/index.umd.min.js +1 -1
- package/lib/modal/src/modal.js +5 -2
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/split/src/split-pane.js +3 -3
- package/lib/split/src/split-pane.min.js +1 -1
- package/lib/split/src/split.js +247 -154
- package/lib/split/src/split.min.js +1 -1
- package/lib/split/style/style.css +82 -45
- package/lib/split/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/tabs/src/tabs.js +6 -3
- package/lib/tabs/src/tabs.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/upload/src/upload.js +7 -2
- package/lib/upload/src/upload.min.js +1 -1
- package/lib/vxe-split/style/style.css +82 -45
- package/lib/vxe-split/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/modal/src/modal.ts +6 -2
- package/packages/split/src/split-pane.ts +4 -3
- package/packages/split/src/split.ts +243 -142
- package/packages/tabs/src/tabs.ts +7 -3
- package/packages/upload/src/upload.ts +8 -2
- package/styles/components/split.scss +109 -88
- package/types/components/split-pane.d.ts +11 -2
- package/types/components/split.d.ts +26 -22
- /package/es/icon/{iconfont.1756083805751.ttf → iconfont.1756133787659.ttf} +0 -0
- /package/es/icon/{iconfont.1756083805751.woff → iconfont.1756133787659.woff} +0 -0
- /package/es/icon/{iconfont.1756083805751.woff2 → iconfont.1756133787659.woff2} +0 -0
- /package/es/{iconfont.1756083805751.ttf → iconfont.1756133787659.ttf} +0 -0
- /package/es/{iconfont.1756083805751.woff → iconfont.1756133787659.woff} +0 -0
- /package/es/{iconfont.1756083805751.woff2 → iconfont.1756133787659.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1756083805751.ttf → iconfont.1756133787659.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1756083805751.woff → iconfont.1756133787659.woff} +0 -0
- /package/lib/icon/style/{iconfont.1756083805751.woff2 → iconfont.1756133787659.woff2} +0 -0
- /package/lib/{iconfont.1756083805751.ttf → iconfont.1756133787659.ttf} +0 -0
- /package/lib/{iconfont.1756083805751.woff → iconfont.1756133787659.woff} +0 -0
- /package/lib/{iconfont.1756083805751.woff2 → iconfont.1756133787659.woff2} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vue=require("vue"),_comp=require("../../ui/src/comp"),_ui=require("../../ui"),_vn=require("../../ui/src/vn"),_dom=require("../../ui/src/dom"),_utils=require("../../ui/src/utils"),_log=require("../../ui/src/log"),_xeUtils=_interopRequireDefault(require("xe-utils"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=exports.default=(0,_comp.defineVxeComponent)({name:"VxeSplit",props:{width:[Number,String],height:[Number,String],vertical:{type:Boolean,default:()=>(0,_ui.getConfig)().split.vertical},border:{type:Boolean,default:()=>(0,_ui.getConfig)().split.border},padding:{type:Boolean,default:()=>(0,_ui.getConfig)().split.padding},resize:{type:Boolean,default:()=>(0,_ui.getConfig)().split.resize},items:Array,itemConfig:Object,barConfig:Object,resizeConfig:Object,actionConfig:Object},emits:["action-dblclick","action-click","toggle-expand","resize-start","resize-drag","resize-end"],setup(h,e){const{emit:s,slots:o}=e;var t=_xeUtils.default.uniqueId();const c=(0,_vue.ref)(),a=(0,_vue.ref)(),D=(0,_vue.reactive)({staticItems:[],itemList:[]}),m={wrapperWidth:0,wrapperHeight:0},j=(0,_vue.computed)(()=>Object.assign({},(0,_ui.getConfig)().split.itemConfig,h.itemConfig)),l=(0,_vue.computed)(()=>Object.assign({},(0,_ui.getConfig)().split.barConfig,h.barConfig)),d=(0,_vue.computed)(()=>Object.assign({},(0,_ui.getConfig)().split.resizeConfig,h.resizeConfig)),u=(0,_vue.computed)(()=>Object.assign({},(0,_ui.getConfig)().split.actionConfig,h.actionConfig)),R=(0,_vue.computed)(()=>{return"next"===u.value.direction}),f=(0,_vue.computed)(()=>D.itemList.filter(e=>e.isVisible)),p=(0,_vue.computed)(()=>{var e=h["vertical"];const r=[];let o=0,a=0;return D.itemList.forEach(e?e=>{var{renderHeight:t,resizeHeight:i,foldHeight:s,isVisible:l,height:n}=e,l=l?s||i||t:0;n||r.push(e),o+=l}:e=>{var{renderWidth:t,resizeWidth:i,foldWidth:s,isVisible:l,width:n}=e,l=l?s||i||t:0;n||r.push(e),a+=l}),{autoItems:r,heightCount:o,heightRatio:o/100,widthCount:a,widthRatio:a/100}}),g=(0,_vue.computed)(()=>{var{width:e,height:t}=l.value,i={};return t&&(i.height=(0,_dom.toCssUnit)(t)),e&&(i.width=(0,_dom.toCssUnit)(e)),i}),i={computeItemOpts:j,computeBarOpts:l,computeActionOpts:u,computeIsFoldNext:R},n={refElem:c},W={xID:t,props:h,context:e,reactData:D,internalData:m,getRefMaps:()=>n,getComputeMaps:()=>i},B=(e,t,i)=>{s(e,(0,_ui.createEvent)(i,{$split:W},t))},I=(e,t)=>e&&(_xeUtils.default.isString(e)&&(e=o[e]||null),_xeUtils.default.isFunction(e))?(0,_vn.getSlotVNs)(e(t)):[];const r=(e,t)=>{var i=D["staticItems"];const s={isVisible:!0,isExpand:!0,renderWidth:0,resizeWidth:0,foldWidth:0,renderHeight:0,resizeHeight:0,foldHeight:0};return D.itemList=e.map(e=>(e.slots&&_xeUtils.default.each(e.slots,e=>{_xeUtils.default.isFunction(e)||o[e]||(0,_log.errLog)("vxe.error.notSlot",[e])}),Object.assign({},t?null:s,e,t?s:null,{id:_xeUtils.default.uniqueId()}))),i.length&&(0,_log.errLog)("vxe.error.errConflicts",["<vxe-split-pane ...>","items"]),G()},v=e=>r(e||[],!1);const G=()=>(0,_vue.nextTick)().then(()=>{var e=h["vertical"],t=D["itemList"],i=c.value;if(i){const l=i.clientWidth,n=i.clientHeight;if(l&&n){i=j.value;const r=_xeUtils.default.toNumber(i.minWidth),o=_xeUtils.default.toNumber(i.minHeight),a=[];if(e){let s=0;if(t.forEach(e=>{var t=e["height"];let i=0;t?(i=(0,_dom.isScale)(t)?n*_xeUtils.default.toNumber(t)/100:_xeUtils.default.toNumber(t),e.renderHeight=i):a.push(e),s+=i}),a.length){const d=(n-s)/a.length;a.forEach(e=>{e.renderHeight=Math.max(_xeUtils.default.toNumber((0,_utils.getGlobalDefaultConfig)(e.minHeight,o)),d)})}}else{let s=0;if(t.forEach(e=>{var t=e["width"];let i=0;t?(i=(0,_dom.isScale)(t)?l*_xeUtils.default.toNumber(t)/100:_xeUtils.default.toNumber(t),e.renderWidth=i):a.push(e),s+=i}),a.length){const u=(l-s)/a.length;a.forEach(e=>{e.renderWidth=Math.max(_xeUtils.default.toNumber((0,_utils.getGlobalDefaultConfig)(e.minWidth,r)),u)})}}m.wrapperWidth=l,m.wrapperHeight=n}}}),_=e=>{const{resize:t,vertical:m}=h;var i=D["itemList"];if(t){e.preventDefault();var s=e.currentTarget,l=s.parentElement;const _=c.value;if(_){const n=l.getAttribute("itemid");l=_xeUtils.default.findIndexOf(i,e=>e.id===n);const x=i[l];if(x&&x.isExpand){const b=_.getBoundingClientRect();s=s.getBoundingClientRect();const C=a.value,z=C?C.children[0]:null;var f=R.value,p=j.value;const y=d.value["immediate"];var g=_xeUtils.default.toNumber(p.minWidth),p=_xeUtils.default.toNumber(p.minHeight),v=i[l+(f?1:-1)];const H=i[l+(f?0:-1)],U=i[l+(f?1:0)],W=v?_.querySelector(`.vxe-split-pane[itemid="${H.id}"]`):null,I=x?_.querySelector(`.vxe-split-pane[itemid="${U.id}"]`):null;if(W&&I){i=Math.ceil(s.width-(e.clientX-s.left)),l=Math.ceil(e.clientY-s.top);const E=W.offsetWidth,w=I.offsetWidth;f=_xeUtils.default.toNumber(H?(0,_utils.getGlobalDefaultConfig)(H.minWidth,g):g),v=_xeUtils.default.toNumber(U?(0,_utils.getGlobalDefaultConfig)(U.minWidth,g):g);const N=W.offsetLeft+f-i,O=I.offsetLeft+I.offsetWidth-v-i,T=e.clientX-b.left;let n=-1,r=0,o=0,a=T;const L=W.offsetHeight,M=I.offsetHeight;s=_xeUtils.default.toNumber(H?(0,_utils.getGlobalDefaultConfig)(H.minHeight,p):p),g=_xeUtils.default.toNumber(U?(0,_utils.getGlobalDefaultConfig)(U.minHeight,p):p);const k=W.offsetTop+s+l,V=I.offsetTop+I.offsetHeight-g+l,S=e.clientY-b.top;let d=-1,u=0,h=0,c=S;const q=i=>{if(C){var s=z?z.children[0]:null,l=z?z.children[1]:null;if(m){let e=0,t=(s&&(d<0?s.style.display="none":(s.textContent=Math.floor(u)+"px",s.style.display="block",e=s.offsetWidth)),l&&(d<0?(l.textContent=Math.floor(h)+"px",l.style.display="block",e=l.offsetWidth):l.style.display="none"),Math.max(1,i.clientX-b.left-e/2));t>b.width-e-1&&(t=b.width-e-1),C.style.left="0",C.style.top=c+"px",z&&(z.style.left=t+"px")}else{let e=0,t=(s&&(n<0?s.style.display="none":(s.textContent=Math.floor(r)+"px",s.style.display="block",e=s.offsetHeight)),l&&(n<0?(l.textContent=Math.floor(o)+"px",l.style.display="block",e=l.offsetHeight):l.style.display="none"),Math.max(1,i.clientY-b.top-e/2));t>b.height-e-1&&(t=b.height-e-1),C.style.top="0",C.style.left=a+"px",z&&(z.style.top=t+"px")}}},A=e=>{m?((c=(c=e.clientY-b.top)<k?k:c)>V&&(c=V),d=c-S,u=L+d,h=M-d):((a=(a=e.clientX-b.left)<N?N:a)>O&&(a=O),n=a-T,r=E+n,o=w-n),y&&(m?(W.style.height=(0,_dom.toCssUnit)(u),I.style.height=(0,_dom.toCssUnit)(h)):(W.style.width=(0,_dom.toCssUnit)(r),I.style.width=(0,_dom.toCssUnit)(o))),C&&q(e),B("resize-drag",{item:x,name:x.name,prevItem:H,nextItem:U,offsetHeight:d,offsetWidth:n},e)};document.onmousemove=e=>{e.preventDefault(),A(e)},document.onmouseup=e=>{document.onmousemove=null,document.onmouseup=null,C&&(C.style.display=""),m?(H.resizeHeight=u,U.resizeHeight=h):(H.resizeWidth=r,U.resizeWidth=o),(0,_dom.removeClass)(_,"is--drag"),B("resize-end",{item:x,name:x.name,prevItem:H,nextItem:U,offsetHeight:d,offsetWidth:n},e),G()},C&&(C.style.display="block",q(e)),A(e),(0,_dom.addClass)(_,"is--drag"),B("resize-start",{item:x,name:x.name,prevItem:H,nextItem:U},e)}}}}},x=e=>{if(c.value){var t=h["vertical"],i=D["itemList"],s=R.value;const r=e.currentTarget.parentElement.getAttribute("itemid");var l=_xeUtils.default.findIndexOf(i,e=>e.id===r),n=i[l],i=i[l+(s?1:-1)];n&&({showAction:l,isExpand:s}=n,l)&&(t?i&&(i.isVisible=!s,i.foldHeight=0,n.isExpand=!s,n.isVisible=!0,n.foldHeight=s?(i.resizeHeight||i.renderHeight)+(n.resizeHeight||n.renderHeight):0):i&&(i.isVisible=!s,i.foldWidth=0,n.isExpand=!s,n.isVisible=!0,n.foldWidth=s?(i.resizeWidth||i.renderWidth)+(n.resizeWidth||n.renderWidth):0),B("toggle-expand",{item:n,name:n.name,targetItem:i,targetName:i?i.name:"",expanded:n.isExpand},e),G())}},b=e=>{var t=D["itemList"],i=u.value;const s=e.currentTarget.parentElement.getAttribute("itemid");t=t[_xeUtils.default.findIndexOf(t,e=>e.id===s)];"dblclick"===i.trigger&&x(e),B("action-dblclick",{item:t,name:t?t.name:""},e)},C=e=>{var t=D["itemList"],i=u.value;const s=e.currentTarget.parentElement.getAttribute("itemid");t=t[_xeUtils.default.findIndexOf(t,e=>e.id===s)];"dblclick"!==i.trigger&&x(e),B("action-click",{item:t,name:t?t.name:""},e)},z=()=>{G()};t={dispatchEvent:B,recalculate:G,reset:()=>{var e=D["itemList"];return e.forEach(e=>{e.isExpand=!0,e.isVisible=!0,e.foldHeight=0,e.foldWidth=0,e.resizeHeight=0,e.resizeWidth=0}),(0,_vue.nextTick)()},loadItem:v,reloadItem:e=>r(e||[],!0)};Object.assign(W,t,{});const E=e=>{var t=g.value,i=u.value,s=R.value,{id:l,isExpand:n,showAction:r}=e;return(0,_vue.h)("div",{itemid:l,class:["vxe-split-pane-handle",s?"to--next":"to--prev"]},[(0,_vue.h)("div",{class:"vxe-split-pane-handle-bar",style:t,onMousedown:_}),r?(0,_vue.h)("span",{class:"vxe-split-pane-action-btn",onDblclick:b,onClick:C},[(0,_vue.h)("i",{class:(n?i.openIcon:i.closeIcon)||(e=>{var t=h["vertical"],{showAction:e,isExpand:i}=e,s=R.value,l="SPLIT_TOP_ACTION",n="SPLIT_BOTTOM_ACTION",r="SPLIT_LEFT_ACTION",o="SPLIT_RIGHT_ACTION";if(e){let e="";if(e=s?t?i?n:l:i?o:r:t?i?l:n:i?r:o)return(0,_ui.getIcon)()[e]}return""})(e)})]):(0,_ui.renderEmptyElement)(W)])};const y=(0,_vue.ref)(0);(0,_vue.watch)(()=>h.items?h.items.length:-1,()=>{y.value++}),(0,_vue.watch)(()=>h.items,()=>{y.value++}),(0,_vue.watch)(y,()=>{v(h.items||[])}),(0,_vue.watch)(()=>D.staticItems,e=>{h.items&&h.items.length&&(0,_log.errLog)("vxe.error.errConflicts",["<vxe-split-pane ...>","items"]),D.itemList=e,G()});let H;return(0,_vue.onMounted)(()=>{(0,_vue.nextTick)(()=>{G()});var e=c.value;e&&(H=_ui.globalResize.create(()=>{G()})).observe(e),_ui.globalEvents.on(W,"resize",z)}),(0,_vue.onUnmounted)(()=>{H&&H.disconnect(),_ui.globalEvents.off(W,"resize")}),(0,_vue.onActivated)(()=>{G()}),h.items&&v(h.items),(0,_vue.provide)("$xeSplit",W),W.renderVN=()=>{var{vertical:e,width:t,height:i}=h,{immediate:s,showTip:l}=d.value,n=o.default,r={};return i&&(r.height=(0,_dom.toCssUnit)(i)),t&&(r.width=(0,_dom.toCssUnit)(t)),(0,_vue.h)("div",{ref:c,class:["vxe-split",e?"is--vertical":"is--horizontal",s?"is-resize--immediate":"is-resize--lazy"],style:r},[(0,_vue.h)("div",{class:"vxe-split-slots"},n?n({}):[]),(()=>{const{border:g,padding:v,resize:_,vertical:x}=h,b=D["itemList"];const C=d.value["immediate"],z=f.value,y=p.value["autoItems"],H=R.value,U=[];return b.forEach((e,t)=>{var{id:i,name:s,slots:l,renderHeight:n,resizeHeight:r,foldHeight:o,renderWidth:a,resizeWidth:d,foldWidth:u,isVisible:h,isExpand:c}=e,l=l?l.default:null,m={};let f=h?u||d||a:0,p=h?o||r||n:0;1===y.length&&(x?e.height||(p=0):e.width||(f=0)),x?p&&(m.height=1===z.length?"100%":(0,_dom.toCssUnit)(p)):f&&(m.width=1===z.length?"100%":(0,_dom.toCssUnit)(f)),U.push((0,_vue.h)("div",{itemid:i,class:["vxe-split-pane",x?"is--vertical":"is--horizontal",C?"is-resize--immediate":"is-resize--lazy",{"is--resize":_,"is--padding":v,"is--border":g,"is--height":p,"is--width":f,"is--fill":h&&!p&&!f,"is--handle":0<t,"is--expand":c,"is--hidden":!h}],style:m},[t&&!H?E(e):(0,_ui.renderEmptyElement)(W),(0,_vue.h)("div",{itemid:i,class:"vxe-split-pane--wrapper"},[(0,_vue.h)("div",{class:"vxe-split-pane--inner"},l?I(l,{name:s,isVisible:h,isExpand:c}):[])]),H&&t<b.length-1?E(e):(0,_ui.renderEmptyElement)(W)]))}),(0,_vue.h)("div",{class:"vxe-split-wrapper"},U)})(),(0,_vue.h)("div",{ref:a,class:["vxe-split--resizable-split-tip",e?"is--vertical":"is--horizontal",s?"is-resize--immediate":"is-resize--lazy"]},l?[(0,_vue.h)("div",{class:"vxe-split--resizable-split-tip-number"},[(0,_vue.h)("div",{class:"vxe-split--resizable-split-number-prev"}),(0,_vue.h)("div",{class:"vxe-split--resizable-split-number-next"})])]:[])])},W},render(){return this.renderVN()}});
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vue=require("vue"),_comp=require("../../ui/src/comp"),_ui=require("../../ui"),_vn=require("../../ui/src/vn"),_dom=require("../../ui/src/dom"),_utils=require("../../ui/src/utils"),_log=require("../../ui/src/log"),_xeUtils=_interopRequireDefault(require("xe-utils"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=exports.default=(0,_comp.defineVxeComponent)({name:"VxeSplit",props:{width:[Number,String],height:[Number,String],vertical:{type:Boolean,default:()=>(0,_ui.getConfig)().split.vertical},border:{type:Boolean,default:()=>(0,_ui.getConfig)().split.border},padding:{type:Boolean,default:()=>(0,_ui.getConfig)().split.padding},resize:{type:Boolean,default:()=>(0,_ui.getConfig)().split.resize},items:Array,itemConfig:Object,barConfig:Object,resizeConfig:Object,actionConfig:Object},emits:["action-dblclick","action-click","toggle-expand","resize-start","resize-drag","resize-end"],setup(c,e){const{emit:s,slots:o}=e;var t=_xeUtils.default.uniqueId();const k=(0,_vue.ref)(),g=(0,_vue.ref)(),M=(0,_vue.ref)(),P=(0,_vue.reactive)({staticItems:[],itemList:[],barWidth:0,barHeight:0}),p={wrapperWidth:0,wrapperHeight:0},D=(0,_vue.computed)(()=>Object.assign({},(0,_ui.getConfig)().split.itemConfig,c.itemConfig)),n=(0,_vue.computed)(()=>Object.assign({},(0,_ui.getConfig)().split.barConfig,c.barConfig)),q=(0,_vue.computed)(()=>Object.assign({},(0,_ui.getConfig)().split.resizeConfig,c.resizeConfig)),u=(0,_vue.computed)(()=>Object.assign({},(0,_ui.getConfig)().split.actionConfig,c.actionConfig)),a=(0,_vue.computed)(()=>P.itemList.filter(e=>e.isExpand)),d=(0,_vue.computed)(()=>{var e=c["vertical"];const r=[];let o=0,a=0;return P.itemList.forEach(e?e=>{var{renderHeight:t,resizeHeight:i,foldHeight:s,isExpand:n,height:l}=e,n=n?s||i||t:0;l||r.push(e),o+=n}:e=>{var{renderWidth:t,resizeWidth:i,foldWidth:s,isExpand:n,width:l}=e,n=n?s||i||t:0;l||r.push(e),a+=n}),{autoItems:r,heightCount:o,heightRatio:o/100,widthCount:a,widthRatio:a/100}}),h=(0,_vue.computed)(()=>{var{width:e,height:t}=n.value,i={};return t&&(i.height=(0,_dom.toCssUnit)(t)),e&&(i.width=(0,_dom.toCssUnit)(e)),i}),i={computeItemOpts:D,computeBarOpts:n,computeActionOpts:u},l={refElem:k},v={xID:t,props:c,context:e,reactData:P,internalData:p,getRefMaps:()=>l,getComputeMaps:()=>i},j=(e,t,i)=>{s(e,(0,_ui.createEvent)(i,{$split:v},t))},H=(e,t)=>e&&(_xeUtils.default.isString(e)&&(e=o[e]||null),_xeUtils.default.isFunction(e))?(0,_vn.getSlotVNs)(e(t)):[],f=(e,t,i)=>{var s=c["vertical"],n="SPLIT_TOP_ACTION",l="SPLIT_BOTTOM_ACTION",r="SPLIT_LEFT_ACTION",o="SPLIT_RIGHT_ACTION";let a="";return(a=s?i?t.isExpand?l:n:e.isExpand?n:l:i?t.isExpand?o:r:e.isExpand?r:o)?(0,_ui.getIcon)()[a]:""};const r=(e,t)=>{var i=P["staticItems"],{showPrevButton:s,showNextButton:n}=u.value;const l={isExpand:!0,renderWidth:0,resizeWidth:0,foldWidth:0,renderHeight:0,resizeHeight:0,foldHeight:0};return P.itemList=e.map(e=>(e.showAction&&(0,_log.warnLog)("vxe.error.removeProp",["showAction"]),e.slots&&_xeUtils.default.each(e.slots,e=>{_xeUtils.default.isFunction(e)||o[e]||(0,_log.errLog)("vxe.error.notSlot",[e])}),Object.assign({},t?null:l,e,t?l:null,{id:_xeUtils.default.uniqueId()}))),i.length&&(0,_log.errLog)("vxe.error.errConflicts",["<vxe-split-pane ...>","items"]),(s||n)&&2<P.itemList.length&&(0,_log.errLog)("vxe.error.errConflicts",["action-config.showPrevButton | action-config.showNextButton","Only supports 2 item"]),R()},m=e=>r(e||[],!1);const R=()=>(0,_vue.nextTick)().then(()=>{var e=c["vertical"],t=P["itemList"],i=k.value,s=g.value;if(i){var n=i.clientWidth,i=i.clientHeight;if(n&&i){s&&(P.barWidth=s.offsetWidth,P.barHeight=s.offsetHeight);const l=n-(e?0:P.barWidth*(t.length-1)),r=i-(e?P.barHeight*(t.length-1):0);s=D.value;const o=_xeUtils.default.toNumber(s.minWidth),a=_xeUtils.default.toNumber(s.minHeight),d=[];if(e){let s=0;if(t.forEach(e=>{var t=e["height"];let i=0;t?(i=(0,_dom.isScale)(t)?r*_xeUtils.default.toNumber(t)/100:_xeUtils.default.toNumber(t),e.renderHeight=i):d.push(e),s+=i}),d.length){const u=(r-s)/d.length;d.forEach(e=>{e.renderHeight=Math.max(_xeUtils.default.toNumber((0,_utils.getGlobalDefaultConfig)(e.minHeight,a)),u)})}}else{let s=0;if(t.forEach(e=>{var t=e["width"];let i=0;t?(i=(0,_dom.isScale)(t)?l*_xeUtils.default.toNumber(t)/100:_xeUtils.default.toNumber(t),e.renderWidth=i):d.push(e),s+=i}),d.length){const h=(l-s)/d.length;d.forEach(e=>{e.renderWidth=Math.max(_xeUtils.default.toNumber((0,_utils.getGlobalDefaultConfig)(e.minWidth,o)),h)})}}p.wrapperWidth=l,p.wrapperHeight=r}}}),_=e=>{const{resize:t,vertical:g}=c;var i=P["itemList"];if(t){e.preventDefault();var s=e.currentTarget,n=s.parentElement;const f=k.value;if(f){const m=n.previousElementSibling,_=n.nextElementSibling;if(m&&_){const l=m.getAttribute("itemid"),r=_.getAttribute("itemid"),x=i.find(e=>e.id===l),b=i.find(e=>e.id===r);if(x&&b){const E=f.getBoundingClientRect();n=s.getBoundingClientRect();const z=M.value,C=z?z.children[0]:null;i=D.value;const w=q.value["immediate"];var s=_xeUtils.default.toNumber(i.minWidth),i=_xeUtils.default.toNumber(i.minHeight),p=Math.ceil(n.width-(e.clientX-n.left)),n=Math.ceil(e.clientY-n.top);const H=m.offsetWidth,y=_.offsetWidth;var v=_xeUtils.default.toNumber(x?(0,_utils.getGlobalDefaultConfig)(x.minWidth,s):s),s=_xeUtils.default.toNumber(b?(0,_utils.getGlobalDefaultConfig)(b.minWidth,s):s);const W=m.offsetLeft+v-p,I=_.offsetLeft+_.offsetWidth-s-p,U=e.clientX-E.left;let l=-1,r=0,o=0,a=U;const L=m.offsetHeight,N=_.offsetHeight;v=_xeUtils.default.toNumber(x?(0,_utils.getGlobalDefaultConfig)(x.minHeight,i):i),s=_xeUtils.default.toNumber(b?(0,_utils.getGlobalDefaultConfig)(b.minHeight,i):i);const B=m.offsetTop+v+n,T=_.offsetTop+_.offsetHeight-s+n,A=e.clientY-E.top;let d=-1,u=0,h=0,c=A;const O=i=>{if(z){var s=C?C.children[0]:null,n=C?C.children[1]:null;if(g){let e=0,t=(s&&(d<0?s.style.display="none":(s.textContent=Math.floor(u)+"px",s.style.display="block",e=s.offsetWidth)),n&&(d<0?(n.textContent=Math.floor(h)+"px",n.style.display="block",e=n.offsetWidth):n.style.display="none"),Math.max(1,i.clientX-E.left-e/2));t>E.width-e-1&&(t=E.width-e-1),z.style.left="0",z.style.top=c+"px",C&&(C.style.left=t+"px")}else{let e=0,t=(s&&(l<0?s.style.display="none":(s.textContent=Math.floor(r)+"px",s.style.display="block",e=s.offsetHeight)),n&&(l<0?(n.textContent=Math.floor(o)+"px",n.style.display="block",e=n.offsetHeight):n.style.display="none"),Math.max(1,i.clientY-E.top-e/2));t>E.height-e-1&&(t=E.height-e-1),z.style.top="0",z.style.left=a+"px",C&&(C.style.top=t+"px")}}},S=e=>{g?((c=(c=e.clientY-E.top)<B?B:c)>T&&(c=T),d=c-A,u=L+d,h=N-d):((a=(a=e.clientX-E.left)<W?W:a)>I&&(a=I),l=a-U,r=H+l,o=y-l),w&&(g?(m.style.height=(0,_dom.toCssUnit)(u),_.style.height=(0,_dom.toCssUnit)(h)):(m.style.width=(0,_dom.toCssUnit)(r),_.style.width=(0,_dom.toCssUnit)(o))),z&&O(e),j("resize-drag",{prevItem:x,nextItem:b,offsetHeight:d,offsetWidth:l},e)};document.onmousemove=e=>{e.preventDefault(),S(e)},document.onmouseup=e=>{document.onmousemove=null,document.onmouseup=null,z&&(z.style.display=""),g?(x.resizeHeight=u,b.resizeHeight=h):(x.resizeWidth=r,b.resizeWidth=o),(0,_dom.removeClass)(f,"is--drag"),j("resize-end",{prevItem:x,nextItem:b,offsetHeight:d,offsetWidth:l},e),R()},z&&(z.style.display="block",O(e)),S(e),(0,_dom.addClass)(f,"is--drag"),j("resize-start",{prevItem:x,nextItem:b},e)}}}}},x=(e,t,i,s)=>{var n=c["vertical"];let l=!1,r=t;s?(r=i,l=!i.isExpand,i.isExpand=l):(l=!t.isExpand,t.isExpand=l),n?t.isExpand&&i.isExpand?(t.foldHeight=0,i.foldHeight=0):t.isExpand?(i.foldHeight=0,t.foldHeight=(t.resizeHeight||t.renderHeight)+(i.resizeHeight||i.renderHeight)):(t.foldHeight=0,i.foldHeight=(t.resizeHeight||t.renderHeight)+(i.resizeHeight||i.renderHeight)):t.isExpand&&i.isExpand?(t.foldWidth=0,i.foldWidth=0):t.isExpand?(i.foldWidth=0,t.foldWidth=(t.resizeWidth||t.renderWidth)+(i.resizeWidth||i.renderWidth)):(t.foldWidth=0,i.foldWidth=(t.resizeWidth||t.renderWidth)+(i.resizeWidth||i.renderWidth)),j("toggle-expand",{prevItem:t,nextItem:i,expanded:l,item:r},e),R()},b=e=>{var t=P["itemList"],i=u.value,s=e.currentTarget.parentElement.parentElement;const n=s.previousElementSibling.getAttribute("itemid");var l=t.find(e=>e.id===n);const r=s.nextElementSibling.getAttribute("itemid");s=t.find(e=>e.id===r);"dblclick"===i.trigger&&l&&s&&s.isExpand&&x(e,l,s,!1),j("action-dblclick",{prevItem:l,nextItem:s},e)},E=e=>{var t=P["itemList"],i=u.value,s=e.currentTarget.parentElement.parentElement;const n=s.previousElementSibling.getAttribute("itemid");var l=t.find(e=>e.id===n);const r=s.nextElementSibling.getAttribute("itemid");s=t.find(e=>e.id===r);"dblclick"!==i.trigger&&l&&s&&s.isExpand&&x(e,l,s,!1),j("action-click",{prevItem:l,nextItem:s},e)},z=e=>{var t=P["itemList"],i=u.value,s=e.currentTarget.parentElement.parentElement;const n=s.previousElementSibling.getAttribute("itemid");var l=t.find(e=>e.id===n);const r=s.nextElementSibling.getAttribute("itemid");s=t.find(e=>e.id===r);"dblclick"===i.trigger&&l&&s&&l.isExpand&&x(e,l,s,!0),j("action-dblclick",{prevItem:l,nextItem:s},e)},C=e=>{var t=P["itemList"],i=u.value,s=e.currentTarget.parentElement.parentElement;const n=s.previousElementSibling.getAttribute("itemid");var l=t.find(e=>e.id===n);const r=s.nextElementSibling.getAttribute("itemid");s=t.find(e=>e.id===r);"dblclick"!==i.trigger&&l&&s&&l.isExpand&&x(e,l,s,!0),j("action-click",{prevItem:l,nextItem:s},e)},w=()=>{R()};t={dispatchEvent:j,recalculate:R,reset:()=>{var e=P["itemList"];return e.forEach(e=>{e.isExpand=!0,e.foldHeight=0,e.foldWidth=0,e.resizeHeight=0,e.resizeWidth=0}),(0,_vue.nextTick)()},loadItem:m,reloadItem:e=>r(e||[],!0)};Object.assign(v,t,{});const y=(e,t)=>{var{border:i,resize:s,vertical:n}=c,l=P["itemList"],r=h.value,o=u.value,a=o["direction"],d=_xeUtils.default.isBoolean(o.showPrevButton)?o.showPrevButton:l.some(e=>e.showAction),o=_xeUtils.default.isBoolean(o.showNextButton)?o.showNextButton:"next"===a&&l.some(e=>e.showAction),a=q.value["immediate"];return(0,_vue.h)("div",{class:["vxe-split-pane-handle",n?"is--vertical":"is--horizontal",a?"is-resize--immediate":"is-resize--lazy",{"is--resize":s,"is--border":i}]},[(0,_vue.h)("div",{class:"vxe-split-pane-handle-bar",style:r,onMousedown:_}),2===l.length?(0,_vue.h)("div",{class:"vxe-split-pane-action-btn-wrapper"},[d&&t.isExpand?(0,_vue.h)("div",{class:"vxe-split-pane-action-btn",onDblclick:b,onClick:E},[(0,_vue.h)("i",{class:f(e,t,!1)})]):(0,_ui.renderEmptyElement)(v),o&&e.isExpand?(0,_vue.h)("div",{class:"vxe-split-pane-action-btn",onDblclick:z,onClick:C},[(0,_vue.h)("i",{class:f(e,t,!0)})]):(0,_ui.renderEmptyElement)(v)]):(0,_ui.renderEmptyElement)(v)])};const W=(0,_vue.ref)(0);(0,_vue.watch)(()=>c.items?c.items.length:-1,()=>{W.value++}),(0,_vue.watch)(()=>c.items,()=>{W.value++}),(0,_vue.watch)(W,()=>{m(c.items||[])}),(0,_vue.watch)(()=>P.staticItems,e=>{var{showPrevButton:t,showNextButton:i}=u.value;c.items&&c.items.length&&(0,_log.errLog)("vxe.error.errConflicts",["<vxe-split-pane ...>","items"]),P.itemList=e||[],(t||i)&&2<P.itemList.length&&(0,_log.errLog)("vxe.error.modelConflicts",["action-config.showPrevButton | action-config.showNextButton","<vxe-split-pane ...> Only supports 2 panel"]),P.itemList.forEach(e=>{e.showAction&&(0,_log.warnLog)("vxe.error.removeProp",["showAction"])}),R()});let I;return(0,_vue.onMounted)(()=>{(0,_vue.nextTick)(()=>{R()});var e=k.value,e=(e&&(I=_ui.globalResize.create(()=>{R()})).observe(e),u.value);e.direction&&(0,_log.errLog)("vxe.error.delProp",["action-config.direction","action-config.showPrevButton | action-config.showNextButton"]),_ui.globalEvents.on(v,"resize",w)}),(0,_vue.onUnmounted)(()=>{I&&I.disconnect(),_ui.globalEvents.off(v,"resize")}),(0,_vue.onActivated)(()=>{R()}),c.items&&m(c.items),(0,_vue.provide)("$xeSplit",v),v.renderVN=()=>{var{vertical:e,width:t,height:i}=c,{immediate:s,showTip:n}=q.value,l=o.default,r={};return i&&(r.height=(0,_dom.toCssUnit)(i)),t&&(r.width=(0,_dom.toCssUnit)(t)),(0,_vue.h)("div",{ref:k,class:["vxe-split",e?"is--vertical":"is--horizontal",s?"is-resize--immediate":"is-resize--lazy"],style:r},[(0,_vue.h)("div",{class:"vxe-split-slots"},l?l({}):[]),(()=>{const{border:f,padding:m,resize:_,vertical:x}=c,b=P["itemList"];const E=q.value["immediate"],z=a.value,C=d.value["autoItems"],w=[];return b.forEach((e,t)=>{var{id:i,name:s,slots:n,renderHeight:l,resizeHeight:r,foldHeight:o,renderWidth:a,resizeWidth:d,foldWidth:u,isExpand:h}=e,t=b[t+1],n=n?n.default:null,c={};let g=h?u||d||a:0,p=h?o||r||l:0,v=(1===C.length&&(x?e.height||(p=0):e.width||(g=0)),!0);x?p&&1<z.length&&(v=!1,c.height=(0,_dom.toCssUnit)(p)):g&&1<z.length&&(v=!1,c.width=(0,_dom.toCssUnit)(g)),w.push((0,_vue.h)("div",{itemid:i,class:["vxe-split-pane",x?"is--vertical":"is--horizontal",E?"is-resize--immediate":"is-resize--lazy",{"is--resize":_,"is--padding":m,"is--border":f,"is--height":p,"is--width":g,"is--visible":h,"is--hidden":!h,"is--fill":h&&v}],style:c},[(0,_vue.h)("div",{itemid:i,class:"vxe-split-pane--wrapper"},[(0,_vue.h)("div",{class:"vxe-split-pane--inner"},n?H(n,{name:s,isExpand:h}):[])])])),t&&w.push(y(e,t))}),(0,_vue.h)("div",{class:"vxe-split-wrapper"},w)})(),(0,_vue.h)("div",{ref:M,class:["vxe-split--resizable-split-tip",e?"is--vertical":"is--horizontal",s?"is-resize--immediate":"is-resize--lazy"]},n?[(0,_vue.h)("div",{class:"vxe-split--resizable-split-tip-number"},[(0,_vue.h)("div",{class:"vxe-split--resizable-split-number-prev"}),(0,_vue.h)("div",{class:"vxe-split--resizable-split-number-next"})])]:[]),(0,_vue.h)("div",{class:"vxe-split--render-vars"},[(0,_vue.h)("div",{ref:g,class:"vxe-split--handle-bar-info"})])])},v},render(){return this.renderVN()}});
|
|
@@ -111,6 +111,7 @@
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
.vxe-split-pane-handle {
|
|
114
|
+
display: flex;
|
|
114
115
|
position: relative;
|
|
115
116
|
flex-shrink: 0;
|
|
116
117
|
-webkit-user-select: none;
|
|
@@ -141,18 +142,22 @@
|
|
|
141
142
|
background-color: var(--vxe-ui-split-handle-bar-hover-background-color);
|
|
142
143
|
}
|
|
143
144
|
|
|
144
|
-
.vxe-split-pane-action-btn {
|
|
145
|
+
.vxe-split-pane-action-btn-wrapper {
|
|
145
146
|
position: absolute;
|
|
147
|
+
display: flex;
|
|
148
|
+
top: 50%;
|
|
149
|
+
left: 50%;
|
|
150
|
+
transform: translate(-50%, -50%);
|
|
151
|
+
z-index: 2;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.vxe-split-pane-action-btn {
|
|
146
155
|
display: flex;
|
|
147
156
|
flex-direction: row;
|
|
148
157
|
align-items: center;
|
|
149
158
|
justify-content: center;
|
|
150
159
|
font-size: 0.5em;
|
|
151
160
|
border-radius: var(--vxe-ui-base-border-radius);
|
|
152
|
-
top: 50%;
|
|
153
|
-
left: 50%;
|
|
154
|
-
transform: translate(-50%, -50%);
|
|
155
|
-
z-index: 2;
|
|
156
161
|
color: var(--vxe-ui-layout-background-color);
|
|
157
162
|
background-color: var(--vxe-ui-split-handle-button-background-color);
|
|
158
163
|
border: 1px solid var(--vxe-ui-input-border-color);
|
|
@@ -164,71 +169,103 @@
|
|
|
164
169
|
background-color: var(--vxe-ui-font-primary-color);
|
|
165
170
|
}
|
|
166
171
|
.vxe-split-pane-action-btn:active {
|
|
167
|
-
transform:
|
|
172
|
+
transform: scale(0.9);
|
|
168
173
|
}
|
|
169
174
|
|
|
170
|
-
.vxe-split-pane {
|
|
171
|
-
|
|
172
|
-
position: relative;
|
|
173
|
-
overflow: hidden;
|
|
175
|
+
.vxe-split-pane-handle.is--horizontal {
|
|
176
|
+
flex-direction: row;
|
|
174
177
|
}
|
|
175
|
-
.vxe-split-pane.is--
|
|
176
|
-
width: 0;
|
|
178
|
+
.vxe-split-pane-handle.is--horizontal.is--border {
|
|
179
|
+
border-width: 1px 0 1px 0;
|
|
177
180
|
}
|
|
178
|
-
.vxe-split-pane.is--
|
|
179
|
-
|
|
181
|
+
.vxe-split-pane-handle.is--horizontal .vxe-split-pane-action-btn-wrapper {
|
|
182
|
+
flex-direction: column;
|
|
180
183
|
}
|
|
181
|
-
.vxe-split-pane.is--
|
|
182
|
-
|
|
184
|
+
.vxe-split-pane-handle.is--horizontal .vxe-split-pane-action-btn-wrapper div {
|
|
185
|
+
margin-top: 1em;
|
|
183
186
|
}
|
|
184
|
-
.vxe-split-pane.is--
|
|
185
|
-
|
|
187
|
+
.vxe-split-pane-handle.is--horizontal .vxe-split-pane-action-btn-wrapper div:first-child {
|
|
188
|
+
margin-top: 0;
|
|
186
189
|
}
|
|
187
|
-
.vxe-split-pane.is--
|
|
188
|
-
|
|
190
|
+
.vxe-split-pane-handle.is--horizontal .vxe-split-pane-handle-bar {
|
|
191
|
+
width: var(--vxe-ui-split-handle-bar-horizontal-width);
|
|
192
|
+
height: 100%;
|
|
193
|
+
}
|
|
194
|
+
.vxe-split-pane-handle.is--horizontal .vxe-split-pane-action-btn {
|
|
195
|
+
width: var(--vxe-ui-split-handle-bar-horizontal-width);
|
|
196
|
+
height: var(--vxe-ui-split-handle-bar-horizontal-height);
|
|
197
|
+
}
|
|
198
|
+
.vxe-split-pane-handle.is--vertical {
|
|
199
|
+
flex-direction: column;
|
|
200
|
+
}
|
|
201
|
+
.vxe-split-pane-handle.is--vertical.is--border {
|
|
202
|
+
border-width: 0 1px 0 1px;
|
|
203
|
+
}
|
|
204
|
+
.vxe-split-pane-handle.is--vertical .vxe-split-pane-action-btn-wrapper {
|
|
205
|
+
flex-direction: row;
|
|
189
206
|
}
|
|
190
|
-
.vxe-split-pane
|
|
207
|
+
.vxe-split-pane-handle.is--vertical .vxe-split-pane-action-btn-wrapper div {
|
|
208
|
+
margin-left: 1em;
|
|
209
|
+
}
|
|
210
|
+
.vxe-split-pane-handle.is--vertical .vxe-split-pane-action-btn-wrapper div:first-child {
|
|
211
|
+
margin-left: 0;
|
|
212
|
+
}
|
|
213
|
+
.vxe-split-pane-handle.is--vertical .vxe-split-pane-handle-bar {
|
|
214
|
+
height: var(--vxe-ui-split-handle-bar-vertical-height);
|
|
215
|
+
width: 100%;
|
|
216
|
+
}
|
|
217
|
+
.vxe-split-pane-handle.is--vertical .vxe-split-pane-action-btn {
|
|
218
|
+
width: var(--vxe-ui-split-handle-bar-vertical-width);
|
|
219
|
+
height: var(--vxe-ui-split-handle-bar-vertical-height);
|
|
220
|
+
}
|
|
221
|
+
.vxe-split-pane-handle.is--resize.is-resize--immediate.is--horizontal .vxe-split-pane-handle-bar {
|
|
191
222
|
cursor: w-resize;
|
|
192
223
|
}
|
|
193
|
-
.vxe-split-pane.is--resize.is
|
|
224
|
+
.vxe-split-pane-handle.is--resize.is-resize--immediate.is--vertical .vxe-split-pane-handle-bar {
|
|
194
225
|
cursor: n-resize;
|
|
195
226
|
}
|
|
196
|
-
.vxe-split-pane.is--resize.is
|
|
227
|
+
.vxe-split-pane-handle.is--resize.is-resize--immediate > .vxe-split-pane-handle-bar:active {
|
|
197
228
|
background-color: var(--vxe-ui-font-primary-color);
|
|
198
229
|
}
|
|
199
|
-
.vxe-split-pane.is--resize.is
|
|
230
|
+
.vxe-split-pane-handle.is--resize.is-resize--lazy.is--horizontal .vxe-split-pane-handle-bar {
|
|
200
231
|
cursor: col-resize;
|
|
201
232
|
}
|
|
202
|
-
.vxe-split-pane.is--resize.is
|
|
233
|
+
.vxe-split-pane-handle.is--resize.is-resize--lazy.is--vertical .vxe-split-pane-handle-bar {
|
|
203
234
|
cursor: row-resize;
|
|
204
235
|
}
|
|
205
|
-
|
|
206
|
-
|
|
236
|
+
|
|
237
|
+
.vxe-split-pane {
|
|
238
|
+
display: flex;
|
|
239
|
+
position: relative;
|
|
240
|
+
overflow: hidden;
|
|
207
241
|
}
|
|
208
|
-
.vxe-split-pane.is--
|
|
209
|
-
|
|
210
|
-
height: 100%;
|
|
242
|
+
.vxe-split-pane.is--fill {
|
|
243
|
+
flex-grow: 1;
|
|
211
244
|
}
|
|
212
|
-
.vxe-split-pane.is--horizontal
|
|
213
|
-
width:
|
|
214
|
-
height: var(--vxe-ui-split-handle-bar-horizontal-height);
|
|
245
|
+
.vxe-split-pane.is--hidden.is--horizontal {
|
|
246
|
+
width: 0;
|
|
215
247
|
}
|
|
216
|
-
.vxe-split-pane.is--
|
|
217
|
-
|
|
248
|
+
.vxe-split-pane.is--hidden.is--vertical {
|
|
249
|
+
height: 0;
|
|
218
250
|
}
|
|
219
|
-
.vxe-split-pane.is--
|
|
220
|
-
|
|
251
|
+
.vxe-split-pane.is--padding > .vxe-split-pane--wrapper {
|
|
252
|
+
padding: var(--vxe-ui-layout-padding-default);
|
|
221
253
|
}
|
|
222
|
-
.vxe-split-pane.is--
|
|
223
|
-
|
|
224
|
-
width: 100%;
|
|
254
|
+
.vxe-split-pane.is--hidden, .vxe-split-pane.is--width, .vxe-split-pane.is--height {
|
|
255
|
+
flex-shrink: 0;
|
|
225
256
|
}
|
|
226
|
-
.vxe-split-pane.is--
|
|
227
|
-
|
|
228
|
-
height: var(--vxe-ui-split-handle-bar-vertical-height);
|
|
257
|
+
.vxe-split-pane.is--border > .vxe-split-pane--wrapper {
|
|
258
|
+
border: 1px solid var(--vxe-ui-base-popup-border-color);
|
|
229
259
|
}
|
|
230
|
-
|
|
231
|
-
|
|
260
|
+
|
|
261
|
+
.vxe-split--render-vars {
|
|
262
|
+
width: 0;
|
|
263
|
+
height: 0;
|
|
264
|
+
overflow: hidden;
|
|
265
|
+
}
|
|
266
|
+
.vxe-split--render-vars .vxe-split--handle-bar-info {
|
|
267
|
+
width: var(--vxe-ui-split-handle-bar-horizontal-width);
|
|
268
|
+
height: var(--vxe-ui-split-handle-bar-vertical-height);
|
|
232
269
|
}
|
|
233
270
|
|
|
234
271
|
.vxe-modal--content > .vxe-split {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.vxe-split{position:relative;width:100%}.vxe-split.is--vertical>.vxe-split-wrapper{flex-direction:column}.vxe-split.is--vertical>.vxe-split-wrapper>.vxe-split-pane{width:100%}.vxe-split.is--drag{-webkit-user-select:none;-moz-user-select:none;user-select:none}.vxe-split.is--drag.is-resize--immediate.is--horizontal{cursor:w-resize}.vxe-split.is--drag.is-resize--immediate.is--vertical{cursor:n-resize}.vxe-split.is--drag.is-resize--lazy.is--horizontal{cursor:col-resize}.vxe-split.is--drag.is-resize--lazy.is--vertical{cursor:row-resize}.vxe-split.is--drag>.vxe-split-wrapper>.vxe-split-pane>.vxe-split-pane--wrapper::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;background:0 0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vxe-split--resizable-split-tip{display:none;position:absolute;top:0;left:0;z-index:7;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:col-resize}.vxe-split--resizable-split-tip.is-resize--lazy:before{content:"";display:block;height:100%;background-color:var(--vxe-ui-split-resizable-drag-line-color)}.vxe-split--resizable-split-tip.is--horizontal{width:1px;height:100%}.vxe-split--resizable-split-tip.is--horizontal .vxe-split--resizable-split-number-prev{right:0}.vxe-split--resizable-split-tip.is--horizontal .vxe-split--resizable-split-number-next{left:1px}.vxe-split--resizable-split-tip.is--vertical{width:100%;height:1px}.vxe-split--resizable-split-tip.is--vertical .vxe-split--resizable-split-number-prev{bottom:0}.vxe-split--resizable-split-tip.is--vertical .vxe-split--resizable-split-number-next{top:1px}.vxe-split--resizable-split-tip-number{position:absolute;top:0;left:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}.vxe-split--resizable-split-number-next,.vxe-split--resizable-split-number-prev{position:absolute;padding:.25em .25em;font-size:12px;border-radius:var(--vxe-ui-border-radius);white-space:nowrap;color:#fff;background-color:var(--vxe-ui-split-resizable-drag-line-color)}.vxe-split-wrapper{height:100%;display:flex;flex-direction:row;overflow:hidden}.vxe-split-slots{display:none}.vxe-split-pane-handle{position:relative;flex-shrink:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vxe-split-pane--wrapper{position:relative;word-break:break-word;overflow:hidden;flex-grow:1}.vxe-split-pane--inner{height:100%;width:100%;overflow:auto}.vxe-split-pane--inner>.vxe-split{height:100%}.vxe-split-pane-handle-bar{background-color:var(--vxe-ui-split-handle-bar-background-color)}.vxe-split-pane-handle-bar:hover{background-color:var(--vxe-ui-split-handle-bar-hover-background-color)}.vxe-split-pane-action-btn{position:absolute;display:flex;flex-direction:row;align-items:center;justify-content:center;font-size:.5em;border-radius:var(--vxe-ui-base-border-radius);
|
|
1
|
+
.vxe-split{position:relative;width:100%}.vxe-split.is--vertical>.vxe-split-wrapper{flex-direction:column}.vxe-split.is--vertical>.vxe-split-wrapper>.vxe-split-pane{width:100%}.vxe-split.is--drag{-webkit-user-select:none;-moz-user-select:none;user-select:none}.vxe-split.is--drag.is-resize--immediate.is--horizontal{cursor:w-resize}.vxe-split.is--drag.is-resize--immediate.is--vertical{cursor:n-resize}.vxe-split.is--drag.is-resize--lazy.is--horizontal{cursor:col-resize}.vxe-split.is--drag.is-resize--lazy.is--vertical{cursor:row-resize}.vxe-split.is--drag>.vxe-split-wrapper>.vxe-split-pane>.vxe-split-pane--wrapper::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;background:0 0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vxe-split--resizable-split-tip{display:none;position:absolute;top:0;left:0;z-index:7;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:col-resize}.vxe-split--resizable-split-tip.is-resize--lazy:before{content:"";display:block;height:100%;background-color:var(--vxe-ui-split-resizable-drag-line-color)}.vxe-split--resizable-split-tip.is--horizontal{width:1px;height:100%}.vxe-split--resizable-split-tip.is--horizontal .vxe-split--resizable-split-number-prev{right:0}.vxe-split--resizable-split-tip.is--horizontal .vxe-split--resizable-split-number-next{left:1px}.vxe-split--resizable-split-tip.is--vertical{width:100%;height:1px}.vxe-split--resizable-split-tip.is--vertical .vxe-split--resizable-split-number-prev{bottom:0}.vxe-split--resizable-split-tip.is--vertical .vxe-split--resizable-split-number-next{top:1px}.vxe-split--resizable-split-tip-number{position:absolute;top:0;left:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}.vxe-split--resizable-split-number-next,.vxe-split--resizable-split-number-prev{position:absolute;padding:.25em .25em;font-size:12px;border-radius:var(--vxe-ui-border-radius);white-space:nowrap;color:#fff;background-color:var(--vxe-ui-split-resizable-drag-line-color)}.vxe-split-wrapper{height:100%;display:flex;flex-direction:row;overflow:hidden}.vxe-split-slots{display:none}.vxe-split-pane-handle{display:flex;position:relative;flex-shrink:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vxe-split-pane--wrapper{position:relative;word-break:break-word;overflow:hidden;flex-grow:1}.vxe-split-pane--inner{height:100%;width:100%;overflow:auto}.vxe-split-pane--inner>.vxe-split{height:100%}.vxe-split-pane-handle-bar{background-color:var(--vxe-ui-split-handle-bar-background-color)}.vxe-split-pane-handle-bar:hover{background-color:var(--vxe-ui-split-handle-bar-hover-background-color)}.vxe-split-pane-action-btn-wrapper{position:absolute;display:flex;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2}.vxe-split-pane-action-btn{display:flex;flex-direction:row;align-items:center;justify-content:center;font-size:.5em;border-radius:var(--vxe-ui-base-border-radius);color:var(--vxe-ui-layout-background-color);background-color:var(--vxe-ui-split-handle-button-background-color);border:1px solid var(--vxe-ui-input-border-color);cursor:pointer;transition:transform .1s ease-in-out}.vxe-split-pane-action-btn:hover{color:#fff;background-color:var(--vxe-ui-font-primary-color)}.vxe-split-pane-action-btn:active{transform:scale(.9)}.vxe-split-pane-handle.is--horizontal{flex-direction:row}.vxe-split-pane-handle.is--horizontal.is--border{border-width:1px 0 1px 0}.vxe-split-pane-handle.is--horizontal .vxe-split-pane-action-btn-wrapper{flex-direction:column}.vxe-split-pane-handle.is--horizontal .vxe-split-pane-action-btn-wrapper div{margin-top:1em}.vxe-split-pane-handle.is--horizontal .vxe-split-pane-action-btn-wrapper div:first-child{margin-top:0}.vxe-split-pane-handle.is--horizontal .vxe-split-pane-handle-bar{width:var(--vxe-ui-split-handle-bar-horizontal-width);height:100%}.vxe-split-pane-handle.is--horizontal .vxe-split-pane-action-btn{width:var(--vxe-ui-split-handle-bar-horizontal-width);height:var(--vxe-ui-split-handle-bar-horizontal-height)}.vxe-split-pane-handle.is--vertical{flex-direction:column}.vxe-split-pane-handle.is--vertical.is--border{border-width:0 1px 0 1px}.vxe-split-pane-handle.is--vertical .vxe-split-pane-action-btn-wrapper{flex-direction:row}.vxe-split-pane-handle.is--vertical .vxe-split-pane-action-btn-wrapper div{margin-left:1em}.vxe-split-pane-handle.is--vertical .vxe-split-pane-action-btn-wrapper div:first-child{margin-left:0}.vxe-split-pane-handle.is--vertical .vxe-split-pane-handle-bar{height:var(--vxe-ui-split-handle-bar-vertical-height);width:100%}.vxe-split-pane-handle.is--vertical .vxe-split-pane-action-btn{width:var(--vxe-ui-split-handle-bar-vertical-width);height:var(--vxe-ui-split-handle-bar-vertical-height)}.vxe-split-pane-handle.is--resize.is-resize--immediate.is--horizontal .vxe-split-pane-handle-bar{cursor:w-resize}.vxe-split-pane-handle.is--resize.is-resize--immediate.is--vertical .vxe-split-pane-handle-bar{cursor:n-resize}.vxe-split-pane-handle.is--resize.is-resize--immediate>.vxe-split-pane-handle-bar:active{background-color:var(--vxe-ui-font-primary-color)}.vxe-split-pane-handle.is--resize.is-resize--lazy.is--horizontal .vxe-split-pane-handle-bar{cursor:col-resize}.vxe-split-pane-handle.is--resize.is-resize--lazy.is--vertical .vxe-split-pane-handle-bar{cursor:row-resize}.vxe-split-pane{display:flex;position:relative;overflow:hidden}.vxe-split-pane.is--fill{flex-grow:1}.vxe-split-pane.is--hidden.is--horizontal{width:0}.vxe-split-pane.is--hidden.is--vertical{height:0}.vxe-split-pane.is--padding>.vxe-split-pane--wrapper{padding:var(--vxe-ui-layout-padding-default)}.vxe-split-pane.is--height,.vxe-split-pane.is--hidden,.vxe-split-pane.is--width{flex-shrink:0}.vxe-split-pane.is--border>.vxe-split-pane--wrapper{border:1px solid var(--vxe-ui-base-popup-border-color)}.vxe-split--render-vars{width:0;height:0;overflow:hidden}.vxe-split--render-vars .vxe-split--handle-bar-info{width:var(--vxe-ui-split-handle-bar-horizontal-width);height:var(--vxe-ui-split-handle-bar-vertical-height)}.vxe-modal--content>.vxe-split{height:100%}
|