vxe-gantt 3.0.11 → 3.0.13
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/gantt/index.js +13 -3
- package/es/gantt/src/gantt-chart.js +10 -4
- package/es/gantt/src/gantt-view.js +1 -1
- package/es/gantt/src/gantt.js +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/gantt/index.js +13 -3
- package/lib/gantt/index.min.js +1 -1
- package/lib/gantt/src/gantt-chart.js +13 -13
- package/lib/gantt/src/gantt-chart.min.js +1 -1
- package/lib/gantt/src/gantt-view.js +1 -1
- package/lib/gantt/src/gantt-view.min.js +1 -1
- package/lib/gantt/src/gantt.js +2 -0
- package/lib/gantt/src/gantt.min.js +1 -1
- package/lib/index.umd.js +31 -19
- package/lib/index.umd.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/package.json +3 -3
- package/packages/gantt/index.ts +14 -3
- package/packages/gantt/src/gantt-chart.ts +11 -4
- package/packages/gantt/src/gantt-view.ts +1 -1
- package/packages/gantt/src/gantt.ts +2 -0
package/lib/index.umd.js
CHANGED
|
@@ -7643,7 +7643,7 @@ var core_ = __webpack_require__(4345);
|
|
|
7643
7643
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
7644
7644
|
|
|
7645
7645
|
var log = core_.VxeUI.log;
|
|
7646
|
-
var version = "gantt v".concat("3.0.
|
|
7646
|
+
var version = "gantt v".concat("3.0.13");
|
|
7647
7647
|
var warnLog = log.create('warn', version);
|
|
7648
7648
|
var errLog = log.create('error', version);
|
|
7649
7649
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
@@ -7653,7 +7653,7 @@ var errLog = log.create('error', version);
|
|
|
7653
7653
|
var setConfig = core_.VxeUI.setConfig,
|
|
7654
7654
|
setIcon = core_.VxeUI.setIcon,
|
|
7655
7655
|
checkVersion = core_.VxeUI.checkVersion;
|
|
7656
|
-
core_.VxeUI.ganttVersion = "3.0.
|
|
7656
|
+
core_.VxeUI.ganttVersion = "3.0.13";
|
|
7657
7657
|
setConfig({
|
|
7658
7658
|
gantt: {
|
|
7659
7659
|
// size: null,
|
|
@@ -8612,15 +8612,16 @@ var renderEmptyElement = core_.VxeUI.renderEmptyElement;
|
|
|
8612
8612
|
var titleField = $xeGantt.computeTitleField;
|
|
8613
8613
|
var progressField = $xeGantt.computeProgressField;
|
|
8614
8614
|
var taskBarOpts = $xeGantt.computeTaskBarOpts;
|
|
8615
|
+
var barParams = {
|
|
8616
|
+
$gantt: $xeGantt,
|
|
8617
|
+
row: row
|
|
8618
|
+
};
|
|
8615
8619
|
var showProgress = taskBarOpts.showProgress,
|
|
8616
8620
|
showContent = taskBarOpts.showContent,
|
|
8617
8621
|
contentMethod = taskBarOpts.contentMethod,
|
|
8618
8622
|
barStyle = taskBarOpts.barStyle;
|
|
8619
8623
|
var isBarRowStyle = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(barStyle);
|
|
8620
|
-
var barStyObj = (barStyle ? isBarRowStyle ? barStyle({
|
|
8621
|
-
row: row,
|
|
8622
|
-
$gantt: $xeGantt
|
|
8623
|
-
}) : barStyle : {}) || {};
|
|
8624
|
+
var barStyObj = (barStyle ? isBarRowStyle ? barStyle(barParams) : barStyle : {}) || {};
|
|
8624
8625
|
var round = barStyObj.round;
|
|
8625
8626
|
var rowRest = fullAllDataRowIdData[rowid] || {};
|
|
8626
8627
|
var resizeHeight = resizeHeightFlag ? rowRest.resizeHeight : 0;
|
|
@@ -8668,19 +8669,18 @@ var renderEmptyElement = core_.VxeUI.renderEmptyElement;
|
|
|
8668
8669
|
},
|
|
8669
8670
|
on: {
|
|
8670
8671
|
click: function click(evnt) {
|
|
8671
|
-
$xeGantt.handleTaskBarClickEvent(evnt,
|
|
8672
|
-
row: row
|
|
8673
|
-
});
|
|
8672
|
+
$xeGantt.handleTaskBarClickEvent(evnt, barParams);
|
|
8674
8673
|
},
|
|
8675
8674
|
dblclick: function dblclick(evnt) {
|
|
8676
|
-
$xeGantt.handleTaskBarDblclickEvent(evnt,
|
|
8677
|
-
|
|
8678
|
-
|
|
8675
|
+
$xeGantt.handleTaskBarDblclickEvent(evnt, barParams);
|
|
8676
|
+
},
|
|
8677
|
+
mousedown: function mousedown(evnt) {
|
|
8678
|
+
if ($xeGantt.handleTaskBarMousedownEvent) {
|
|
8679
|
+
$xeGantt.handleTaskBarMousedownEvent(evnt, barParams);
|
|
8680
|
+
}
|
|
8679
8681
|
}
|
|
8680
8682
|
}
|
|
8681
|
-
}, taskBarSlot ? $xeGantt.callSlot(taskBarSlot, {
|
|
8682
|
-
row: row
|
|
8683
|
-
}, h) : [showProgress ? h('div', {
|
|
8683
|
+
}, taskBarSlot ? $xeGantt.callSlot(taskBarSlot, barParams, h) : [showProgress ? h('div', {
|
|
8684
8684
|
class: 'vxe-gantt-view--chart-progress',
|
|
8685
8685
|
style: vpStyle
|
|
8686
8686
|
}) : renderEmptyElement($xeGantt), showContent ? h('div', {
|
|
@@ -9619,7 +9619,7 @@ function updateStyle($xeGanttView) {
|
|
|
9619
9619
|
var viewWidth = bodyScrollElem.clientWidth;
|
|
9620
9620
|
var remainWidth = viewWidth - viewTableWidth;
|
|
9621
9621
|
if (remainWidth > 0) {
|
|
9622
|
-
viewCellWidth +=
|
|
9622
|
+
viewCellWidth += remainWidth / visibleColumn.length;
|
|
9623
9623
|
viewTableWidth = viewWidth;
|
|
9624
9624
|
}
|
|
9625
9625
|
}
|
|
@@ -10423,6 +10423,8 @@ function gantt_createInternalData() {
|
|
|
10423
10423
|
taskViewConfig: Object,
|
|
10424
10424
|
taskBarConfig: Object,
|
|
10425
10425
|
taskSplitConfig: Object,
|
|
10426
|
+
taskResizeConfig: Object,
|
|
10427
|
+
taskDragConfig: Object,
|
|
10426
10428
|
size: {
|
|
10427
10429
|
type: String,
|
|
10428
10430
|
default: function _default() {
|
|
@@ -12557,14 +12559,24 @@ function gantt_createInternalData() {
|
|
|
12557
12559
|
|
|
12558
12560
|
|
|
12559
12561
|
|
|
12562
|
+
var isReg = false;
|
|
12560
12563
|
var VxeGantt = Object.assign({}, gantt, {
|
|
12561
12564
|
install: function install(app) {
|
|
12565
|
+
if (typeof window !== 'undefined') {
|
|
12566
|
+
var VxeGanttExtendGanttChart = window.VxeGanttExtendGanttChart;
|
|
12567
|
+
if (VxeGanttExtendGanttChart && VxeGanttExtendGanttChart.use) {
|
|
12568
|
+
VxeGanttExtendGanttChart.use(core_.VxeUI);
|
|
12569
|
+
}
|
|
12570
|
+
}
|
|
12571
|
+
if (!isReg) {
|
|
12572
|
+
isReg = true;
|
|
12573
|
+
if (core_.VxeUI.dynamicApp) {
|
|
12574
|
+
core_.VxeUI.dynamicApp.use(VxeGantt);
|
|
12575
|
+
}
|
|
12576
|
+
}
|
|
12562
12577
|
app.component(gantt.name, gantt);
|
|
12563
12578
|
}
|
|
12564
12579
|
});
|
|
12565
|
-
if (core_.VxeUI.dynamicApp) {
|
|
12566
|
-
core_.VxeUI.dynamicApp.use(VxeGantt);
|
|
12567
|
-
}
|
|
12568
12580
|
core_.VxeUI.component(gantt);
|
|
12569
12581
|
var Gantt = VxeGantt;
|
|
12570
12582
|
/* harmony default export */ var packages_gantt = (VxeGantt);
|