vxe-gantt 3.3.0 → 3.3.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.
@@ -1 +1 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _comp=require("../../ui/src/comp"),_core=require("@vxe-ui/core"),_xeUtils=_interopRequireDefault(require("xe-utils")),_util=require("./util"),_utils=require("../../ui/src/utils");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}var getIcon=_core.VxeUI.getIcon,renderEmptyElement=_core.VxeUI.renderEmptyElement,sourceType="gantt",viewType="chart",_default=exports.default=(0,_comp.defineVxeComponent)({name:"VxeGanttViewChart",inject:{$xeGantt:{default:null},$xeGanttView:{default:null}},props:{},data:function(){return{}},computed:Object.assign({},{}),methods:{renderTaskBar:function(s,o,e,t,r,a,n,i,G){var l,c,u=this.$xeGantt,d=o.resizeHeightFlag,p=o.pendingRowFlag,v=o.fullAllDataRowIdData,M=o.pendingRowMaps,w=o.computeCellOpts,h=o.computeRowOpts,f=o.computeDefaultRowHeight,m=o.computeTreeOpts,m=m.children||m.childrenField,g=u.reactData,x=u.$scopedSlots,x=x.taskBar||x["task-bar"],R=u.treeConfig,y=u.taskBarMilestoneConfig,F=u.taskBarSubviewConfig,b=g.activeLink,g=g.activeBarRowid,L=u.computeTitleField,W=u.computeProgressField,j=u.computeTypeField,k=u.computeTaskBarOpts,_=u.computeTaskBarMilestoneOpts,T=u.computeTaskBarSubviewOpts,E=u.computeScaleUnit,C={$gantt:u,row:e,scaleType:E},S=k.showProgress,A=k.showContent,B=k.contentMethod,$=k.barStyle,I=k.moveable,k=k.showTooltip,U=_xeUtils.default.isFunction($),O=($?U?$(C):$:{})||{},V=O.round,$=v[t]||{},v=d?(0,_util.getCellRestHeight)($,w,h,f):0,d=(0,_utils.getStringValue)(_xeUtils.default.get(e,L)),$=S?Math.min(100,Math.max(0,_xeUtils.default.toNumber(_xeUtils.default.get(e,W)))):0,w=(0,_util.getTaskType)(_xeUtils.default.get(e,j)),h={},f={width:"".concat($||0,"%")},D=(U&&($=O.bgColor,l=O.completedBgColor,$&&(h.backgroundColor=$),l)&&(f.backgroundColor=l),{$gantt:u,source:sourceType,type:viewType,scaleType:E,row:e,$rowIndex:a,rowIndex:r,_rowIndex:n}),$=[];return u.renderGanttTaskBarContent?$=u.renderGanttTaskBarContent(s,D,{$gantt:u,$table:o,rowid:t}):(l=!(!(0,_utils.hasEnableConf)(y,_)||!(0,_util.hasMilestoneTask)(w)),a=!(!(0,_utils.hasEnableConf)(F,T)||!(0,_util.hasSubviewTask)(w)),B&&(d=(0,_utils.getStringValue)(B({row:e,title:d,scaleType:E}))),r={},k&&(r.mouseover=function(e){var t=Object.assign({$event:e},D);u.dispatchEvent("task-bar-mouseenter",t,e)},r.mouseleave=function(e){var t=Object.assign({$event:e},D);u.dispatchEvent("task-bar-mouseleave",t,e)}),x?$.push(s("div",{key:"cbc",class:"vxe-gantt-view--chart-custom-bar-content-wrapper",on:r},u.callSlot(x,C,s))):a&&R&&i&&i.length?G?T.showOverview&&$.push(s("div",{key:"vcso",class:"vxe-gantt-view--chart-subview-wrapper is--overview"},[s("div",{key:t,attrs:{rowid:t},class:["vxe-gantt-view--chart-subview-row",{"is--progress":S,"is--round":V,"is--move":I}]},[s("div",{attrs:{rowid:t},class:"vxe-gantt-view--chart-subview-bar"},[s("div",{class:"vxe-gantt-view--chart-subview-bar-content-wrapper"},[A?s("div",{class:"vxe-gantt-view--chart-content"},d):renderEmptyElement(u)])])])])):(c=[],_xeUtils.default.eachTree(i,function(e){var t,r=o.getRowid(e),a=(0,_utils.getStringValue)(_xeUtils.default.get(e,L)),n=S?Math.min(100,Math.max(0,_xeUtils.default.toNumber(_xeUtils.default.get(e,W)))):0,i=(0,_util.getTaskType)(_xeUtils.default.get(e,j));(!(0,_utils.hasEnableConf)(F,T)||!(0,_util.hasSubviewTask)(i))&&(n={width:"".concat(n||0,"%")},U&&(t=O.completedBgColor)&&(n.backgroundColor=t),B&&(a=(0,_utils.getStringValue)(B({row:e,title:a,scaleType:E}))),c.push(s("div",{key:r,attrs:{rowid:r},class:["vxe-gantt-view--chart-subview-row","is--".concat(i),{"is--progress":S,"is--round":V,"is--move":I,"row--pending":!!p&&!!M[r]}]},[s("div",{attrs:{rowid:r},class:"vxe-gantt-view--chart-subview-bar"},[s("div",{class:"vxe-gantt-view--chart-subview-bar-content-wrapper"},[S?s("div",{class:"vxe-gantt-view--chart-progress",style:n}):renderEmptyElement(u),A?s("div",{class:"vxe-gantt-view--chart-content"},a):renderEmptyElement(u)])])])))},{children:m}),$.push(s("div",{key:"vcsc",class:"vxe-gantt-view--chart-subview-wrappe is--inliner"},c))):l?(n=_.icon,y=_.iconStatus,k=_.iconStyle,a={$gantt:u,row:e},$.push(s("div",{key:"vcm",class:"vxe-gantt-view--chart-milestone-wrapper",on:r},[s("div",{class:["vxe-gantt-view--chart-milestone-icon",y?"theme--".concat(_xeUtils.default.isFunction(y)?y(a):y):""],style:k?Object.assign({},_xeUtils.default.isFunction(k)?k(a):k):void 0},[s("i",{class:(n?_xeUtils.default.isFunction(n)?n(a):n:"")||getIcon().GANTT_VIEW_TASK_MILESTONE})]),A?s("div",{class:"vxe-gantt-view--chart-milestone-content"},d):renderEmptyElement(u)]))):$.push(s("div",{key:"vbc",class:"vxe-gantt-view--chart-bar-content-wrapper",on:r},[S?s("div",{class:"vxe-gantt-view--chart-progress",style:f}):renderEmptyElement(u),A?s("div",{class:"vxe-gantt-view--chart-content"},d):renderEmptyElement(u)]))),s("div",{key:t,attrs:{rowid:t},class:["vxe-gantt-view--chart-row","is--".concat(w),{"is--progress":S,"row--pending":!!p&&!!M[t],"is--round":V,"is--move":I}],style:{height:"".concat(v,"px")},on:{contextmenu:function(e){u.handleTaskBarContextmenuEvent(e,D)}}},[s("div",{class:[x?"vxe-gantt-view--chart-custom-bar":"vxe-gantt-view--chart-bar","is--".concat(w),{"is--active":g===t,"active--link":b&&(t==="".concat(b.from)||t==="".concat(b.to))}],style:h,attrs:{rowid:t},on:{click:function(e){u.handleTaskBarClickEvent(e,C)},dblclick:function(e){u.handleTaskBarDblclickEvent(e,C)},mousedown:function(e){u.handleTaskBarMousedownEvent&&u.handleTaskBarMousedownEvent(e,C)}}},$)])},renderTaskRows:function(o,l,e){var c=this,t=c.$xeGanttView.reactData,u=l.treeConfig,d=l.treeExpandedFlag,p=l.fullAllDataRowIdData,v=l.treeExpandedMaps,r=l.computeTreeOpts,w=r.transform,h=r.children||r.childrenField,f=t.scrollYLoad,m=[];return e.forEach(function(e,t){var r=l.getRowid(e),a=p[r]||{},n=t,i=-1,a=(a&&(n=a.index,i=a._index),!1),s=[];u&&(s=e[h],a=!!d&&s&&0<s.length&&!!v[r]),m.push(c.renderTaskBar(o,l,e,r,n,t,i,s,a)),u&&a&&!f&&!w&&m.push.apply(m,_toConsumableArray(c.renderTaskRows(o,l,s)))}),m},renderVN:function(e){var t=this.$xeGantt,r=this.$xeGanttView,a=t.reactData,n=r.internalData.xeTable,a=a.dragLinkFromStore,r=r.reactData.tableData,i=t.computeTaskLinkOpts,s=i.isCurrent,o=t.computeTaskBarOpts.linkCreatable;return e("div",{ref:"refElem",class:["vxe-gantt-view--chart-wrapper",{"is--cl-drag":a.rowid}]},[t.renderGanttTaskChartBefores?e("div",{ref:"refChartBeforeWrapperElem",class:["vxe-gantt-view--chart-before-wrapper",{"link--current":s,"link--hover":i.isHover}]},n&&(0,_utils.isEnableConf)(i)?t.renderGanttTaskChartBefores(e):[]):renderEmptyElement(t),e("div",{ref:"refTaskWrapperElem",class:["vxe-gantt-view--chart-task-wrapper",{"link--current":s,"link--create":o}]},n?this.renderTaskRows(e,n,r):[]),t.renderGanttTaskChartAfters?e("div",{ref:"refChartAfterWrapperElem",class:"vxe-gantt-view--chart-after-wrapper"},n&&(0,_utils.isEnableConf)(i)?t.renderGanttTaskChartAfters(e):[]):renderEmptyElement(t)])}},mounted:function(){var e=this.$xeGanttView.internalData.elemStore,t="main-chart-";e["".concat(t,"task-wrapper")]=this.$refs.refTaskWrapperElem,e["".concat(t,"before-wrapper")]=this.$refs.refChartBeforeWrapperElem,e["".concat(t,"after-wrapper")]=this.$refs.refChartAfterWrapperElem},destroyed:function(){var e=this.$xeGanttView.internalData.elemStore,t="main-chart-";e["".concat(t,"task-wrapper")]=null,e["".concat(t,"before-wrapper")]=null,e["".concat(t,"after-wrapper")]=null},render:function(e){return this.renderVN(e)}});
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _comp=require("../../ui/src/comp"),_core=require("@vxe-ui/core"),_xeUtils=_interopRequireDefault(require("xe-utils")),_util=require("./util"),_utils=require("../../ui/src/utils");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}var getIcon=_core.VxeUI.getIcon,renderEmptyElement=_core.VxeUI.renderEmptyElement,sourceType="gantt",viewType="chart",_default=exports.default=(0,_comp.defineVxeComponent)({name:"VxeGanttViewChart",inject:{$xeGantt:{default:null},$xeGanttView:{default:null}},props:{},data:function(){return{}},computed:Object.assign({},{}),methods:{renderTaskBar:function(l,c,e,t,r,a,n,i,R){var u,d,v=this.$xeGantt,o=c.resizeHeightFlag,V=c.pendingRowFlag,s=c.fullAllDataRowIdData,G=c.pendingRowMaps,p=c.computeCellOpts,w=c.computeRowOpts,h=c.computeDefaultRowHeight,g=c.computeTreeOpts,g=g.children||g.childrenField,f=v.reactData,F=v.internalData,m=v.$scopedSlots,b=m.taskBar||m["task-bar"],m=m.taskBarOverview||m["task-bar-overview"],L=v.treeConfig,k=v.taskBarMilestoneConfig,W=v.taskBarSubviewConfig,x=f.activeLink,f=f.activeBarRowid,j=v.computeTitleField,q=v.computeProgressField,H=v.computeTypeField,y=v.computeTaskBarOpts,T=v.computeTaskBarMilestoneOpts,_=v.computeTaskBarSubviewOpts,E=v.computeScaleUnit,C={$gantt:v,row:e,scaleType:E},B=y.showProgress,S=y.showContent,A=y.contentMethod,$=y.barStyle,I=y.moveable,y=y.showTooltip,D=_xeUtils.default.isFunction($),M=($?D?$(C):$:{})||{},N=M.round,s=s[t]||{},o=o?(0,_util.getCellRestHeight)(s,p,w,h):0,s=(0,_utils.getStringValue)(_xeUtils.default.get(e,j)),p=B?Math.min(100,Math.max(0,_xeUtils.default.toNumber(_xeUtils.default.get(e,q)))):0,w=(0,_util.getTaskType)(_xeUtils.default.get(e,H)),h={},p={width:"".concat(p||0,"%")},O=(D&&(U=M.bgColor,M=M.completedBgColor,U&&(h.backgroundColor=U),M)&&(p.backgroundColor=M),{$gantt:v,source:sourceType,type:viewType,scaleType:E,row:e,$rowIndex:a,rowIndex:r,_rowIndex:n}),U=[];return v.renderGanttTaskBarContent?U=v.renderGanttTaskBarContent(l,O,{$gantt:v,$table:c,rowid:t}):(M=!(!(0,_utils.hasEnableConf)(k,T)||!(0,_util.hasMilestoneTask)(w)),a=!(!(0,_utils.hasEnableConf)(W,_)||!(0,_util.hasSubviewTask)(w)),A&&(s=(0,_utils.getStringValue)(A({row:e,title:s,scaleType:E}))),u={},y&&(u.mouseover=function(e){var t=F.dragBarRow,r=Object.assign({$event:e},O);t||v.triggerTaskBarTooltipEvent(e,r),v.dispatchEvent("task-bar-mouseenter",r,e)},u.mouseleave=function(e){var t=F.dragBarRow,r=Object.assign({$event:e},O);t||v.handleTaskBarTooltipLeaveEvent(e,r),v.dispatchEvent("task-bar-mouseleave",r,e)}),a&&L&&i&&i.length?R?_.showOverview&&U.push(l("div",{key:"vcso",class:"vxe-gantt-view--chart-subview-wrapper is--overview"},[l("div",{key:t,attrs:{rowid:t},class:["vxe-gantt-view--chart-subview-row",{"is--progress":B,"is--round":N,"is--move":I}]},[l("div",{attrs:{rowid:t},class:[m?"vxe-gantt-view--chart-subview-custom-bar":"vxe-gantt-view--chart-subview-bar","is--".concat(w)]},[m?l("div",{key:"cbc",class:"vxe-gantt-view--chart-subview-custom-bar-content-wrapper"},v.callSlot(m,C,l)):l("div",{class:"vxe-gantt-view--chart-subview-bar-content-wrapper"},[S?l("div",{class:"vxe-gantt-view--chart-content"},s):renderEmptyElement(v)])])])])):(d=[],_xeUtils.default.eachTree(i,function(e){var t={$gantt:v,row:e,scaleType:E},r=($?D?$(t):$:{})||{},a=r.round,n=c.getRowid(e),i=(0,_utils.getStringValue)(_xeUtils.default.get(e,j)),o=B?Math.min(100,Math.max(0,_xeUtils.default.toNumber(_xeUtils.default.get(e,q)))):0,s=(0,_util.getTaskType)(_xeUtils.default.get(e,H));(!(0,_utils.hasEnableConf)(W,_)||!(0,_util.hasSubviewTask)(s))&&(o={width:"".concat(o||0,"%")},D&&(r.bgColor,r=r.completedBgColor)&&(o.backgroundColor=r),A&&(i=(0,_utils.getStringValue)(A({row:e,title:i,scaleType:E}))),d.push(l("div",{key:n,attrs:{rowid:n},class:["vxe-gantt-view--chart-subview-row","is--".concat(s),{"is--progress":B,"is--round":a,"is--move":I,"row--pending":!!V&&!!G[n]}]},[l("div",{attrs:{rowid:n},class:[b?"vxe-gantt-view--chart-subview-custom-bar":"vxe-gantt-view--chart-subview-bar","is--".concat(s)],on:{click:function(e){e.stopPropagation(),v.handleTaskBarClickEvent(e,C)},dblclick:function(e){e.stopPropagation(),v.handleTaskBarDblclickEvent(e,C)},mousedown:function(e){e.stopPropagation(),v.handleTaskBarMousedownEvent&&v.handleTaskBarMousedownEvent(e,C)}}},[b?l("div",{key:"cbc",class:"vxe-gantt-view--chart-subview-custom-bar-content-wrapper",on:u},v.callSlot(b,t,l)):l("div",{class:"vxe-gantt-view--chart-subview-bar-content-wrapper",on:u},[B?l("div",{class:"vxe-gantt-view--chart-progress",style:o}):renderEmptyElement(v),S?l("div",{class:"vxe-gantt-view--chart-content"},i):renderEmptyElement(v)])])])))},{children:g}),U.push(l("div",{key:"vcsc",class:"vxe-gantt-view--chart-subview-wrappe is--inliner"},d))):b?U.push(l("div",{key:"cbc",class:"vxe-gantt-view--chart-custom-bar-content-wrapper",on:u},v.callSlot(b,C,l))):M?(r=T.icon,n=T.iconStatus,k=T.iconStyle,y={$gantt:v,row:e},U.push(l("div",{key:"vcm",class:"vxe-gantt-view--chart-milestone-wrapper",on:u},[l("div",{class:["vxe-gantt-view--chart-milestone-icon",n?"theme--".concat(_xeUtils.default.isFunction(n)?n(y):n):""],style:k?Object.assign({},_xeUtils.default.isFunction(k)?k(y):k):void 0},[l("i",{class:(r?_xeUtils.default.isFunction(r)?r(y):r:"")||getIcon().GANTT_VIEW_TASK_MILESTONE})]),S?l("div",{class:"vxe-gantt-view--chart-milestone-content"},s):renderEmptyElement(v)]))):U.push(l("div",{key:"vbc",class:"vxe-gantt-view--chart-bar-content-wrapper",on:u},[B?l("div",{class:"vxe-gantt-view--chart-progress",style:p}):renderEmptyElement(v),S?l("div",{class:"vxe-gantt-view--chart-content"},s):renderEmptyElement(v)]))),l("div",{key:t,attrs:{rowid:t},class:["vxe-gantt-view--chart-row","is--".concat(w),{"is--progress":B,"row--pending":!!V&&!!G[t],"is--round":N,"is--move":I}],style:{height:"".concat(o,"px")},on:{contextmenu:function(e){v.handleTaskBarContextmenuEvent(e,O)}}},[l("div",{class:[b?"vxe-gantt-view--chart-custom-bar":"vxe-gantt-view--chart-bar","is--".concat(w),{"is--active":f===t,"active--link":x&&(t==="".concat(x.from)||t==="".concat(x.to))}],style:h,attrs:{rowid:t},on:{click:function(e){v.handleTaskBarClickEvent(e,C)},dblclick:function(e){v.handleTaskBarDblclickEvent(e,C)},mousedown:function(e){v.handleTaskBarMousedownEvent&&v.handleTaskBarMousedownEvent(e,C)}}},U)])},renderTaskRows:function(s,l,e){var c=this,t=c.$xeGanttView.reactData,u=l.treeConfig,d=l.treeExpandedFlag,v=l.fullAllDataRowIdData,p=l.treeExpandedMaps,r=l.computeTreeOpts,w=r.transform,h=r.children||r.childrenField,g=t.scrollYLoad,f=[];return e.forEach(function(e,t){var r=l.getRowid(e),a=v[r]||{},n=t,i=-1,a=(a&&(n=a.index,i=a._index),!1),o=[];u&&(o=e[h],a=!!d&&o&&0<o.length&&!!p[r]),f.push(c.renderTaskBar(s,l,e,r,n,t,i,o,a)),u&&a&&!g&&!w&&f.push.apply(f,_toConsumableArray(c.renderTaskRows(s,l,o)))}),f},renderVN:function(e){var t=this.$xeGantt,r=this.$xeGanttView,a=t.reactData,n=r.internalData.xeTable,a=a.dragLinkFromStore,r=r.reactData.tableData,i=t.computeTaskLinkOpts,o=i.isCurrent,s=t.computeTaskBarOpts.linkCreatable;return e("div",{ref:"refElem",class:["vxe-gantt-view--chart-wrapper",{"is--cl-drag":a.rowid}]},[t.renderGanttTaskChartBefores?e("div",{ref:"refChartBeforeWrapperElem",class:["vxe-gantt-view--chart-before-wrapper",{"link--current":o,"link--hover":i.isHover}]},n&&(0,_utils.isEnableConf)(i)?t.renderGanttTaskChartBefores(e):[]):renderEmptyElement(t),e("div",{ref:"refTaskWrapperElem",class:["vxe-gantt-view--chart-task-wrapper",{"link--current":o,"link--create":s}]},n?this.renderTaskRows(e,n,r):[]),t.renderGanttTaskChartAfters?e("div",{ref:"refChartAfterWrapperElem",class:"vxe-gantt-view--chart-after-wrapper"},n&&(0,_utils.isEnableConf)(i)?t.renderGanttTaskChartAfters(e):[]):renderEmptyElement(t)])}},mounted:function(){var e=this.$xeGanttView.internalData.elemStore,t="main-chart-";e["".concat(t,"task-wrapper")]=this.$refs.refTaskWrapperElem,e["".concat(t,"before-wrapper")]=this.$refs.refChartBeforeWrapperElem,e["".concat(t,"after-wrapper")]=this.$refs.refChartAfterWrapperElem},destroyed:function(){var e=this.$xeGanttView.internalData.elemStore,t="main-chart-";e["".concat(t,"task-wrapper")]=null,e["".concat(t,"before-wrapper")]=null,e["".concat(t,"after-wrapper")]=null},render:function(e){return this.renderVN(e)}});
@@ -30,18 +30,21 @@
30
30
  border-radius: var(--vxe-ui-gantt-view-task-bar-border-radius);
