vxe-gantt 3.5.2 → 3.5.4
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/README.md +2 -2
- package/es/gantt/src/gantt-chart.js +10 -10
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/gantt/src/gantt-chart.js +10 -10
- package/lib/gantt/src/gantt-chart.min.js +1 -1
- package/lib/index.umd.js +12 -12
- 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/src/gantt-chart.ts +11 -11
- package/types/all.d.ts +14 -1
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.5.
|
|
16
|
+
_core.VxeUI.ganttVersion = "3.5.4";
|
|
17
17
|
var ymdFormat = 'yyyy-MM-dd';
|
|
18
18
|
var ymdhmsFormat = 'yyyy-MM-dd HH:mm:ss';
|
|
19
19
|
setConfig({
|
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.5.
|
|
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.5.4","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,isHover:!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},taskBarSubviewConfig:{}}}),"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",GANTT_VIEW_TASK_MILESTONE:iconPrefix+"square-fill rotate45"}),exports.default=_core.VxeUI);
|
package/lib/ui/src/log.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.createComponentLog = createComponentLog;
|
|
|
7
7
|
exports.warnLog = exports.errLog = void 0;
|
|
8
8
|
var _core = require("@vxe-ui/core");
|
|
9
9
|
var log = _core.VxeUI.log;
|
|
10
|
-
var ganttVersion = "gantt v".concat("3.5.
|
|
10
|
+
var ganttVersion = "gantt v".concat("3.5.4");
|
|
11
11
|
function createComponentLog(name) {
|
|
12
12
|
var uiVersion = _core.VxeUI.uiVersion ? "ui v".concat(_core.VxeUI.uiVersion) : '';
|
|
13
13
|
var tableVersion = _core.VxeUI.tableVersion ? "table v".concat(_core.VxeUI.tableVersion) : '';
|
package/lib/ui/src/log.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.createComponentLog=createComponentLog,exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core"),log=_core.VxeUI.log,ganttVersion="gantt v".concat("3.5.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.createComponentLog=createComponentLog,exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core"),log=_core.VxeUI.log,ganttVersion="gantt v".concat("3.5.4");function createComponentLog(e){var r=_core.VxeUI.uiVersion?"ui v".concat(_core.VxeUI.uiVersion):"",o=_core.VxeUI.tableVersion?"table v".concat(_core.VxeUI.tableVersion):"",n=_core.VxeUI.designVersion?"design v".concat(_core.VxeUI.designVersion):"",r=[r,o,ganttVersion,n].join(" ");return{warnLog:log.create("warn",r+"] ["+e),errLog:log.create("error",r+"] ["+e)}}var warnLog=exports.warnLog=log.create("warn",ganttVersion),errLog=exports.errLog=log.create("error",ganttVersion);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vxe-gantt",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.4",
|
|
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.
|
|
64
|
-
"vxe-table": "3.
|
|
63
|
+
"vxe-pc-ui": "3.16.0",
|
|
64
|
+
"vxe-table": "3.22.0"
|
|
65
65
|
},
|
|
66
66
|
"vetur": {
|
|
67
67
|
"tags": "helper/vetur/tags.json",
|
|
@@ -82,6 +82,17 @@ export default defineVxeComponent({
|
|
|
82
82
|
const progressValue = showProgress ? Math.min(100, Math.max(0, XEUtils.toNumber(XEUtils.get(row, progressField)))) : 0
|
|
83
83
|
const renderTaskType = getTaskType(XEUtils.get(row, typeField))
|
|
84
84
|
|
|
85
|
+
const ctParams = {
|
|
86
|
+
$gantt: $xeGantt,
|
|
87
|
+
source: sourceType,
|
|
88
|
+
type: viewType,
|
|
89
|
+
scaleType: scaleUnit,
|
|
90
|
+
row,
|
|
91
|
+
$rowIndex,
|
|
92
|
+
rowIndex,
|
|
93
|
+
_rowIndex
|
|
94
|
+
}
|
|
95
|
+
|
|
85
96
|
const vbStyle: VxeComponentStyleType = {}
|
|
86
97
|
const vpStyle: VxeComponentStyleType = {
|
|
87
98
|
width: `${progressValue || 0}%`
|
|
@@ -96,17 +107,6 @@ export default defineVxeComponent({
|
|
|
96
107
|
}
|
|
97
108
|
}
|
|
98
109
|
|
|
99
|
-
const ctParams = {
|
|
100
|
-
$gantt: $xeGantt,
|
|
101
|
-
source: sourceType,
|
|
102
|
-
type: viewType,
|
|
103
|
-
scaleType: scaleUnit,
|
|
104
|
-
row,
|
|
105
|
-
$rowIndex,
|
|
106
|
-
rowIndex,
|
|
107
|
-
_rowIndex
|
|
108
|
-
}
|
|
109
|
-
|
|
110
110
|
let cbVNs: VNode[] = []
|
|
111
111
|
if ($xeGantt.renderGanttTaskBarContent) {
|
|
112
112
|
cbVNs = $xeGantt.renderGanttTaskBarContent(h, ctParams, {
|
package/types/all.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { VueConstructor } from 'vue'
|
|
2
|
-
import { VxeUIExport, VxeGlobalConfig } from 'vxe-pc-ui'
|
|
2
|
+
import { VxeUIExport, VxeGlobalConfig, VxeComponentKebabCaseKeys } from 'vxe-pc-ui'
|
|
3
|
+
|
|
4
|
+
import VxeGantt from 'vxe-pc-ui/types/components/gantt'
|
|
3
5
|
|
|
4
6
|
declare global {
|
|
5
7
|
interface Window {
|
|
@@ -9,6 +11,17 @@ declare global {
|
|
|
9
11
|
|
|
10
12
|
export function install (app: VueConstructor, options?: VxeGlobalConfig): void
|
|
11
13
|
|
|
14
|
+
interface AllComponents {
|
|
15
|
+
/**
|
|
16
|
+
* Gantt 甘特图
|
|
17
|
+
*/
|
|
18
|
+
VxeGantt: typeof VxeGantt
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare module '@vxe-ui/core' {
|
|
22
|
+
export interface VxeGlobalComponents extends AllComponents, VxeComponentKebabCaseKeys<AllComponents> {}
|
|
23
|
+
}
|
|
24
|
+
|
|
12
25
|
// Vxe core
|
|
13
26
|
export * from 'vxe-pc-ui/types/ui'
|
|
14
27
|
|