vxe-gantt 3.1.7 → 3.1.9
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/src/gantt-view.js +5 -0
- package/es/gantt/src/gantt.js +2 -2
- package/es/ui/index.js +3 -3
- package/es/ui/src/log.js +1 -1
- package/lib/gantt/src/gantt-view.js +5 -0
- package/lib/gantt/src/gantt-view.min.js +1 -1
- package/lib/gantt/src/gantt.js +2 -2
- package/lib/gantt/src/gantt.min.js +1 -1
- package/lib/index.umd.js +11 -6
- package/lib/index.umd.min.js +1 -1
- package/lib/ui/index.js +3 -3
- 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/src/gantt-view.ts +6 -0
- package/packages/gantt/src/gantt.ts +2 -2
- package/packages/ui/index.ts +2 -2
package/lib/ui/index.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.default = void 0;
|
|
|
13
13
|
var _core = require("@vxe-ui/core");
|
|
14
14
|
var setConfig = _core.VxeUI.setConfig,
|
|
15
15
|
setIcon = _core.VxeUI.setIcon;
|
|
16
|
-
_core.VxeUI.ganttVersion = "3.1.
|
|
16
|
+
_core.VxeUI.ganttVersion = "3.1.9";
|
|
17
17
|
var ymdFormat = 'yyyy-MM-dd';
|
|
18
18
|
var ymdhmsFormat = 'yyyy-MM-dd HH:mm:ss';
|
|
19
19
|
setConfig({
|
|
@@ -94,8 +94,8 @@ setConfig({
|
|
|
94
94
|
taskViewConfig: {
|
|
95
95
|
showNowLine: true,
|
|
96
96
|
gridding: {
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
leftSpacing: 1,
|
|
98
|
+
rightSpacing: 1
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
taskSplitConfig: {
|
package/lib/ui/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"VxeUI",{enumerable:!0,get:function(){return _core.VxeUI}}),exports.default=void 0;var _core=require("@vxe-ui/core"),setConfig=_core.VxeUI.setConfig,setIcon=_core.VxeUI.setIcon,ymdFormat=(_core.VxeUI.ganttVersion="3.1.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"VxeUI",{enumerable:!0,get:function(){return _core.VxeUI}}),exports.default=void 0;var _core=require("@vxe-ui/core"),setConfig=_core.VxeUI.setConfig,setIcon=_core.VxeUI.setIcon,ymdFormat=(_core.VxeUI.ganttVersion="3.1.9","yyyy-MM-dd"),ymdhmsFormat="yyyy-MM-dd HH:mm:ss",iconPrefix=(setConfig({gantt:{formConfig:{enabled:!0},pagerConfig:{enabled:!0},toolbarConfig:{enabled:!0},proxyConfig:{enabled:!0,autoLoad:!0,showLoading:!0,showResponseMsg:!0,showActionMsg:!0,response:{list:null,result:"result",total:"page.total",message:"message"}},taskBarTooltipConfig:{enterable:!0},taskLinkConfig:{enabled:!0,showArrow:!0},taskViewScaleConfig:{year:{valueFormat:ymdFormat},quarter:{valueFormat:ymdFormat},month:{valueFormat:ymdFormat},week:{startDay:1,valueFormat:ymdFormat},day:{valueFormat:ymdFormat},date:{valueFormat:ymdFormat},hour:{valueFormat:ymdhmsFormat},minute:{valueFormat:ymdhmsFormat},second:{valueFormat:ymdhmsFormat}},taskViewConfig:{showNowLine:!0,gridding:{leftSpacing:1,rightSpacing:1}},taskSplitConfig:{enabled:!0,resize:!0,showCollapseTableButton:!0,showCollapseTaskButton:!0}}}),"vxe-icon-"),_default=(setIcon({GANTT_VIEW_LEFT_OPEN:iconPrefix+"arrow-left",GANTT_VIEW_LEFT_CLOSE:iconPrefix+"arrow-right",GANTT_VIEW_RIGHT_OPEN:iconPrefix+"arrow-right",GANTT_VIEW_RIGHT_CLOSE:iconPrefix+"arrow-left"}),exports.default=_core.VxeUI);
|
package/lib/ui/src/log.js
CHANGED
|
@@ -6,6 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.warnLog = exports.errLog = void 0;
|
|
7
7
|
var _core = require("@vxe-ui/core");
|
|
8
8
|
var log = _core.VxeUI.log;
|
|
9
|
-
var version = "gantt v".concat("3.1.
|
|
9
|
+
var version = "gantt v".concat("3.1.9");
|
|
10
10
|
var warnLog = exports.warnLog = log.create('warn', version);
|
|
11
11
|
var errLog = exports.errLog = log.create('error', version);
|
package/lib/ui/src/log.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core"),log=_core.VxeUI.log,version="gantt v".concat("3.1.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core"),log=_core.VxeUI.log,version="gantt v".concat("3.1.9"),warnLog=exports.warnLog=log.create("warn",version),errLog=exports.errLog=log.create("error",version);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vxe-gantt",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.9",
|
|
4
4
|
"description": "A vue based gantt component",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"update": "npm install --legacy-peer-deps",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"vue": "~2.6.14",
|
|
61
61
|
"vue-i18n": "^8.15.1",
|
|
62
62
|
"vue-router": "^3.5.1",
|
|
63
|
-
"vxe-pc-ui": "^3.11.
|
|
64
|
-
"vxe-table": "^3.19.
|
|
63
|
+
"vxe-pc-ui": "^3.11.10",
|
|
64
|
+
"vxe-table": "^3.19.32"
|
|
65
65
|
},
|
|
66
66
|
"vetur": {
|
|
67
67
|
"tags": "helper/vetur/tags.json",
|
|
@@ -943,6 +943,12 @@ function updateScrollXSpace ($xeGanttView: VxeGanttViewConstructor & VxeGanttVie
|
|
|
943
943
|
scrollXSpaceEl.style.width = `${scrollXWidth}px`
|
|
944
944
|
}
|
|
945
945
|
|
|
946
|
+
const lineWrapper = getRefElem(elemStore['main-chart-line-wrapper'])
|
|
947
|
+
const svgElem = lineWrapper ? lineWrapper.firstElementChild as HTMLDivElement : null
|
|
948
|
+
if (svgElem) {
|
|
949
|
+
svgElem.style.width = `${scrollXWidth}px`
|
|
950
|
+
}
|
|
951
|
+
|
|
946
952
|
calcScrollbar($xeGanttView)
|
|
947
953
|
return $xeGanttView.$nextTick()
|
|
948
954
|
}
|
|
@@ -77,14 +77,14 @@ XEUtils.each((VxeTableComponent as any).methods, (fn, name) => {
|
|
|
77
77
|
|
|
78
78
|
function handleTaskAddLink (item: VxeGanttPropTypes.Link, linkConfs: VxeGanttDefines.LinkConfObj[], fromConfMaps: Record<string, VxeGanttDefines.LinkConfObj[]>, fromKeyMaps: Record<string, VxeGanttDefines.LinkConfObj>, uniqueMaps: Record<string, VxeGanttDefines.LinkConfObj>) {
|
|
79
79
|
if (item) {
|
|
80
|
-
const { type, from, to, lineStatus, lineColor,
|
|
80
|
+
const { type, from, to, lineStatus, lineColor, lineType, lineWidth, showArrow } = item
|
|
81
81
|
const tlKey = getTaskLinkKey(from, to)
|
|
82
82
|
if (from && to && !uniqueMaps[tlKey]) {
|
|
83
83
|
let confs = fromConfMaps[from]
|
|
84
84
|
if (!confs) {
|
|
85
85
|
confs = fromConfMaps[from] = []
|
|
86
86
|
}
|
|
87
|
-
const confObj: VxeGanttDefines.LinkConfObj = { type, from, to, lineStatus, lineColor,
|
|
87
|
+
const confObj: VxeGanttDefines.LinkConfObj = { type, from, to, lineStatus, lineColor, lineType, lineWidth, showArrow }
|
|
88
88
|
confs.push(confObj)
|
|
89
89
|
linkConfs.push(confObj)
|
|
90
90
|
fromKeyMaps[from] = confObj
|