31
31
  }
32
32
 
33
- .vxe-gantt-view--chart-subview-row.row--pending .vxe-gantt-view--chart-subview-bar {
33
+ .vxe-gantt-view--chart-subview-row.row--pending .vxe-gantt-view--chart-subview-bar,
34
+ .vxe-gantt-view--chart-subview-row.row--pending .vxe-gantt-view--chart-subview-custom-bar {
34
35
  color: var(--vxe-ui-font-disabled-color);
35
36
  opacity: 0.5;
36
37
  text-decoration: line-through;
37
38
  }
38
- .vxe-gantt-view--chart-subview-row.is--round > .vxe-gantt-view--chart-subview-bar {
39
+ .vxe-gantt-view--chart-subview-row.is--round > .vxe-gantt-view--chart-subview-bar, .vxe-gantt-view--chart-subview-row.is--round > .vxe-gantt-view--chart-subview-custom-bar {
39
40
  border-radius: var(--vxe-ui-gantt-view-task-bar-border-radius);
40
41
  }
41
- .vxe-gantt-view--chart-subview-row.is--round > .vxe-gantt-view--chart-subview-bar .vxe-gantt-view--chart-subview-bar-content-wrapper {
42
+ .vxe-gantt-view--chart-subview-row.is--round > .vxe-gantt-view--chart-subview-bar .vxe-gantt-view--chart-subview-bar-content-wrapper,
43
+ .vxe-gantt-view--chart-subview-row.is--round > .vxe-gantt-view--chart-subview-bar .vxe-gantt-view--chart-subview-custom-bar-content-wrapper, .vxe-gantt-view--chart-subview-row.is--round > .vxe-gantt-view--chart-subview-custom-bar .vxe-gantt-view--chart-subview-bar-content-wrapper,
44
+ .vxe-gantt-view--chart-subview-row.is--round > .vxe-gantt-view--chart-subview-custom-bar .vxe-gantt-view--chart-subview-custom-bar-content-wrapper {
42
45
  border-radius: var(--vxe-ui-gantt-view-task-bar-border-radius);
43
46
  }
44
- .vxe-gantt-view--chart-subview-row.is--round > .vxe-gantt-view--chart-subview-bar:hover::after {
47
+ .vxe-gantt-view--chart-subview-row.is--round > .vxe-gantt-view--chart-subview-bar:hover::after, .vxe-gantt-view--chart-subview-row.is--round > .vxe-gantt-view--chart-subview-custom-bar:hover::after {
45
48
  border-radius: var(--vxe-ui-gantt-view-task-bar-border-radius);
46
49
  }
47
50
 
@@ -51,8 +54,9 @@
51
54
  }
52
55
 
53
56
  .vxe-gantt-view--chart-bar,
57
+ .vxe-gantt-view--chart-custom-bar,
54
58
  .vxe-gantt-view--chart-subview-bar,
55
- .vxe-gantt-view--chart-custom-bar {
59
+ .vxe-gantt-view--chart-subview-custom-bar {
56
60
  display: flex;
57
61
  flex-direction: row;
58
62
  position: absolute;
@@ -62,35 +66,36 @@
62
66
  pointer-events: all;
63
67
  }
64
68
 
65
- .vxe-gantt-view--chart-row.is--progress > .vxe-gantt-view--chart-bar.is--default {
69
+ .vxe-gantt-view--chart-row.is--progress > .vxe-gantt-view--chart-bar.is--default, .vxe-gantt-view--chart-row.is--progress > .vxe-gantt-view--chart-custom-bar.is--default {
66
70
  color: #ffffff;
67
71
  background-color: var(--vxe-ui-gantt-view-task-bar-background-color);
68
72
  }
69
- .vxe-gantt-view--chart-row:not(.is--progress) > .vxe-gantt-view--chart-bar.is--default {
73
+ .vxe-gantt-view--chart-row:not(.is--progress) > .vxe-gantt-view--chart-bar.is--default, .vxe-gantt-view--chart-row:not(.is--progress) > .vxe-gantt-view--chart-custom-bar.is--default {
70
74
  color: #ffffff;
71
75
  background-color: var(--vxe-ui-gantt-view-task-bar-completed-background-color);
72
76
  }
73
77
 
74
- .vxe-gantt-view--chart-subview-row.is--progress > .vxe-gantt-view--chart-subview-bar.is--subview {
78
+ .vxe-gantt-view--chart-subview-row.is--progress > .vxe-gantt-view--chart-subview-bar.is--subview, .vxe-gantt-view--chart-subview-row.is--progress > .vxe-gantt-view--chart-subview-custom-bar.is--subview {
75
79
  color: #ffffff;
76
80
  background-color: var(--vxe-ui-gantt-view-task-bar-overview-background-color);
77
81
  }
78
- .vxe-gantt-view--chart-subview-row.is--progress > .vxe-gantt-view--chart-subview-bar.is--default {
82
+ .vxe-gantt-view--chart-subview-row.is--progress > .vxe-gantt-view--chart-subview-bar.is--default, .vxe-gantt-view--chart-subview-row.is--progress > .vxe-gantt-view--chart-subview-custom-bar.is--default {
79
83
  color: #ffffff;
80
84
  background-color: var(--vxe-ui-gantt-view-task-bar-background-color);
81
85
  }
82
- .vxe-gantt-view--chart-subview-row:not(.is--progress) > .vxe-gantt-view--chart-subview-bar.is--subview {
86
+ .vxe-gantt-view--chart-subview-row:not(.is--progress) > .vxe-gantt-view--chart-subview-bar.is--subview, .vxe-gantt-view--chart-subview-row:not(.is--progress) > .vxe-gantt-view--chart-subview-custom-bar.is--subview {
83
87
  color: #ffffff;
84
88
  background-color: var(--vxe-ui-gantt-view-task-bar-overview-background-color);
85
89
  }
86
- .vxe-gantt-view--chart-subview-row:not(.is--progress) > .vxe-gantt-view--chart-subview-bar.is--default {
90
+ .vxe-gantt-view--chart-subview-row:not(.is--progress) > .vxe-gantt-view--chart-subview-bar.is--default, .vxe-gantt-view--chart-subview-row:not(.is--progress) > .vxe-gantt-view--chart-subview-custom-bar.is--default {
87
91
  color: #ffffff;
88
92
  background-color: var(--vxe-ui-gantt-view-task-bar-completed-background-color);
89
93
  }
90
94
 
91
95
  .vxe-gantt-view--chart-bar-content-wrapper,
92
96
  .vxe-gantt-view--chart-custom-bar-content-wrapper,
93
- .vxe-gantt-view--chart-subview-bar-content-wrapper {
97
+ .vxe-gantt-view--chart-subview-bar-content-wrapper,
98
+ .vxe-gantt-view--chart-subview-custom-bar-content-wrapper {
94
99
  width: 100%;
95
100
  overflow: hidden;
96
101
  }
@@ -105,12 +110,16 @@
105
110
  }
106
111
 
107
112
  .vxe-gantt-view--chart-bar,
108
- .vxe-gantt-view--chart-subview-bar {
113
+ .vxe-gantt-view--chart-custom-bar,
114
+ .vxe-gantt-view--chart-subview-bar,
115
+ .vxe-gantt-view--chart-subview-custom-bar {
109
116
  align-items: center;
110
- height: var(--vxe-ui-gantt-view-chart-bar-height);
117
+ min-height: var(--vxe-ui-gantt-view-chart-bar-height);
111
118
  }
112
119
  .vxe-gantt-view--chart-bar.is--default:hover::after,
113
- .vxe-gantt-view--chart-subview-bar.is--default:hover::after {
120
+ .vxe-gantt-view--chart-custom-bar.is--default:hover::after,
121
+ .vxe-gantt-view--chart-subview-bar.is--default:hover::after,
122
+ .vxe-gantt-view--chart-subview-custom-bar.is--default:hover::after {
114
123
  content: "";
115
124
  position: absolute;
116
125
  top: 0;
@@ -121,7 +130,9 @@
121
130
  pointer-events: none;
122
131
  }
123
132
  .vxe-gantt-view--chart-bar.is--milestone,
124
- .vxe-gantt-view--chart-subview-bar.is--milestone {
133
+ .vxe-gantt-view--chart-custom-bar.is--milestone,
134
+ .vxe-gantt-view--chart-subview-bar.is--milestone,
135
+ .vxe-gantt-view--chart-subview-custom-bar.is--milestone {
125
136
  white-space: nowrap;
126
137
  }
127
138
 
@@ -1 +1 @@
1
- @charset "UTF-8";.vxe-gantt-view--chart-task-wrapper{position:absolute;top:0;left:0;pointer-events:none}.vxe-gantt-view--chart-row,.vxe-gantt-view--chart-subview-row{position:relative;width:100%;height:0}.vxe-gantt-view--chart-row.row--pending .vxe-gantt-view--chart-bar{color:var(--vxe-ui-font-disabled-color);opacity:.5;text-decoration:line-through}.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-bar,.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-custom-bar{border-radius:var(--vxe-ui-gantt-view-task-bar-border-radius)}.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-bar .vxe-gantt-view--chart-bar-content-wrapper,.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-bar .vxe-gantt-view--chart-custom-bar-content-wrapper,.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-custom-bar .vxe-gantt-view--chart-bar-content-wrapper,.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-custom-bar .vxe-gantt-view--chart-custom-bar-content-wrapper{border-radius:var(--vxe-ui-gantt-view-task-bar-border-radius)}.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-bar:hover::after,.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-custom-bar:hover::after{border-radius:var(--vxe-ui-gantt-view-task-bar-border-radius)}.vxe-gantt-view--chart-subview-row.row--pending .vxe-gantt-view--chart-subview-bar{color:var(--vxe-ui-font-disabled-color);opacity:.5;text-decoration:line-through}.vxe-gantt-view--chart-subview-row.is--round>.vxe-gantt-view--chart-subview-bar{border-radius:var(--vxe-ui-gantt-view-task-bar-border-radius)}.vxe-gantt-view--chart-subview-row.is--round>.vxe-gantt-view--chart-subview-bar .vxe-gantt-view--chart-subview-bar-content-wrapper{border-radius:var(--vxe-ui-gantt-view-task-bar-border-radius)}.vxe-gantt-view--chart-subview-row.is--round>.vxe-gantt-view--chart-subview-bar:hover::after{border-radius:var(--vxe-ui-gantt-view-task-bar-border-radius)}.vxe-gantt-view--chart-subview-wrapper.is--overview>.vxe-gantt-view--chart-subview-row .vxe-gantt-view--chart-subview-bar{color:#fff;background-color:var(--vxe-ui-gantt-view-task-bar-overview-background-color)}.vxe-gantt-view--chart-bar,.vxe-gantt-view--chart-custom-bar,.vxe-gantt-view--chart-subview-bar{display:flex;flex-direction:row;position:absolute;top:50%;left:0;transform:translateY(-50%);pointer-events:all}.vxe-gantt-view--chart-row.is--progress>.vxe-gantt-view--chart-bar.is--default{color:#fff;background-color:var(--vxe-ui-gantt-view-task-bar-background-color)}.vxe-gantt-view--chart-row:not(.is--progress)>.vxe-gantt-view--chart-bar.is--default{color:#fff;background-color:var(--vxe-ui-gantt-view-task-bar-completed-background-color)}.vxe-gantt-view--chart-subview-row.is--progress>.vxe-gantt-view--chart-subview-bar.is--subview{color:#fff;background-color:var(--vxe-ui-gantt-view-task-bar-overview-background-color)}.vxe-gantt-view--chart-subview-row.is--progress>.vxe-gantt-view--chart-subview-bar.is--default{color:#fff;background-color:var(--vxe-ui-gantt-view-task-bar-background-color)}.vxe-gantt-view--chart-subview-row:not(.is--progress)>.vxe-gantt-view--chart-subview-bar.is--subview{color:#fff;background-color:var(--vxe-ui-gantt-view-task-bar-overview-background-color)}.vxe-gantt-view--chart-subview-row:not(.is--progress)>.vxe-gantt-view--chart-subview-bar.is--default{color:#fff;background-color:var(--vxe-ui-gantt-view-task-bar-completed-background-color)}.vxe-gantt-view--chart-bar-content-wrapper,.vxe-gantt-view--chart-custom-bar-content-wrapper,.vxe-gantt-view--chart-subview-bar-content-wrapper{width:100%;overflow:hidden}.vxe-gantt-view--chart-bar-content-wrapper,.vxe-gantt-view--chart-subview-bar-content-wrapper{width:100%;height:100%;display:flex;flex-direction:row;align-items:center}.vxe-gantt-view--chart-bar,.vxe-gantt-view--chart-subview-bar{align-items:center;height:var(--vxe-ui-gantt-view-chart-bar-height)}.vxe-gantt-view--chart-bar.is--default:hover::after,.vxe-gantt-view--chart-subview-bar.is--default:hover::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.1);pointer-events:none}.vxe-gantt-view--chart-bar.is--milestone,.vxe-gantt-view--chart-subview-bar.is--milestone{white-space:nowrap}.vxe-gantt-view--chart-progress{flex-shrink:0;width:0;height:100%;text-align:left;background-color:var(--vxe-ui-gantt-view-task-bar-completed-background-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-gantt-view--chart-content{position:absolute;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9em;padding:0 .6em}.vxe-gantt-view--chart-milestone-wrapper{display:flex;flex-direction:row;align-items:center}.vxe-gantt-view--chart-milestone-icon{flex-shrink:0;padding:0 .3em;color:var(--vxe-ui-font-primary-color)}.vxe-gantt-view--chart-milestone-icon.theme--primary{color:var(--vxe-ui-font-primary-color)}.vxe-gantt-view--chart-milestone-icon.theme--success{color:var(--vxe-ui-status-success-color)}.vxe-gantt-view--chart-milestone-icon.theme--info{color:var(--vxe-ui-status-info-color)}.vxe-gantt-view--chart-milestone-icon.theme--warning{color:var(--vxe-ui-status-warning-color)}.vxe-gantt-view--chart-milestone-icon.theme--danger{color:var(--vxe-ui-status-danger-color)}.vxe-gantt-view--chart-milestone-icon.theme--error{color:var(--vxe-ui-status-error-color)}.vxe-gantt-view--chart-milestone-icon i{display:inline-block}.vxe-gantt-view--chart-milestone-content{flex-grow:1}.vxe-gantt-view--chart-row.row--drag-move,.vxe-gantt-view--chart-subview-row.row--drag-move{transition:transform .5s ease}.vxe-gantt-view--chart-row.row--drag-origin,.vxe-gantt-view--chart-subview-row.row--drag-origin{opacity:.3}.vxe-gantt{position:relative;display:flex;flex-direction:column}.vxe-gantt.is--loading:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:99;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--vxe-ui-loading-background-color)}.vxe-gantt.is--loading>.vxe-gantt-view .vxe-loading{background-color:transparent}.vxe-gantt.is--maximize{position:fixed;top:0;left:0;width:100%;height:100%;padding:.5em 1em;background-color:var(--vxe-ui-layout-background-color)}.vxe-gantt.is--split-drag{cursor:col-resize}.vxe-gantt.is--split-drag .vxe-gantt--table-wrapper::after,.vxe-gantt.is--split-drag .vxe-gantt--view-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;-ms-user-select:none;user-select:none}.vxe-gantt .vxe-gantt--bottom-wrapper,.vxe-gantt .vxe-gantt--form-wrapper,.vxe-gantt .vxe-gantt--top-wrapper{position:relative}.vxe-gantt .vxe-gantt--gantt-container{position:relative;display:flex;flex-direction:row}.vxe-gantt .vxe-gantt--left-wrapper,.vxe-gantt .vxe-gantt--right-wrapper{flex-shrink:0;overflow:auto;outline:0}.vxe-gantt .vxe-gantt--table-wrapper,.vxe-gantt .vxe-gantt--view-wrapper{display:none;position:relative;flex-grow:1;overflow:hidden}.vxe-gantt .vxe-gantt--view-split-bar{flex-shrink:0;width:var(--vxe-ui-gantt-view-split-bar-width)}.vxe-gantt .vxe-gantt--view-split-bar.is--resize{cursor:col-resize}.vxe-gantt .vxe-gantt--view-split-bar-handle{background-color:var(--vxe-ui-gantt-view-split-bar-background-color)}.vxe-gantt .vxe-gantt--view-split-bar-handle:active,.vxe-gantt .vxe-gantt--view-split-bar-handle:hover{background-color:var(--vxe-ui-gantt-view-split-bar-hover-background-color)}.vxe-gantt.show--left .vxe-gantt--table-wrapper{display:block}.vxe-gantt.show--left.show--right .vxe-gantt--table-wrapper{flex-grow:unset;flex-shrink:0;width:var(--vxe-ui-gantt-view-table-default-width)}.vxe-gantt.show--right .vxe-gantt--view-wrapper{display:block}.vxe-gantt--layout-body-wrapper{display:flex;flex-direction:row;overflow:auto;flex-grow:1}.vxe-gantt--layout-body-content-wrapper{flex-grow:1;overflow:hidden}.vxe-gantt--layout-aside-left-wrapper,.vxe-gantt--layout-footer-wrapper,.vxe-gantt--layout-header-wrapper{flex-shrink:0;overflow:auto}.vxe-gantt--border-line{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;pointer-events:none;border:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--full .vxe-gantt-view--body-column,.vxe-gantt.border--full .vxe-gantt-view--footer-column,.vxe-gantt.border--full .vxe-gantt-view--header-column{background-image:linear-gradient(var(--vxe-ui-table-border-color),var(--vxe-ui-table-border-color)),linear-gradient(var(--vxe-ui-table-border-color),var(--vxe-ui-table-border-color));background-repeat:no-repeat;background-size:var(--vxe-ui-table-border-width) 100%,100% var(--vxe-ui-table-border-width);background-position:right top,right bottom}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--default .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--inner .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--inner .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--outer .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--outer .vxe-gantt-view--scroll-y-top-corner::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;border-width:0;border-style:solid;border-color:var(--vxe-ui-table-border-color)}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--inner .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--outer .vxe-gantt-view--scroll-y-top-corner::before{border-bottom-width:var(--vxe-ui-table-border-width)}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt.border--inner .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt.border--outer .vxe-gantt-view--scroll-y-bottom-corner{border-top:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--default .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--full .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--inner .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--outer .vxe-gantt-view--scroll-x-handle-appearance{position:absolute;left:0;width:100%;height:100%;z-index:1;pointer-events:none}.vxe-gantt.border--default.sx-pos--top .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--full.sx-pos--top .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--inner.sx-pos--top .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--outer.sx-pos--top .vxe-gantt-view--scroll-x-handle-appearance{top:0;border-bottom:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--default.sx-pos--bottom .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--full.sx-pos--bottom .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--inner.sx-pos--bottom .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--outer.sx-pos--bottom .vxe-gantt-view--scroll-x-handle-appearance{bottom:0;height:calc(100% + var(--vxe-ui-table-border-width));border-top:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-top-corner::before{border-left-width:var(--vxe-ui-table-border-width);border-right-width:var(--vxe-ui-table-border-width)}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-bottom-corner::before{border-left-width:var(--vxe-ui-table-border-width);border-right-width:var(--vxe-ui-table-border-width)}.vxe-gantt.border--default.sy-pos--right .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--default.sy-pos--right .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--full.sy-pos--right .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--full.sy-pos--right .vxe-gantt-view--scroll-y-top-corner::before{width:calc(100% + 1px);left:-1px}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-handle-appearance,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-handle-appearance{position:absolute;top:0;width:100%;height:100%;z-index:1;pointer-events:none}.vxe-gantt.border--default.sy-pos--left .vxe-gantt-view--scroll-y-handle-appearance,.vxe-gantt.border--full.sy-pos--left .vxe-gantt-view--scroll-y-handle-appearance{left:0;border-right:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--default.sy-pos--right .vxe-gantt-view--scroll-y-handle-appearance,.vxe-gantt.border--full.sy-pos--right .vxe-gantt-view--scroll-y-handle-appearance{right:0;width:calc(100% + var(--vxe-ui-table-border-width));border-left:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--default .vxe-gantt-view--body-column,.vxe-gantt.border--default .vxe-gantt-view--footer-column,.vxe-gantt.border--default .vxe-gantt-view--header-column,.vxe-gantt.border--inner .vxe-gantt-view--body-column,.vxe-gantt.border--inner .vxe-gantt-view--footer-column,.vxe-gantt.border--inner .vxe-gantt-view--header-column{background-image:linear-gradient(var(--vxe-ui-table-border-color),var(--vxe-ui-table-border-color));background-repeat:no-repeat;background-size:100% var(--vxe-ui-table-border-width);background-position:right bottom}.vxe-gantt.border--default .vxe-gantt-view--footer-wrapper,.vxe-gantt.border--full .vxe-gantt-view--footer-wrapper,.vxe-gantt.border--inner .vxe-gantt-view--footer-wrapper{border-top:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--inner .vxe-gantt--border-line{border-width:0 0 1px 0}.vxe-gantt.border--none .vxe-gantt--border-line{display:none}.vxe-gantt--view-split-bar{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-gantt--view-split-bar-handle{position:absolute;top:0;left:0;width:100%;height:100%;z-index:3}.vxe-gantt--view-split-bar-btn-wrapper{display:flex;flex-direction:column;align-items:center;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:5;pointer-events:none}.vxe-gantt--view-split-bar-btn-wrapper>div{margin-top:1em}.vxe-gantt--view-split-bar-btn-wrapper>div:first-child{margin-top:0}.vxe-gantt--view-split-bar-left-btn,.vxe-gantt--view-split-bar-right-btn{display:flex;flex-direction:row;align-items:center;justify-content:center;height:var(--vxe-ui-gantt-view-split-bar-height);width:var(--vxe-ui-gantt-view-split-bar-width);color:var(--vxe-ui-layout-background-color);border-radius:var(--vxe-ui-base-border-radius);background-color:var(--vxe-ui-gantt-view-handle-background-color);border:1px solid var(--vxe-ui-input-border-color);pointer-events:all;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:all .1s ease-in-out}.vxe-gantt--view-split-bar-left-btn:hover,.vxe-gantt--view-split-bar-right-btn:hover{color:#fff;background-color:var(--vxe-ui-font-primary-color)}.vxe-gantt--view-split-bar-left-btn:active,.vxe-gantt--view-split-bar-right-btn:active{transform:scale(.9)}.vxe-gantt--view-split-bar-left-btn i,.vxe-gantt--view-split-bar-right-btn i{font-size:.5em}.vxe-gantt--resizable-split-tip{display:none;position:absolute;top:0;left:0;width:1px;height:100%;z-index:7;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:col-resize}.vxe-gantt--resizable-split-tip:before{content:"";display:block;height:100%;background-color:var(--vxe-ui-table-resizable-drag-line-color)}.vxe-gantt--resizable-split-tip-number{position:absolute;top:0;left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.vxe-gantt--resizable-split-number-left,.vxe-gantt--resizable-split-number-right{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-table-resizable-drag-line-color)}.vxe-gantt--resizable-split-number-left{right:0}.vxe-gantt--resizable-split-number-right{left:1px}.vxe-gantt.is--loading>.vxe-gantt-view--scroll-x-virtual{visibility:hidden}.vxe-gantt.is--loading>.vxe-gantt-view--layout-wrapper>.vxe-gantt-view--scroll-y-virtual{visibility:hidden}.vxe-gantt .vxe-gantt-view--scroll-x-virtual{height:0}.vxe-gantt .vxe-gantt-view--scroll-y-virtual{width:0}.vxe-gantt .vxe-gantt-view--scroll-x-virtual,.vxe-gantt .vxe-gantt-view--scroll-y-virtual{visibility:hidden;position:relative;flex-shrink:0;z-index:7}.vxe-gantt .vxe-gantt-view--scroll-x-handle,.vxe-gantt .vxe-gantt-view--scroll-x-left-corner,.vxe-gantt .vxe-gantt-view--scroll-x-right-corner,.vxe-gantt .vxe-gantt-view--scroll-x-wrapper,.vxe-gantt .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt .vxe-gantt-view--scroll-y-handle,.vxe-gantt .vxe-gantt-view--scroll-y-top-corner,.vxe-gantt .vxe-gantt-view--scroll-y-wrapper{position:absolute}.vxe-gantt .vxe-gantt-view--scroll-x-handle,.vxe-gantt .vxe-gantt-view--scroll-x-wrapper{width:100%;left:0;bottom:0}.vxe-gantt .vxe-gantt-view--scroll-x-handle{overflow-y:hidden;overflow-x:scroll;height:18px}.vxe-gantt .vxe-gantt-view--scroll-x-wrapper{height:100%}.vxe-gantt .vxe-gantt-view--scroll-y-handle,.vxe-gantt .vxe-gantt-view--scroll-y-wrapper{width:100%;height:100%;right:0;top:0}.vxe-gantt .vxe-gantt-view--scroll-y-handle{overflow-y:scroll;overflow-x:hidden;width:18px;height:100%}.vxe-gantt .vxe-gantt-view--scroll-x-space{height:1px}.vxe-gantt .vxe-gantt-view--scroll-y-space{width:1px}.vxe-gantt .vxe-gantt-view--scroll-x-left-corner,.vxe-gantt .vxe-gantt-view--scroll-x-right-corner,.vxe-gantt .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt .vxe-gantt-view--scroll-y-top-corner{display:none;position:absolute}.vxe-gantt .vxe-gantt-view--scroll-x-left-corner,.vxe-gantt .vxe-gantt-view--scroll-x-right-corner{bottom:0;width:0;height:100%}.vxe-gantt .vxe-gantt-view--scroll-x-left-corner::before,.vxe-gantt .vxe-gantt-view--scroll-x-right-corner::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;border-width:var(--vxe-ui-table-border-width);border-style:solid;border-color:var(--vxe-ui-table-border-color)}.vxe-gantt .vxe-gantt-view--scroll-x-left-corner{left:0}.vxe-gantt .vxe-gantt-view--scroll-x-right-corner{right:0}.vxe-gantt.sy-pos--right .vxe-gantt-view--scroll-x-right-corner{right:1px}.vxe-gantt.sy-pos--right .vxe-gantt-view--scroll-x-right-corner::before{border-right:0}.vxe-gantt.sx-pos--bottom .vxe-gantt-view--scroll-x-right-corner{bottom:1px}.vxe-gantt.sx-pos--bottom .vxe-gantt-view--scroll-x-right-corner::before{border-bottom:0}.vxe-gantt .vxe-gantt-view--scroll-y-top-corner{background-color:var(--vxe-ui-table-header-background-color)}.vxe-gantt .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt .vxe-gantt-view--scroll-y-top-corner{top:0;right:0;width:100%;height:0}.vxe-gantt .vxe-gantt-view--scroll-y-bottom-corner{margin-top:-1px}.vxe-gantt-view--layout-wrapper{display:flex;flex-direction:row;background-color:var(--vxe-ui-layout-background-color)}.vxe-gantt-view--viewport-wrapper{position:relative;overflow:hidden;flex-grow:1}.vxe-gantt-view--render-vars{width:0;height:0;overflow:hidden}.vxe-gantt-view--column-info{width:var(--vxe-ui-gantt-view-default-cell-width)}.vxe-gantt-view{flex-grow:1;overflow:hidden}.vxe-gantt-view .vxe-body--x-space{width:100%;height:1px;margin-bottom:-1px}.vxe-gantt-view .vxe-body--y-space{width:0;float:left}.vxe-gantt-view--body-table,.vxe-gantt-view--header-table{border:0;border-spacing:0;border-collapse:separate;table-layout:fixed}.vxe-gantt-view--body-table col,.vxe-gantt-view--header-table col{width:var(--vxe-ui-gantt-view-default-cell-width)}.vxe-gantt-view--body-table{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-gantt-view--header-wrapper{background-color:var(--vxe-ui-table-header-background-color)}.vxe-gantt-view--footer-wrapper{margin-top:calc(var(--vxe-ui-table-border-width) * -1);background-color:var(--vxe-ui-table-footer-background-color)}.vxe-gantt-view--body-wrapper,.vxe-gantt-view--header-wrapper{overflow:hidden}.vxe-gantt-view--header-inner-wrapper{overflow-y:hidden;overflow-x:scroll}.vxe-gantt-view--body-inner-wrapper{overflow-y:scroll;overflow-x:scroll}.vxe-gantt-view--body-inner-wrapper,.vxe-gantt-view--header-inner-wrapper{position:relative;width:100%;height:100%;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch}.vxe-gantt-view--body-inner-wrapper::-webkit-scrollbar,.vxe-gantt-view--header-inner-wrapper::-webkit-scrollbar{display:none}.vxe-gantt-view--header-column{text-align:center;font-size:1em;height:var(--vxe-ui-gantt-view-cell-height,var(--vxe-ui-table-row-line-height))}.vxe-gantt-view--header-column.is--now{color:var(--vxe-ui-font-primary-color)}.vxe-gantt-view--body-column.is--now::before{content:"";position:absolute;top:0;left:0;width:1px;height:100%;background-color:var(--vxe-ui-font-primary-color)}.vxe-gantt-view--body-column,.vxe-gantt-view--footer-column,.vxe-gantt-view--header-column{position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-gantt-view--body-row.row--pending>.vxe-gantt-view--body-column::after{content:"";position:absolute;top:50%;left:0;width:100%;height:0;border-bottom:1px solid var(--vxe-ui-table-validate-error-color);z-index:1}.vxe-gantt-view--body-row.row--stripe{background-color:var(--vxe-ui-table-row-striped-background-color)}.vxe-gantt-view--body-row.row--radio{background-color:var(--vxe-ui-table-row-radio-checked-background-color)}.vxe-gantt-view--body-row.row--checked{background-color:var(--vxe-ui-table-row-checkbox-checked-background-color)}.vxe-gantt-view--body-row.row--current{background-color:var(--vxe-ui-table-row-current-background-color)}.vxe-gantt-view--body-row.row--hover{background-color:var(--vxe-ui-table-row-hover-background-color)}.vxe-gantt-view--body-row.row--hover.row--stripe{background-color:var(--vxe-ui-table-row-hover-striped-background-color)}.vxe-gantt-view--body-row.row--hover.row--radio{background-color:var(--vxe-ui-table-row-hover-radio-checked-background-color)}.vxe-gantt-view--body-row.row--hover.row--checked{background-color:var(--vxe-ui-table-row-hover-checkbox-checked-background-color)}.vxe-gantt-view--body-row.row--hover.row--current{background-color:var(--vxe-ui-table-row-hover-current-background-color)}.vxe-gantt-view--body-row.row--drag-move{transition:transform .5s ease}.vxe-gantt-view--body-row.row--drag-origin>.vxe-gantt-view--body-column{opacity:.3}.vxe-gantt-view--body-column .vxe-gantt-view-cell--row-resizable{position:absolute;left:0;bottom:-.4em;height:.8em;width:100%;text-align:center;z-index:1;cursor:row-resize}.vxe-gantt-view--body-row:last-child .vxe-gantt-view--body-column .vxe-gantt-view-cell--row-resizable{height:.4em;bottom:0}.vxe-gantt{font-size:var(--vxe-ui-font-size-default)}.vxe-gantt.size--medium{font-size:var(--vxe-ui-font-size-medium)}.vxe-gantt.size--small{font-size:var(--vxe-ui-font-size-small)}.vxe-gantt.size--mini{font-size:var(--vxe-ui-font-size-mini)}
1
+ @charset "UTF-8";.vxe-gantt-view--chart-task-wrapper{position:absolute;top:0;left:0;pointer-events:none}.vxe-gantt-view--chart-row,.vxe-gantt-view--chart-subview-row{position:relative;width:100%;height:0}.vxe-gantt-view--chart-row.row--pending .vxe-gantt-view--chart-bar{color:var(--vxe-ui-font-disabled-color);opacity:.5;text-decoration:line-through}.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-bar,.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-custom-bar{border-radius:var(--vxe-ui-gantt-view-task-bar-border-radius)}.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-bar .vxe-gantt-view--chart-bar-content-wrapper,.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-bar .vxe-gantt-view--chart-custom-bar-content-wrapper,.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-custom-bar .vxe-gantt-view--chart-bar-content-wrapper,.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-custom-bar .vxe-gantt-view--chart-custom-bar-content-wrapper{border-radius:var(--vxe-ui-gantt-view-task-bar-border-radius)}.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-bar:hover::after,.vxe-gantt-view--chart-row.is--round>.vxe-gantt-view--chart-custom-bar:hover::after{border-radius:var(--vxe-ui-gantt-view-task-bar-border-radius)}.vxe-gantt-view--chart-subview-row.row--pending .vxe-gantt-view--chart-subview-bar,.vxe-gantt-view--chart-subview-row.row--pending .vxe-gantt-view--chart-subview-custom-bar{color:var(--vxe-ui-font-disabled-color);opacity:.5;text-decoration:line-through}.vxe-gantt-view--chart-subview-row.is--round>.vxe-gantt-view--chart-subview-bar,.vxe-gantt-view--chart-subview-row.is--round>.vxe-gantt-view--chart-subview-custom-bar{border-radius:var(--vxe-ui-gantt-view-task-bar-border-radius)}.vxe-gantt-view--chart-subview-row.is--round>.vxe-gantt-view--chart-subview-bar .vxe-gantt-view--chart-subview-bar-content-wrapper,.vxe-gantt-view--chart-subview-row.is--round>.vxe-gantt-view--chart-subview-bar .vxe-gantt-view--chart-subview-custom-bar-content-wrapper,.vxe-gantt-view--chart-subview-row.is--round>.vxe-gantt-view--chart-subview-custom-bar .vxe-gantt-view--chart-subview-bar-content-wrapper,.vxe-gantt-view--chart-subview-row.is--round>.vxe-gantt-view--chart-subview-custom-bar .vxe-gantt-view--chart-subview-custom-bar-content-wrapper{border-radius:var(--vxe-ui-gantt-view-task-bar-border-radius)}.vxe-gantt-view--chart-subview-row.is--round>.vxe-gantt-view--chart-subview-bar:hover::after,.vxe-gantt-view--chart-subview-row.is--round>.vxe-gantt-view--chart-subview-custom-bar:hover::after{border-radius:var(--vxe-ui-gantt-view-task-bar-border-radius)}.vxe-gantt-view--chart-subview-wrapper.is--overview>.vxe-gantt-view--chart-subview-row .vxe-gantt-view--chart-subview-bar{color:#fff;background-color:var(--vxe-ui-gantt-view-task-bar-overview-background-color)}.vxe-gantt-view--chart-bar,.vxe-gantt-view--chart-custom-bar,.vxe-gantt-view--chart-subview-bar,.vxe-gantt-view--chart-subview-custom-bar{display:flex;flex-direction:row;position:absolute;top:50%;left:0;transform:translateY(-50%);pointer-events:all}.vxe-gantt-view--chart-row.is--progress>.vxe-gantt-view--chart-bar.is--default,.vxe-gantt-view--chart-row.is--progress>.vxe-gantt-view--chart-custom-bar.is--default{color:#fff;background-color:var(--vxe-ui-gantt-view-task-bar-background-color)}.vxe-gantt-view--chart-row:not(.is--progress)>.vxe-gantt-view--chart-bar.is--default,.vxe-gantt-view--chart-row:not(.is--progress)>.vxe-gantt-view--chart-custom-bar.is--default{color:#fff;background-color:var(--vxe-ui-gantt-view-task-bar-completed-background-color)}.vxe-gantt-view--chart-subview-row.is--progress>.vxe-gantt-view--chart-subview-bar.is--subview,.vxe-gantt-view--chart-subview-row.is--progress>.vxe-gantt-view--chart-subview-custom-bar.is--subview{color:#fff;background-color:var(--vxe-ui-gantt-view-task-bar-overview-background-color)}.vxe-gantt-view--chart-subview-row.is--progress>.vxe-gantt-view--chart-subview-bar.is--default,.vxe-gantt-view--chart-subview-row.is--progress>.vxe-gantt-view--chart-subview-custom-bar.is--default{color:#fff;background-color:var(--vxe-ui-gantt-view-task-bar-background-color)}.vxe-gantt-view--chart-subview-row:not(.is--progress)>.vxe-gantt-view--chart-subview-bar.is--subview,.vxe-gantt-view--chart-subview-row:not(.is--progress)>.vxe-gantt-view--chart-subview-custom-bar.is--subview{color:#fff;background-color:var(--vxe-ui-gantt-view-task-bar-overview-background-color)}.vxe-gantt-view--chart-subview-row:not(.is--progress)>.vxe-gantt-view--chart-subview-bar.is--default,.vxe-gantt-view--chart-subview-row:not(.is--progress)>.vxe-gantt-view--chart-subview-custom-bar.is--default{color:#fff;background-color:var(--vxe-ui-gantt-view-task-bar-completed-background-color)}.vxe-gantt-view--chart-bar-content-wrapper,.vxe-gantt-view--chart-custom-bar-content-wrapper,.vxe-gantt-view--chart-subview-bar-content-wrapper,.vxe-gantt-view--chart-subview-custom-bar-content-wrapper{width:100%;overflow:hidden}.vxe-gantt-view--chart-bar-content-wrapper,.vxe-gantt-view--chart-subview-bar-content-wrapper{width:100%;height:100%;display:flex;flex-direction:row;align-items:center}.vxe-gantt-view--chart-bar,.vxe-gantt-view--chart-custom-bar,.vxe-gantt-view--chart-subview-bar,.vxe-gantt-view--chart-subview-custom-bar{align-items:center;min-height:var(--vxe-ui-gantt-view-chart-bar-height)}.vxe-gantt-view--chart-bar.is--default:hover::after,.vxe-gantt-view--chart-custom-bar.is--default:hover::after,.vxe-gantt-view--chart-subview-bar.is--default:hover::after,.vxe-gantt-view--chart-subview-custom-bar.is--default:hover::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.1);pointer-events:none}.vxe-gantt-view--chart-bar.is--milestone,.vxe-gantt-view--chart-custom-bar.is--milestone,.vxe-gantt-view--chart-subview-bar.is--milestone,.vxe-gantt-view--chart-subview-custom-bar.is--milestone{white-space:nowrap}.vxe-gantt-view--chart-progress{flex-shrink:0;width:0;height:100%;text-align:left;background-color:var(--vxe-ui-gantt-view-task-bar-completed-background-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-gantt-view--chart-content{position:absolute;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9em;padding:0 .6em}.vxe-gantt-view--chart-milestone-wrapper{display:flex;flex-direction:row;align-items:center}.vxe-gantt-view--chart-milestone-icon{flex-shrink:0;padding:0 .3em;color:var(--vxe-ui-font-primary-color)}.vxe-gantt-view--chart-milestone-icon.theme--primary{color:var(--vxe-ui-font-primary-color)}.vxe-gantt-view--chart-milestone-icon.theme--success{color:var(--vxe-ui-status-success-color)}.vxe-gantt-view--chart-milestone-icon.theme--info{color:var(--vxe-ui-status-info-color)}.vxe-gantt-view--chart-milestone-icon.theme--warning{color:var(--vxe-ui-status-warning-color)}.vxe-gantt-view--chart-milestone-icon.theme--danger{color:var(--vxe-ui-status-danger-color)}.vxe-gantt-view--chart-milestone-icon.theme--error{color:var(--vxe-ui-status-error-color)}.vxe-gantt-view--chart-milestone-icon i{display:inline-block}.vxe-gantt-view--chart-milestone-content{flex-grow:1}.vxe-gantt-view--chart-row.row--drag-move,.vxe-gantt-view--chart-subview-row.row--drag-move{transition:transform .5s ease}.vxe-gantt-view--chart-row.row--drag-origin,.vxe-gantt-view--chart-subview-row.row--drag-origin{opacity:.3}.vxe-gantt{position:relative;display:flex;flex-direction:column}.vxe-gantt.is--loading:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:99;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--vxe-ui-loading-background-color)}.vxe-gantt.is--loading>.vxe-gantt-view .vxe-loading{background-color:transparent}.vxe-gantt.is--maximize{position:fixed;top:0;left:0;width:100%;height:100%;padding:.5em 1em;background-color:var(--vxe-ui-layout-background-color)}.vxe-gantt.is--split-drag{cursor:col-resize}.vxe-gantt.is--split-drag .vxe-gantt--table-wrapper::after,.vxe-gantt.is--split-drag .vxe-gantt--view-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;-ms-user-select:none;user-select:none}.vxe-gantt .vxe-gantt--bottom-wrapper,.vxe-gantt .vxe-gantt--form-wrapper,.vxe-gantt .vxe-gantt--top-wrapper{position:relative}.vxe-gantt .vxe-gantt--gantt-container{position:relative;display:flex;flex-direction:row}.vxe-gantt .vxe-gantt--left-wrapper,.vxe-gantt .vxe-gantt--right-wrapper{flex-shrink:0;overflow:auto;outline:0}.vxe-gantt .vxe-gantt--table-wrapper,.vxe-gantt .vxe-gantt--view-wrapper{display:none;position:relative;flex-grow:1;overflow:hidden}.vxe-gantt .vxe-gantt--view-split-bar{flex-shrink:0;width:var(--vxe-ui-gantt-view-split-bar-width)}.vxe-gantt .vxe-gantt--view-split-bar.is--resize{cursor:col-resize}.vxe-gantt .vxe-gantt--view-split-bar-handle{background-color:var(--vxe-ui-gantt-view-split-bar-background-color)}.vxe-gantt .vxe-gantt--view-split-bar-handle:active,.vxe-gantt .vxe-gantt--view-split-bar-handle:hover{background-color:var(--vxe-ui-gantt-view-split-bar-hover-background-color)}.vxe-gantt.show--left .vxe-gantt--table-wrapper{display:block}.vxe-gantt.show--left.show--right .vxe-gantt--table-wrapper{flex-grow:unset;flex-shrink:0;width:var(--vxe-ui-gantt-view-table-default-width)}.vxe-gantt.show--right .vxe-gantt--view-wrapper{display:block}.vxe-gantt--layout-body-wrapper{display:flex;flex-direction:row;overflow:auto;flex-grow:1}.vxe-gantt--layout-body-content-wrapper{flex-grow:1;overflow:hidden}.vxe-gantt--layout-aside-left-wrapper,.vxe-gantt--layout-footer-wrapper,.vxe-gantt--layout-header-wrapper{flex-shrink:0;overflow:auto}.vxe-gantt--border-line{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;pointer-events:none;border:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--full .vxe-gantt-view--body-column,.vxe-gantt.border--full .vxe-gantt-view--footer-column,.vxe-gantt.border--full .vxe-gantt-view--header-column{background-image:linear-gradient(var(--vxe-ui-table-border-color),var(--vxe-ui-table-border-color)),linear-gradient(var(--vxe-ui-table-border-color),var(--vxe-ui-table-border-color));background-repeat:no-repeat;background-size:var(--vxe-ui-table-border-width) 100%,100% var(--vxe-ui-table-border-width);background-position:right top,right bottom}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--default .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--inner .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--inner .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--outer .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--outer .vxe-gantt-view--scroll-y-top-corner::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;border-width:0;border-style:solid;border-color:var(--vxe-ui-table-border-color)}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--inner .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--outer .vxe-gantt-view--scroll-y-top-corner::before{border-bottom-width:var(--vxe-ui-table-border-width)}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt.border--inner .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt.border--outer .vxe-gantt-view--scroll-y-bottom-corner{border-top:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--default .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--full .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--inner .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--outer .vxe-gantt-view--scroll-x-handle-appearance{position:absolute;left:0;width:100%;height:100%;z-index:1;pointer-events:none}.vxe-gantt.border--default.sx-pos--top .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--full.sx-pos--top .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--inner.sx-pos--top .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--outer.sx-pos--top .vxe-gantt-view--scroll-x-handle-appearance{top:0;border-bottom:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--default.sx-pos--bottom .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--full.sx-pos--bottom .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--inner.sx-pos--bottom .vxe-gantt-view--scroll-x-handle-appearance,.vxe-gantt.border--outer.sx-pos--bottom .vxe-gantt-view--scroll-x-handle-appearance{bottom:0;height:calc(100% + var(--vxe-ui-table-border-width));border-top:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-top-corner::before{border-left-width:var(--vxe-ui-table-border-width);border-right-width:var(--vxe-ui-table-border-width)}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-bottom-corner::before{border-left-width:var(--vxe-ui-table-border-width);border-right-width:var(--vxe-ui-table-border-width)}.vxe-gantt.border--default.sy-pos--right .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--default.sy-pos--right .vxe-gantt-view--scroll-y-top-corner::before,.vxe-gantt.border--full.sy-pos--right .vxe-gantt-view--scroll-y-bottom-corner::before,.vxe-gantt.border--full.sy-pos--right .vxe-gantt-view--scroll-y-top-corner::before{width:calc(100% + 1px);left:-1px}.vxe-gantt.border--default .vxe-gantt-view--scroll-y-handle-appearance,.vxe-gantt.border--full .vxe-gantt-view--scroll-y-handle-appearance{position:absolute;top:0;width:100%;height:100%;z-index:1;pointer-events:none}.vxe-gantt.border--default.sy-pos--left .vxe-gantt-view--scroll-y-handle-appearance,.vxe-gantt.border--full.sy-pos--left .vxe-gantt-view--scroll-y-handle-appearance{left:0;border-right:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--default.sy-pos--right .vxe-gantt-view--scroll-y-handle-appearance,.vxe-gantt.border--full.sy-pos--right .vxe-gantt-view--scroll-y-handle-appearance{right:0;width:calc(100% + var(--vxe-ui-table-border-width));border-left:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--default .vxe-gantt-view--body-column,.vxe-gantt.border--default .vxe-gantt-view--footer-column,.vxe-gantt.border--default .vxe-gantt-view--header-column,.vxe-gantt.border--inner .vxe-gantt-view--body-column,.vxe-gantt.border--inner .vxe-gantt-view--footer-column,.vxe-gantt.border--inner .vxe-gantt-view--header-column{background-image:linear-gradient(var(--vxe-ui-table-border-color),var(--vxe-ui-table-border-color));background-repeat:no-repeat;background-size:100% var(--vxe-ui-table-border-width);background-position:right bottom}.vxe-gantt.border--default .vxe-gantt-view--footer-wrapper,.vxe-gantt.border--full .vxe-gantt-view--footer-wrapper,.vxe-gantt.border--inner .vxe-gantt-view--footer-wrapper{border-top:var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color)}.vxe-gantt.border--inner .vxe-gantt--border-line{border-width:0 0 1px 0}.vxe-gantt.border--none .vxe-gantt--border-line{display:none}.vxe-gantt--view-split-bar{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-gantt--view-split-bar-handle{position:absolute;top:0;left:0;width:100%;height:100%;z-index:3}.vxe-gantt--view-split-bar-btn-wrapper{display:flex;flex-direction:column;align-items:center;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:5;pointer-events:none}.vxe-gantt--view-split-bar-btn-wrapper>div{margin-top:1em}.vxe-gantt--view-split-bar-btn-wrapper>div:first-child{margin-top:0}.vxe-gantt--view-split-bar-left-btn,.vxe-gantt--view-split-bar-right-btn{display:flex;flex-direction:row;align-items:center;justify-content:center;height:var(--vxe-ui-gantt-view-split-bar-height);width:var(--vxe-ui-gantt-view-split-bar-width);color:var(--vxe-ui-layout-background-color);border-radius:var(--vxe-ui-base-border-radius);background-color:var(--vxe-ui-gantt-view-handle-background-color);border:1px solid var(--vxe-ui-input-border-color);pointer-events:all;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:all .1s ease-in-out}.vxe-gantt--view-split-bar-left-btn:hover,.vxe-gantt--view-split-bar-right-btn:hover{color:#fff;background-color:var(--vxe-ui-font-primary-color)}.vxe-gantt--view-split-bar-left-btn:active,.vxe-gantt--view-split-bar-right-btn:active{transform:scale(.9)}.vxe-gantt--view-split-bar-left-btn i,.vxe-gantt--view-split-bar-right-btn i{font-size:.5em}.vxe-gantt--resizable-split-tip{display:none;position:absolute;top:0;left:0;width:1px;height:100%;z-index:7;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:col-resize}.vxe-gantt--resizable-split-tip:before{content:"";display:block;height:100%;background-color:var(--vxe-ui-table-resizable-drag-line-color)}.vxe-gantt--resizable-split-tip-number{position:absolute;top:0;left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.vxe-gantt--resizable-split-number-left,.vxe-gantt--resizable-split-number-right{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-table-resizable-drag-line-color)}.vxe-gantt--resizable-split-number-left{right:0}.vxe-gantt--resizable-split-number-right{left:1px}.vxe-gantt.is--loading>.vxe-gantt-view--scroll-x-virtual{visibility:hidden}.vxe-gantt.is--loading>.vxe-gantt-view--layout-wrapper>.vxe-gantt-view--scroll-y-virtual{visibility:hidden}.vxe-gantt .vxe-gantt-view--scroll-x-virtual{height:0}.vxe-gantt .vxe-gantt-view--scroll-y-virtual{width:0}.vxe-gantt .vxe-gantt-view--scroll-x-virtual,.vxe-gantt .vxe-gantt-view--scroll-y-virtual{visibility:hidden;position:relative;flex-shrink:0;z-index:7}.vxe-gantt .vxe-gantt-view--scroll-x-handle,.vxe-gantt .vxe-gantt-view--scroll-x-left-corner,.vxe-gantt .vxe-gantt-view--scroll-x-right-corner,.vxe-gantt .vxe-gantt-view--scroll-x-wrapper,.vxe-gantt .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt .vxe-gantt-view--scroll-y-handle,.vxe-gantt .vxe-gantt-view--scroll-y-top-corner,.vxe-gantt .vxe-gantt-view--scroll-y-wrapper{position:absolute}.vxe-gantt .vxe-gantt-view--scroll-x-handle,.vxe-gantt .vxe-gantt-view--scroll-x-wrapper{width:100%;left:0;bottom:0}.vxe-gantt .vxe-gantt-view--scroll-x-handle{overflow-y:hidden;overflow-x:scroll;height:18px}.vxe-gantt .vxe-gantt-view--scroll-x-wrapper{height:100%}.vxe-gantt .vxe-gantt-view--scroll-y-handle,.vxe-gantt .vxe-gantt-view--scroll-y-wrapper{width:100%;height:100%;right:0;top:0}.vxe-gantt .vxe-gantt-view--scroll-y-handle{overflow-y:scroll;overflow-x:hidden;width:18px;height:100%}.vxe-gantt .vxe-gantt-view--scroll-x-space{height:1px}.vxe-gantt .vxe-gantt-view--scroll-y-space{width:1px}.vxe-gantt .vxe-gantt-view--scroll-x-left-corner,.vxe-gantt .vxe-gantt-view--scroll-x-right-corner,.vxe-gantt .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt .vxe-gantt-view--scroll-y-top-corner{display:none;position:absolute}.vxe-gantt .vxe-gantt-view--scroll-x-left-corner,.vxe-gantt .vxe-gantt-view--scroll-x-right-corner{bottom:0;width:0;height:100%}.vxe-gantt .vxe-gantt-view--scroll-x-left-corner::before,.vxe-gantt .vxe-gantt-view--scroll-x-right-corner::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;border-width:var(--vxe-ui-table-border-width);border-style:solid;border-color:var(--vxe-ui-table-border-color)}.vxe-gantt .vxe-gantt-view--scroll-x-left-corner{left:0}.vxe-gantt .vxe-gantt-view--scroll-x-right-corner{right:0}.vxe-gantt.sy-pos--right .vxe-gantt-view--scroll-x-right-corner{right:1px}.vxe-gantt.sy-pos--right .vxe-gantt-view--scroll-x-right-corner::before{border-right:0}.vxe-gantt.sx-pos--bottom .vxe-gantt-view--scroll-x-right-corner{bottom:1px}.vxe-gantt.sx-pos--bottom .vxe-gantt-view--scroll-x-right-corner::before{border-bottom:0}.vxe-gantt .vxe-gantt-view--scroll-y-top-corner{background-color:var(--vxe-ui-table-header-background-color)}.vxe-gantt .vxe-gantt-view--scroll-y-bottom-corner,.vxe-gantt .vxe-gantt-view--scroll-y-top-corner{top:0;right:0;width:100%;height:0}.vxe-gantt .vxe-gantt-view--scroll-y-bottom-corner{margin-top:-1px}.vxe-gantt-view--layout-wrapper{display:flex;flex-direction:row;background-color:var(--vxe-ui-layout-background-color)}.vxe-gantt-view--viewport-wrapper{position:relative;overflow:hidden;flex-grow:1}.vxe-gantt-view--render-vars{width:0;height:0;overflow:hidden}.vxe-gantt-view--column-info{width:var(--vxe-ui-gantt-view-default-cell-width)}.vxe-gantt-view{flex-grow:1;overflow:hidden}.vxe-gantt-view .vxe-body--x-space{width:100%;height:1px;margin-bottom:-1px}.vxe-gantt-view .vxe-body--y-space{width:0;float:left}.vxe-gantt-view--body-table,.vxe-gantt-view--header-table{border:0;border-spacing:0;border-collapse:separate;table-layout:fixed}.vxe-gantt-view--body-table col,.vxe-gantt-view--header-table col{width:var(--vxe-ui-gantt-view-default-cell-width)}.vxe-gantt-view--body-table{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-gantt-view--header-wrapper{background-color:var(--vxe-ui-table-header-background-color)}.vxe-gantt-view--footer-wrapper{margin-top:calc(var(--vxe-ui-table-border-width) * -1);background-color:var(--vxe-ui-table-footer-background-color)}.vxe-gantt-view--body-wrapper,.vxe-gantt-view--header-wrapper{overflow:hidden}.vxe-gantt-view--header-inner-wrapper{overflow-y:hidden;overflow-x:scroll}.vxe-gantt-view--body-inner-wrapper{overflow-y:scroll;overflow-x:scroll}.vxe-gantt-view--body-inner-wrapper,.vxe-gantt-view--header-inner-wrapper{position:relative;width:100%;height:100%;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch}.vxe-gantt-view--body-inner-wrapper::-webkit-scrollbar,.vxe-gantt-view--header-inner-wrapper::-webkit-scrollbar{display:none}.vxe-gantt-view--header-column{text-align:center;font-size:1em;height:var(--vxe-ui-gantt-view-cell-height,var(--vxe-ui-table-row-line-height))}.vxe-gantt-view--header-column.is--now{color:var(--vxe-ui-font-primary-color)}.vxe-gantt-view--body-column.is--now::before{content:"";position:absolute;top:0;left:0;width:1px;height:100%;background-color:var(--vxe-ui-font-primary-color)}.vxe-gantt-view--body-column,.vxe-gantt-view--footer-column,.vxe-gantt-view--header-column{position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-gantt-view--body-row.row--pending>.vxe-gantt-view--body-column::after{content:"";position:absolute;top:50%;left:0;width:100%;height:0;border-bottom:1px solid var(--vxe-ui-table-validate-error-color);z-index:1}.vxe-gantt-view--body-row.row--stripe{background-color:var(--vxe-ui-table-row-striped-background-color)}.vxe-gantt-view--body-row.row--radio{background-color:var(--vxe-ui-table-row-radio-checked-background-color)}.vxe-gantt-view--body-row.row--checked{background-color:var(--vxe-ui-table-row-checkbox-checked-background-color)}.vxe-gantt-view--body-row.row--current{background-color:var(--vxe-ui-table-row-current-background-color)}.vxe-gantt-view--body-row.row--hover{background-color:var(--vxe-ui-table-row-hover-background-color)}.vxe-gantt-view--body-row.row--hover.row--stripe{background-color:var(--vxe-ui-table-row-hover-striped-background-color)}.vxe-gantt-view--body-row.row--hover.row--radio{background-color:var(--vxe-ui-table-row-hover-radio-checked-background-color)}.vxe-gantt-view--body-row.row--hover.row--checked{background-color:var(--vxe-ui-table-row-hover-checkbox-checked-background-color)}.vxe-gantt-view--body-row.row--hover.row--current{background-color:var(--vxe-ui-table-row-hover-current-background-color)}.vxe-gantt-view--body-row.row--drag-move{transition:transform .5s ease}.vxe-gantt-view--body-row.row--drag-origin>.vxe-gantt-view--body-column{opacity:.3}.vxe-gantt-view--body-column .vxe-gantt-view-cell--row-resizable{position:absolute;left:0;bottom:-.4em;height:.8em;width:100%;text-align:center;z-index:1;cursor:row-resize}.vxe-gantt-view--body-row:last-child .vxe-gantt-view--body-column .vxe-gantt-view-cell--row-resizable{height:.4em;bottom:0}.vxe-gantt{font-size:var(--vxe-ui-font-size-default)}.vxe-gantt.size--medium{font-size:var(--vxe-ui-font-size-medium)}.vxe-gantt.size--small{font-size:var(--vxe-ui-font-size-small)}.vxe-gantt.size--mini{font-size:var(--vxe-ui-font-size-mini)}
package/lib/index.umd.js CHANGED
@@ -8286,7 +8286,7 @@ var core_ = __webpack_require__(4345);
8286
8286
 
8287
8287
  var setConfig = core_.VxeUI.setConfig,
8288
8288
  setIcon = core_.VxeUI.setIcon;
8289
- core_.VxeUI.ganttVersion = "3.3.0";
8289
+ core_.VxeUI.ganttVersion = "3.3.2";
8290
8290
  var ymdFormat = 'yyyy-MM-dd';
8291
8291
  var ymdhmsFormat = 'yyyy-MM-dd HH:mm:ss';
8292
8292
  setConfig({
@@ -8403,7 +8403,7 @@ var es_array_concat = __webpack_require__(8706);
8403
8403
  ;// ./packages/ui/src/log.ts
8404
8404
 
8405
8405
  var log = core_.VxeUI.log;
8406
- var version = "gantt v".concat("3.3.0");
8406
+ var version = "gantt v".concat("3.3.2");
8407
8407
  var warnLog = log.create('warn', version);
8408
8408
  var errLog = log.create('error', version);
8409
8409
  ;// ./packages/ui/src/depend.ts
@@ -9388,8 +9388,10 @@ var gantt_chart_viewType = 'chart';
9388
9388
  var childrenField = treeOpts.children || treeOpts.childrenField;
9389
9389
  var ganttProps = $xeGantt;
9390
9390
  var ganttReactData = $xeGantt.reactData;
9391
+ var ganttInternalData = $xeGantt.internalData;
9391
9392
  var ganttSlots = $xeGantt.$scopedSlots;
9392
9393
  var taskBarSlot = ganttSlots.taskBar || ganttSlots['task-bar'];
9394
+ var taskBarOverviewSlot = ganttSlots.taskBarOverview || ganttSlots['task-bar-overview'];
9393
9395
  var treeConfig = ganttProps.treeConfig,
9394
9396
  taskBarMilestoneConfig = ganttProps.taskBarMilestoneConfig,
9395
9397
  taskBarSubviewConfig = ganttProps.taskBarSubviewConfig;
@@ -9465,111 +9467,155 @@ var gantt_chart_viewType = 'chart';
9465
9467
  var ctOns = {};
9466
9468
  if (showTooltip) {
9467
9469
  ctOns.mouseover = function (evnt) {
9470
+ var dragBarRow = ganttInternalData.dragBarRow;
9468
9471
  var ttParams = Object.assign({
9469
9472
  $event: evnt
9470
9473
  }, ctParams);
9474
+ if (!dragBarRow) {
9475
+ $xeGantt.triggerTaskBarTooltipEvent(evnt, ttParams);
9476
+ }
9471
9477
  $xeGantt.dispatchEvent('task-bar-mouseenter', ttParams, evnt);
9472
9478
  };
9473
9479
  ctOns.mouseleave = function (evnt) {
9480
+ var dragBarRow = ganttInternalData.dragBarRow;
9474
9481
  var ttParams = Object.assign({
9475
9482
  $event: evnt
9476
9483
  }, ctParams);
9484
+ if (!dragBarRow) {
9485
+ $xeGantt.handleTaskBarTooltipLeaveEvent(evnt, ttParams);
9486
+ }
9477
9487
  $xeGantt.dispatchEvent('task-bar-mouseleave', ttParams, evnt);
9478
9488
  };
9479
9489
  }
9480
- if (taskBarSlot) {
9481
- cbVNs.push(h('div', {
9482
- key: 'cbc',
9483
- class: 'vxe-gantt-view--chart-custom-bar-content-wrapper',
9484
- on: ctOns
9485
- }, $xeGantt.callSlot(taskBarSlot, barParams, h)));
9486
- } else {
9487
- if (isSubview && treeConfig && rowChildren && rowChildren.length) {
9488
- if (isExpandTree) {
9489
- if (taskBarSubviewOpts.showOverview) {
9490
- cbVNs.push(h('div', {
9491
- key: 'vcso',
9492
- class: 'vxe-gantt-view--chart-subview-wrapper is--overview'
9493
- }, [h('div', {
9494
- key: rowid,
9495
- attrs: {
9496
- rowid: rowid
9497
- },
9498
- class: ['vxe-gantt-view--chart-subview-row', {
9499
- 'is--progress': showProgress,
9500
- 'is--round': round,
9501
- 'is--move': moveable
9502
- }]
9503
- }, [h('div', {
9504
- attrs: {
9505
- rowid: rowid
9506
- },
9507
- class: 'vxe-gantt-view--chart-subview-bar'
9508
- }, [h('div', {
9509
- class: 'vxe-gantt-view--chart-subview-bar-content-wrapper'
9510
- }, [showContent ? h('div', {
9511
- class: 'vxe-gantt-view--chart-content'
9512
- }, title) : renderEmptyElement($xeGantt)])])])]));
9490
+ if (isSubview && treeConfig && rowChildren && rowChildren.length) {
9491
+ if (isExpandTree) {
9492
+ if (taskBarSubviewOpts.showOverview) {
9493
+ cbVNs.push(h('div', {
9494
+ key: 'vcso',
9495
+ class: 'vxe-gantt-view--chart-subview-wrapper is--overview'
9496
+ }, [h('div', {
9497
+ key: rowid,
9498
+ attrs: {
9499
+ rowid: rowid
9500
+ },
9501
+ class: ['vxe-gantt-view--chart-subview-row', {
9502
+ 'is--progress': showProgress,
9503
+ 'is--round': round,
9504
+ 'is--move': moveable
9505
+ }]
9506
+ }, [h('div', {
9507
+ attrs: {
9508
+ rowid: rowid
9509
+ },
9510
+ class: [taskBarOverviewSlot ? 'vxe-gantt-view--chart-subview-custom-bar' : 'vxe-gantt-view--chart-subview-bar', "is--".concat(renderTaskType)]
9511
+ }, [taskBarOverviewSlot ? h('div', {
9512
+ key: 'cbc',
9513
+ class: 'vxe-gantt-view--chart-subview-custom-bar-content-wrapper'
9514
+ }, $xeGantt.callSlot(taskBarOverviewSlot, barParams, h)) : h('div', {
9515
+ class: 'vxe-gantt-view--chart-subview-bar-content-wrapper'
9516
+ }, [showContent ? h('div', {
9517
+ class: 'vxe-gantt-view--chart-content'
9518
+ }, title) : renderEmptyElement($xeGantt)])])])]));
9519
+ }
9520
+ } else {
9521
+ var cbcVNs = [];
9522
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(rowChildren, function (childRow) {
9523
+ var childBarParams = {
9524
+ $gantt: $xeGantt,
9525
+ row: childRow,
9526
+ scaleType: scaleUnit
9527
+ };
9528
+ var childBarStyObj = (barStyle ? isBarRowStyle ? barStyle(childBarParams) : barStyle : {}) || {};
9529
+ var round = childBarStyObj.round;
9530
+ var childRowid = $xeTable.getRowid(childRow);
9531
+ var childTitle = getStringValue(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(childRow, titleField));
9532
+ var childProgressValue = showProgress ? Math.min(100, Math.max(0, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(childRow, progressField)))) : 0;
9533
+ var childRenderTaskType = getTaskType(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(childRow, typeField));
9534
+ var isChildSubview = !!(hasEnableConf(taskBarSubviewConfig, taskBarSubviewOpts) && hasSubviewTask(childRenderTaskType));
9535
+ if (isChildSubview) {
9536
+ return;
9513
9537
  }
9514
- } else {
9515
- var cbcVNs = [];
9516
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(rowChildren, function (childRow) {
9517
- var childRowid = $xeTable.getRowid(childRow);
9518
- var childTitle = getStringValue(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(childRow, titleField));
9519
- var childProgressValue = showProgress ? Math.min(100, Math.max(0, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(childRow, progressField)))) : 0;
9520
- var childRenderTaskType = getTaskType(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(childRow, typeField));
9521
- var isChildSubview = !!(hasEnableConf(taskBarSubviewConfig, taskBarSubviewOpts) && hasSubviewTask(childRenderTaskType));
9522
- if (isChildSubview) {
9523
- return;
9538
+ var childVbStyle = {};
9539
+ var childVpStyle = {
9540
+ width: "".concat(childProgressValue || 0, "%")
9541
+ };
9542
+ if (isBarRowStyle) {
9543
+ var _bgColor = childBarStyObj.bgColor,
9544
+ _completedBgColor = childBarStyObj.completedBgColor;
9545
+ if (_bgColor) {
9546
+ childVbStyle.backgroundColor = _bgColor;
9524
9547
  }
9525
- var vpcStyle = {
9526
- width: "".concat(childProgressValue || 0, "%")
9527
- };
9528
- if (isBarRowStyle) {
9529
- var _completedBgColor = barStyObj.completedBgColor;
9530
- if (_completedBgColor) {
9531
- vpcStyle.backgroundColor = _completedBgColor;
9532
- }
9548
+ if (_completedBgColor) {
9549
+ childVpStyle.backgroundColor = _completedBgColor;
9533
9550
  }
9534
- if (contentMethod) {
9535
- childTitle = getStringValue(contentMethod({
9536
- row: childRow,
9537
- title: childTitle,
9538
- scaleType: scaleUnit
9539
- }));
9540
- }
9541
- cbcVNs.push(h('div', {
9542
- key: childRowid,
9543
- attrs: {
9544
- rowid: childRowid
9551
+ }
9552
+ if (contentMethod) {
9553
+ childTitle = getStringValue(contentMethod({
9554
+ row: childRow,
9555
+ title: childTitle,
9556
+ scaleType: scaleUnit
9557
+ }));
9558
+ }
9559
+ cbcVNs.push(h('div', {
9560
+ key: childRowid,
9561
+ attrs: {
9562
+ rowid: childRowid
9563
+ },
9564
+ class: ['vxe-gantt-view--chart-subview-row', "is--".concat(childRenderTaskType), {
9565
+ 'is--progress': showProgress,
9566
+ 'is--round': round,
9567
+ 'is--move': moveable,
9568
+ 'row--pending': !!pendingRowFlag && !!pendingRowMaps[childRowid]
9569
+ }]
9570
+ }, [h('div', {
9571
+ attrs: {
9572
+ rowid: childRowid
9573
+ },
9574
+ class: [taskBarSlot ? 'vxe-gantt-view--chart-subview-custom-bar' : 'vxe-gantt-view--chart-subview-bar', "is--".concat(childRenderTaskType)],
9575
+ on: {
9576
+ click: function click(evnt) {
9577
+ evnt.stopPropagation();
9578
+ $xeGantt.handleTaskBarClickEvent(evnt, barParams);
9545
9579
  },
9546
- class: ['vxe-gantt-view--chart-subview-row', "is--".concat(childRenderTaskType), {
9547
- 'is--progress': showProgress,
9548
- 'is--round': round,
9549
- 'is--move': moveable,
9550
- 'row--pending': !!pendingRowFlag && !!pendingRowMaps[childRowid]
9551
- }]
9552
- }, [h('div', {
9553
- attrs: {
9554
- rowid: childRowid
9580
+ dblclick: function dblclick(evnt) {
9581
+ evnt.stopPropagation();
9582
+ $xeGantt.handleTaskBarDblclickEvent(evnt, barParams);
9555
9583
  },
9556
- class: 'vxe-gantt-view--chart-subview-bar'
9557
- }, [h('div', {
9558
- class: 'vxe-gantt-view--chart-subview-bar-content-wrapper'
9559
- }, [showProgress ? h('div', {
9560
- class: 'vxe-gantt-view--chart-progress',
9561
- style: vpcStyle
9562
- }) : renderEmptyElement($xeGantt), showContent ? h('div', {
9563
- class: 'vxe-gantt-view--chart-content'
9564
- }, childTitle) : renderEmptyElement($xeGantt)])])]));
9565
- }, {
9566
- children: childrenField
9567
- });
9568
- cbVNs.push(h('div', {
9569
- key: 'vcsc',
9570
- class: 'vxe-gantt-view--chart-subview-wrappe is--inliner'
9571
- }, cbcVNs));
9572
- }
9584
+ mousedown: function mousedown(evnt) {
9585
+ evnt.stopPropagation();
9586
+ if ($xeGantt.handleTaskBarMousedownEvent) {
9587
+ $xeGantt.handleTaskBarMousedownEvent(evnt, barParams);
9588
+ }
9589
+ }
9590
+ }
9591
+ }, [taskBarSlot ? h('div', {
9592
+ key: 'cbc',
9593
+ class: 'vxe-gantt-view--chart-subview-custom-bar-content-wrapper',
9594
+ on: ctOns
9595
+ }, $xeGantt.callSlot(taskBarSlot, childBarParams, h)) : h('div', {
9596
+ class: 'vxe-gantt-view--chart-subview-bar-content-wrapper',
9597
+ on: ctOns
9598
+ }, [showProgress ? h('div', {
9599
+ class: 'vxe-gantt-view--chart-progress',
9600
+ style: childVpStyle
9601
+ }) : renderEmptyElement($xeGantt), showContent ? h('div', {
9602
+ class: 'vxe-gantt-view--chart-content'
9603
+ }, childTitle) : renderEmptyElement($xeGantt)])])]));
9604
+ }, {
9605
+ children: childrenField
9606
+ });
9607
+ cbVNs.push(h('div', {
9608
+ key: 'vcsc',
9609
+ class: 'vxe-gantt-view--chart-subview-wrappe is--inliner'
9610
+ }, cbcVNs));
9611
+ }
9612
+ } else {
9613
+ if (taskBarSlot) {
9614
+ cbVNs.push(h('div', {
9615
+ key: 'cbc',
9616
+ class: 'vxe-gantt-view--chart-custom-bar-content-wrapper',
9617
+ on: ctOns
9618
+ }, $xeGantt.callSlot(taskBarSlot, barParams, h)));
9573
9619
  } else if (isMilestone) {
9574
9620
  var icon = taskBarMilestoneOpts.icon,
9575
9621
  iconStatus = taskBarMilestoneOpts.iconStatus,