vxe-gantt 4.9.2 → 4.9.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/dist/all.esm.js +1398 -881
- package/es/components.js +1 -3
- package/es/gantt/src/gantt-body.js +100 -76
- package/es/gantt/src/gantt-chart.js +363 -239
- package/es/gantt/src/gantt-footer.js +16 -12
- package/es/gantt/src/gantt-header.js +135 -104
- package/es/gantt/src/gantt-view.js +235 -201
- package/es/gantt/src/gantt.js +545 -229
- package/es/gantt/src/grid-emits.js +1 -15
- package/es/style.css +982 -0
- package/es/style.mini.css +1 -0
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/ui/src/utils.d.ts +1 -1
- package/lib/components.js +1 -3
- package/lib/gantt/src/gantt-body.js +100 -76
- package/lib/gantt/src/gantt-chart.js +363 -239
- package/lib/gantt/src/gantt-footer.js +16 -12
- package/lib/gantt/src/gantt-header.js +135 -104
- package/lib/gantt/src/gantt-view.js +235 -201
- package/lib/gantt/src/gantt.js +545 -229
- package/lib/gantt/src/grid-emits.js +1 -15
- package/lib/index.umd.js +1398 -881
- package/lib/index.umd.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/package.json +11 -4
- package/packages/components.ts +20 -22
- package/packages/gantt/index.ts +21 -21
- package/packages/gantt/src/emits.ts +25 -25
- package/packages/gantt/src/gantt-body.ts +317 -293
- package/packages/gantt/src/gantt-chart.ts +655 -531
- package/packages/gantt/src/gantt-footer.ts +55 -51
- package/packages/gantt/src/gantt-header.ts +193 -162
- package/packages/gantt/src/gantt-view.ts +2695 -2663
- package/packages/gantt/src/gantt.ts +3317 -2982
- package/packages/gantt/src/grid-emits.ts +5 -19
- package/packages/gantt/src/static.ts +35 -35
- package/packages/gantt/src/table-emits.ts +134 -134
- package/packages/gantt/src/util.ts +45 -45
- package/packages/index.ts +4 -4
- package/packages/ui/index.ts +133 -135
- package/packages/ui/src/comp.ts +3 -3
- package/packages/ui/src/depend.ts +14 -14
- package/packages/ui/src/dom.ts +202 -202
- package/packages/ui/src/log.ts +19 -19
- package/packages/ui/src/utils.ts +80 -80
- package/packages/ui/src/vn.ts +9 -9
- package/types/all.d.ts +33 -33
- package/types/index.d.ts +4 -4
|
@@ -193,17 +193,20 @@ var gantt_view_default = defineVxeComponent({
|
|
|
193
193
|
const scrollbarYToLeft = computeScrollbarYToLeft.value;
|
|
194
194
|
const scrollXVisible = computeScrollXVisible.value;
|
|
195
195
|
const scrollYVisible = computeScrollYVisible.value;
|
|
196
|
-
return domUtils.buildClass(
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
196
|
+
return domUtils.buildClass(
|
|
197
|
+
[
|
|
198
|
+
"vxe-scrollbar is--virtual",
|
|
199
|
+
scrollbarOpts.fluentOverlay ? "is--fluent-overlay" : "is--default-mode",
|
|
200
|
+
`ov-x--${scrollXVisible === false ? "hidden" : "visible"}`,
|
|
201
|
+
`ov-y--${scrollYVisible === false ? "hidden" : "visible"}`,
|
|
202
|
+
`sx-pos--${scrollbarXToTop ? "top" : "bottom"}`,
|
|
203
|
+
`sy-pos--${scrollbarYToLeft ? "left" : "right"}`
|
|
204
|
+
],
|
|
205
|
+
{
|
|
206
|
+
"overflow-y": yThumbHeight,
|
|
207
|
+
"overflow-x": xThumbWidth
|
|
208
|
+
}
|
|
209
|
+
);
|
|
207
210
|
});
|
|
208
211
|
const computeScaleDateList = computed(() => {
|
|
209
212
|
const { minViewDate, maxViewDate } = reactData;
|
|
@@ -368,21 +371,7 @@ var gantt_view_default = defineVxeComponent({
|
|
|
368
371
|
getRefMaps: () => refMaps,
|
|
369
372
|
getComputeMaps: () => computeMaps
|
|
370
373
|
};
|
|
371
|
-
const {
|
|
372
|
-
refTrackXElem,
|
|
373
|
-
refTrackYElem,
|
|
374
|
-
refThumbXElem,
|
|
375
|
-
refThumbYElem,
|
|
376
|
-
updateThumbSize,
|
|
377
|
-
updateThumbOffset,
|
|
378
|
-
clickTrackXEvent,
|
|
379
|
-
clickTrackYEvent,
|
|
380
|
-
pointerdownThumbXEvent,
|
|
381
|
-
pointermoveThumbXEvent,
|
|
382
|
-
cleatPointerThumbEvent,
|
|
383
|
-
pointerdownThumbYEvent,
|
|
384
|
-
pointermoveThumbYEvent
|
|
385
|
-
} = useFns.useInitVScrollbar($xeGanttView);
|
|
374
|
+
const { refTrackXElem, refTrackYElem, refThumbXElem, refThumbYElem, updateThumbSize, updateThumbOffset, clickTrackXEvent, clickTrackYEvent, pointerdownThumbXEvent, pointermoveThumbXEvent, cleatPointerThumbEvent, pointerdownThumbYEvent, pointermoveThumbYEvent } = useFns.useInitVScrollbar($xeGanttView);
|
|
386
375
|
const parseStringDate = (dateValue) => {
|
|
387
376
|
const dateFormat = computeDateFormat.value;
|
|
388
377
|
return XEUtils.toStringDate(dateValue, dateFormat);
|
|
@@ -1364,18 +1353,22 @@ var gantt_view_default = defineVxeComponent({
|
|
|
1364
1353
|
const typeField = computeTypeField.value;
|
|
1365
1354
|
let minChildLeftSize = 0;
|
|
1366
1355
|
let maxChildLeftSize = 0;
|
|
1367
|
-
XEUtils.eachTree(
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1356
|
+
XEUtils.eachTree(
|
|
1357
|
+
list,
|
|
1358
|
+
(childRow) => {
|
|
1359
|
+
const childRowid = $xeTable.getRowid(childRow);
|
|
1360
|
+
const renderTaskType = XEUtils.get(childRow, typeField);
|
|
1361
|
+
if (hasSubviewTask(renderTaskType)) {
|
|
1362
|
+
return;
|
|
1363
|
+
}
|
|
1364
|
+
const childChartRest = childRowid ? chartMaps[childRowid] : null;
|
|
1365
|
+
if (childChartRest) {
|
|
1366
|
+
maxChildLeftSize = Math.max(maxChildLeftSize, childChartRest.oLeftSize + childChartRest.oWidthSize);
|
|
1367
|
+
minChildLeftSize = minChildLeftSize ? Math.min(minChildLeftSize, childChartRest.oLeftSize) : childChartRest.oLeftSize;
|
|
1368
|
+
}
|
|
1369
|
+
},
|
|
1370
|
+
{ children: childrenField }
|
|
1371
|
+
);
|
|
1379
1372
|
return {
|
|
1380
1373
|
minSize: minChildLeftSize,
|
|
1381
1374
|
maxSize: maxChildLeftSize
|
|
@@ -1561,10 +1554,7 @@ var gantt_view_default = defineVxeComponent({
|
|
|
1561
1554
|
bodyTableElem.style.width = `${vmTableWidth}px`;
|
|
1562
1555
|
}
|
|
1563
1556
|
reactData.scrollXWidth = viewTableWidth;
|
|
1564
|
-
return Promise.all([
|
|
1565
|
-
updateTaskChartStyle(),
|
|
1566
|
-
$xeGantt.handleUpTaskLinkStyle ? $xeGantt.handleUpTaskLinkStyle($xeGanttView) : null
|
|
1567
|
-
]);
|
|
1557
|
+
return Promise.all([updateTaskChartStyle(), $xeGantt.handleUpTaskLinkStyle ? $xeGantt.handleUpTaskLinkStyle($xeGanttView) : null]);
|
|
1568
1558
|
};
|
|
1569
1559
|
const handleRecalculateStyle = () => {
|
|
1570
1560
|
const el = refElem.value;
|
|
@@ -1593,18 +1583,14 @@ var gantt_view_default = defineVxeComponent({
|
|
|
1593
1583
|
if (rceTimeout) {
|
|
1594
1584
|
clearTimeout(rceTimeout);
|
|
1595
1585
|
if (rceRunTime && rceRunTime + (refreshDelay - 5) < Date.now()) {
|
|
1596
|
-
resolve(
|
|
1597
|
-
handleRecalculateStyle()
|
|
1598
|
-
);
|
|
1586
|
+
resolve(handleRecalculateStyle());
|
|
1599
1587
|
} else {
|
|
1600
1588
|
nextTick(() => {
|
|
1601
1589
|
resolve();
|
|
1602
1590
|
});
|
|
1603
1591
|
}
|
|
1604
1592
|
} else {
|
|
1605
|
-
resolve(
|
|
1606
|
-
handleRecalculateStyle()
|
|
1607
|
-
);
|
|
1593
|
+
resolve(handleRecalculateStyle());
|
|
1608
1594
|
}
|
|
1609
1595
|
internalData.rceTimeout = setTimeout(() => {
|
|
1610
1596
|
internalData.rceTimeout = void 0;
|
|
@@ -2165,95 +2151,117 @@ var gantt_view_default = defineVxeComponent({
|
|
|
2165
2151
|
};
|
|
2166
2152
|
Object.assign($xeGanttView, ganttViewMethods, ganttViewPrivateMethods);
|
|
2167
2153
|
const renderScrollX = () => {
|
|
2168
|
-
return h(
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
}),
|
|
2177
|
-
h("div", {
|
|
2178
|
-
ref: refScrollXWrapperElem,
|
|
2179
|
-
class: "vxe-gantt-view--scroll-x-wrapper"
|
|
2180
|
-
}, [
|
|
2154
|
+
return h(
|
|
2155
|
+
"div",
|
|
2156
|
+
{
|
|
2157
|
+
key: "vsx",
|
|
2158
|
+
ref: refScrollXVirtualElem,
|
|
2159
|
+
class: "vxe-gantt-view--scroll-x-virtual"
|
|
2160
|
+
},
|
|
2161
|
+
[
|
|
2181
2162
|
h("div", {
|
|
2182
|
-
ref:
|
|
2183
|
-
class: "vxe-gantt-view--scroll-x-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2163
|
+
ref: refScrollXLeftCornerElem,
|
|
2164
|
+
class: "vxe-gantt-view--scroll-x-left-corner"
|
|
2165
|
+
}),
|
|
2166
|
+
h(
|
|
2167
|
+
"div",
|
|
2168
|
+
{
|
|
2169
|
+
ref: refScrollXWrapperElem,
|
|
2170
|
+
class: "vxe-gantt-view--scroll-x-wrapper"
|
|
2171
|
+
},
|
|
2172
|
+
[
|
|
2173
|
+
h(
|
|
2174
|
+
"div",
|
|
2175
|
+
{
|
|
2176
|
+
ref: refScrollXHandleElem,
|
|
2177
|
+
class: "vxe-gantt-view--scroll-x-handle",
|
|
2178
|
+
onScroll: $xeGanttView.triggerVirtualScrollXEvent
|
|
2179
|
+
},
|
|
2180
|
+
[
|
|
2181
|
+
h("div", {
|
|
2182
|
+
ref: refScrollXSpaceElem,
|
|
2183
|
+
class: "vxe-gantt-view--scroll-x-space"
|
|
2184
|
+
})
|
|
2185
|
+
]
|
|
2186
|
+
),
|
|
2187
|
+
h("div", {
|
|
2188
|
+
class: "vxe-gantt-view--scroll-x-handle-appearance"
|
|
2189
|
+
})
|
|
2190
|
+
]
|
|
2191
|
+
),
|
|
2191
2192
|
h("div", {
|
|
2192
|
-
|
|
2193
|
+
ref: refScrollXRightCornerElem,
|
|
2194
|
+
class: "vxe-gantt-view--scroll-x-right-corner"
|
|
2193
2195
|
})
|
|
2194
|
-
]
|
|
2195
|
-
|
|
2196
|
-
ref: refScrollXRightCornerElem,
|
|
2197
|
-
class: "vxe-gantt-view--scroll-x-right-corner"
|
|
2198
|
-
})
|
|
2199
|
-
]);
|
|
2196
|
+
]
|
|
2197
|
+
);
|
|
2200
2198
|
};
|
|
2201
2199
|
const renderScrollY = () => {
|
|
2202
|
-
return h(
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
}),
|
|
2211
|
-
h("div", {
|
|
2212
|
-
ref: refScrollYWrapperElem,
|
|
2213
|
-
class: "vxe-gantt-view--scroll-y-wrapper"
|
|
2214
|
-
}, [
|
|
2200
|
+
return h(
|
|
2201
|
+
"div",
|
|
2202
|
+
{
|
|
2203
|
+
key: "vsy",
|
|
2204
|
+
ref: refScrollYVirtualElem,
|
|
2205
|
+
class: "vxe-gantt-view--scroll-y-virtual"
|
|
2206
|
+
},
|
|
2207
|
+
[
|
|
2215
2208
|
h("div", {
|
|
2216
|
-
ref:
|
|
2217
|
-
class: "vxe-gantt-view--scroll-y-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2209
|
+
ref: refScrollYTopCornerElem,
|
|
2210
|
+
class: "vxe-gantt-view--scroll-y-top-corner"
|
|
2211
|
+
}),
|
|
2212
|
+
h(
|
|
2213
|
+
"div",
|
|
2214
|
+
{
|
|
2215
|
+
ref: refScrollYWrapperElem,
|
|
2216
|
+
class: "vxe-gantt-view--scroll-y-wrapper"
|
|
2217
|
+
},
|
|
2218
|
+
[
|
|
2219
|
+
h(
|
|
2220
|
+
"div",
|
|
2221
|
+
{
|
|
2222
|
+
ref: refScrollYHandleElem,
|
|
2223
|
+
class: "vxe-gantt-view--scroll-y-handle",
|
|
2224
|
+
onScroll: $xeGanttView.triggerVirtualScrollYEvent
|
|
2225
|
+
},
|
|
2226
|
+
[
|
|
2227
|
+
h("div", {
|
|
2228
|
+
ref: refScrollYSpaceElem,
|
|
2229
|
+
class: "vxe-gantt-view--scroll-y-space"
|
|
2230
|
+
})
|
|
2231
|
+
]
|
|
2232
|
+
),
|
|
2233
|
+
h("div", {
|
|
2234
|
+
class: "vxe-gantt-view--scroll-y-handle-appearance"
|
|
2235
|
+
})
|
|
2236
|
+
]
|
|
2237
|
+
),
|
|
2225
2238
|
h("div", {
|
|
2226
|
-
|
|
2239
|
+
ref: refScrollYBottomCornerElem,
|
|
2240
|
+
class: "vxe-gantt-view--scroll-y-bottom-corner"
|
|
2227
2241
|
})
|
|
2228
|
-
]
|
|
2229
|
-
|
|
2230
|
-
ref: refScrollYBottomCornerElem,
|
|
2231
|
-
class: "vxe-gantt-view--scroll-y-bottom-corner"
|
|
2232
|
-
})
|
|
2233
|
-
]);
|
|
2242
|
+
]
|
|
2243
|
+
);
|
|
2234
2244
|
};
|
|
2235
2245
|
const renderViewport = () => {
|
|
2236
|
-
return h(
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
h(GanttViewFooterComponent)
|
|
2243
|
-
|
|
2246
|
+
return h(
|
|
2247
|
+
"div",
|
|
2248
|
+
{
|
|
2249
|
+
key: "tvw",
|
|
2250
|
+
class: "vxe-gantt-view--viewport-wrapper"
|
|
2251
|
+
},
|
|
2252
|
+
[h(GanttViewHeaderComponent), h(GanttViewBodyComponent), h(GanttViewFooterComponent)]
|
|
2253
|
+
);
|
|
2244
2254
|
};
|
|
2245
2255
|
const renderNativeBody = () => {
|
|
2246
2256
|
const scrollbarYToLeft = computeScrollbarYToLeft.value;
|
|
2247
|
-
return h(
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
renderScrollY()
|
|
2256
|
-
]);
|
|
2257
|
+
return h(
|
|
2258
|
+
"div",
|
|
2259
|
+
{
|
|
2260
|
+
key: "lnb",
|
|
2261
|
+
class: "vxe-gantt-view--layout-wrapper"
|
|
2262
|
+
},
|
|
2263
|
+
scrollbarYToLeft ? [renderScrollY(), renderViewport()] : [renderViewport(), renderScrollY()]
|
|
2264
|
+
);
|
|
2257
2265
|
};
|
|
2258
2266
|
const renderVirtualBody = () => {
|
|
2259
2267
|
const { showLeftView } = ganttReactData;
|
|
@@ -2267,89 +2275,115 @@ var gantt_view_default = defineVxeComponent({
|
|
|
2267
2275
|
const scrollbarXToTop = computeScrollbarXToTop.value;
|
|
2268
2276
|
const scrollbarYToLeft = computeScrollbarYToLeft.value;
|
|
2269
2277
|
const scrollbarWrapperClss = computeScrollbarWrapperClss.value;
|
|
2270
|
-
return h(
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
"
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2278
|
+
return h(
|
|
2279
|
+
"div",
|
|
2280
|
+
{
|
|
2281
|
+
key: "lvb",
|
|
2282
|
+
class: [
|
|
2283
|
+
"vxe-gantt--layout-wrapper",
|
|
2284
|
+
`sx-pos--${scrollbarXToTop ? "top" : "bottom"}`,
|
|
2285
|
+
`sy-pos--${scrollbarYToLeft ? "left" : "right"}`,
|
|
2286
|
+
{
|
|
2287
|
+
"is--virtual-scrollbar": isVScrollbar,
|
|
2288
|
+
"ov-padding": isVScrollbar && scrollbarOpts.padding,
|
|
2289
|
+
"ov-x--auto-hide": isVScrollbar && scrollXAutoHide,
|
|
2290
|
+
"ov-y--auto-hide": isVScrollbar && scrollYAutoHide,
|
|
2291
|
+
"overflow-y": yThumbHeight,
|
|
2292
|
+
"overflow-x": xThumbWidth
|
|
2293
|
+
}
|
|
2294
|
+
]
|
|
2295
|
+
},
|
|
2296
|
+
[
|
|
2297
|
+
renderViewport(),
|
|
2298
|
+
h(
|
|
2299
|
+
"div",
|
|
2300
|
+
{
|
|
2301
|
+
class: scrollbarWrapperClss
|
|
2302
|
+
},
|
|
2303
|
+
[
|
|
2304
|
+
scrollXVisible === false ? renderEmptyElement($xeGantt) : h(
|
|
2305
|
+
"div",
|
|
2306
|
+
{
|
|
2307
|
+
ref: refTrackXElem,
|
|
2308
|
+
class: "vxe-scrollbar--track-x",
|
|
2309
|
+
onClick: clickTrackXEvent
|
|
2310
|
+
},
|
|
2311
|
+
[
|
|
2312
|
+
h("div", {
|
|
2313
|
+
ref: refThumbXElem,
|
|
2314
|
+
class: "vxe-scrollbar--thumb-x",
|
|
2315
|
+
onPointerdown: pointerdownThumbXEvent,
|
|
2316
|
+
onPointermove: pointermoveThumbXEvent,
|
|
2317
|
+
onPointerup: cleatPointerThumbEvent,
|
|
2318
|
+
onPointercancel: cleatPointerThumbEvent,
|
|
2319
|
+
onLostpointercapture: cleatPointerThumbEvent
|
|
2320
|
+
})
|
|
2321
|
+
]
|
|
2322
|
+
),
|
|
2323
|
+
scrollbarYToLeft && showLeftView || scrollYVisible === false ? renderEmptyElement($xeGantt) : h(
|
|
2324
|
+
"div",
|
|
2325
|
+
{
|
|
2326
|
+
ref: refTrackYElem,
|
|
2327
|
+
class: "vxe-scrollbar--track-y",
|
|
2328
|
+
onClick: clickTrackYEvent
|
|
2329
|
+
},
|
|
2330
|
+
[
|
|
2331
|
+
h("div", {
|
|
2332
|
+
ref: refThumbYElem,
|
|
2333
|
+
class: "vxe-scrollbar--thumb-y",
|
|
2334
|
+
onPointerdown: pointerdownThumbYEvent,
|
|
2335
|
+
onPointermove: pointermoveThumbYEvent,
|
|
2336
|
+
onPointerup: cleatPointerThumbEvent,
|
|
2337
|
+
onPointercancel: cleatPointerThumbEvent,
|
|
2338
|
+
onLostpointercapture: cleatPointerThumbEvent
|
|
2339
|
+
})
|
|
2340
|
+
]
|
|
2341
|
+
)
|
|
2342
|
+
]
|
|
2343
|
+
)
|
|
2344
|
+
]
|
|
2345
|
+
);
|
|
2317
2346
|
};
|
|
2318
2347
|
const renderVN = () => {
|
|
2319
2348
|
const { overflowX, overflowY, scrollXLoad, scrollYLoad } = reactData;
|
|
2320
2349
|
const isVScrollbar = computeGanttIsVScrollbar.value;
|
|
2321
2350
|
const scrollbarXToTop = computeScrollbarXToTop.value;
|
|
2322
|
-
return h(
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
class: "vxe-gantt-view--render-wrapper"
|
|
2335
|
-
},
|
|
2336
|
-
isVScrollbar ? [renderVirtualBody()] : scrollbarXToTop ? [
|
|
2337
|
-
renderScrollX(),
|
|
2338
|
-
renderNativeBody()
|
|
2339
|
-
] : [
|
|
2340
|
-
renderNativeBody(),
|
|
2341
|
-
renderScrollX()
|
|
2351
|
+
return h(
|
|
2352
|
+
"div",
|
|
2353
|
+
{
|
|
2354
|
+
ref: refElem,
|
|
2355
|
+
class: [
|
|
2356
|
+
"vxe-gantt-view",
|
|
2357
|
+
{
|
|
2358
|
+
"is--scroll-y": overflowY,
|
|
2359
|
+
"is--scroll-x": overflowX,
|
|
2360
|
+
"is--virtual-x": scrollXLoad,
|
|
2361
|
+
"is--virtual-y": scrollYLoad
|
|
2362
|
+
}
|
|
2342
2363
|
]
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2364
|
+
},
|
|
2365
|
+
[
|
|
2366
|
+
h(
|
|
2367
|
+
"div",
|
|
2368
|
+
{
|
|
2369
|
+
class: "vxe-gantt-view--render-wrapper"
|
|
2370
|
+
},
|
|
2371
|
+
isVScrollbar ? [renderVirtualBody()] : scrollbarXToTop ? [renderScrollX(), renderNativeBody()] : [renderNativeBody(), renderScrollX()]
|
|
2372
|
+
),
|
|
2373
|
+
h(
|
|
2374
|
+
"div",
|
|
2375
|
+
{
|
|
2376
|
+
class: "vxe-gantt-view--render-vars"
|
|
2377
|
+
},
|
|
2378
|
+
[
|
|
2379
|
+
h("div", {
|
|
2380
|
+
ref: refColInfoElem,
|
|
2381
|
+
class: "vxe-gantt-view--column-info"
|
|
2382
|
+
})
|
|
2383
|
+
]
|
|
2384
|
+
)
|
|
2385
|
+
]
|
|
2386
|
+
);
|
|
2353
2387
|
};
|
|
2354
2388
|
const reScrollFlag = ref(0);
|
|
2355
2389
|
watch(computeGanttIsVScrollbar, () => {
|