vxe-gantt 3.0.10 → 3.0.12
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 +8 -2
- package/es/gantt/src/gantt.js +1 -1
- package/es/gantt/style.css +6 -8
- package/es/gantt/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-gantt/style.css +6 -8
- package/es/vxe-gantt/style.min.css +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 +6 -2
- 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/gantt/style/style.css +6 -8
- package/lib/gantt/style/style.min.css +1 -1
- package/lib/index.umd.js +36 -20
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +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/vxe-gantt/style/style.css +6 -8
- package/lib/vxe-gantt/style/style.min.css +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 +8 -2
- package/packages/gantt/src/gantt.ts +2 -0
- package/styles/components/gantt.scss +28 -42
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.12");
|
|
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.12";
|
|
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', {
|
|
@@ -10218,7 +10218,9 @@ function syncTableScrollTop($xeGanttView, scrollTop) {
|
|
|
10218
10218
|
}, [h('div', {
|
|
10219
10219
|
ref: 'refScrollXSpaceElem',
|
|
10220
10220
|
class: 'vxe-gantt-view--scroll-x-space'
|
|
10221
|
-
})])
|
|
10221
|
+
})]), h('div', {
|
|
10222
|
+
class: 'vxe-gantt-view--scroll-x-handle-appearance'
|
|
10223
|
+
})]), h('div', {
|
|
10222
10224
|
ref: 'refScrollXRightCornerElem',
|
|
10223
10225
|
class: 'vxe-gantt-view--scroll-x-right-corner'
|
|
10224
10226
|
})]);
|
|
@@ -10243,7 +10245,9 @@ function syncTableScrollTop($xeGanttView, scrollTop) {
|
|
|
10243
10245
|
}, [h('div', {
|
|
10244
10246
|
ref: 'refScrollYSpaceElem',
|
|
10245
10247
|
class: 'vxe-gantt-view--scroll-y-space'
|
|
10246
|
-
})])
|
|
10248
|
+
})]), h('div', {
|
|
10249
|
+
class: 'vxe-gantt-view--scroll-y-handle-appearance'
|
|
10250
|
+
})]), h('div', {
|
|
10247
10251
|
ref: 'refScrollYBottomCornerElem',
|
|
10248
10252
|
class: 'vxe-gantt-view--scroll-y-bottom-corner'
|
|
10249
10253
|
})]);
|
|
@@ -10419,6 +10423,8 @@ function gantt_createInternalData() {
|
|
|
10419
10423
|
taskViewConfig: Object,
|
|
10420
10424
|
taskBarConfig: Object,
|
|
10421
10425
|
taskSplitConfig: Object,
|
|
10426
|
+
taskResizeConfig: Object,
|
|
10427
|
+
taskDragConfig: Object,
|
|
10422
10428
|
size: {
|
|
10423
10429
|
type: String,
|
|
10424
10430
|
default: function _default() {
|
|
@@ -12553,14 +12559,24 @@ function gantt_createInternalData() {
|
|
|
12553
12559
|
|
|
12554
12560
|
|
|
12555
12561
|
|
|
12562
|
+
var isReg = false;
|
|
12556
12563
|
var VxeGantt = Object.assign({}, gantt, {
|
|
12557
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
|
+
}
|
|
12558
12577
|
app.component(gantt.name, gantt);
|
|
12559
12578
|
}
|
|
12560
12579
|
});
|
|
12561
|
-
if (core_.VxeUI.dynamicApp) {
|
|
12562
|
-
core_.VxeUI.dynamicApp.use(VxeGantt);
|
|
12563
|
-
}
|
|
12564
12580
|
core_.VxeUI.component(gantt);
|
|
12565
12581
|
var Gantt = VxeGantt;
|
|
12566
12582
|
/* harmony default export */ var packages_gantt = (VxeGantt);
|