vxe-gantt 4.3.19 → 4.3.21
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 +6 -6
- package/es/gantt/src/gantt.js +4 -0
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/gantt/src/gantt-view.js +6 -6
- package/lib/gantt/src/gantt-view.min.js +1 -1
- package/lib/gantt/src/gantt.js +4 -0
- package/lib/gantt/src/gantt.min.js +1 -1
- package/lib/index.umd.js +12 -8
- 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 +1 -1
- package/packages/gantt/src/gantt-view.ts +6 -6
- package/packages/gantt/src/gantt.ts +4 -0
package/lib/ui/src/log.js
CHANGED
|
@@ -8,6 +8,6 @@ var _core = require("@vxe-ui/core");
|
|
|
8
8
|
const {
|
|
9
9
|
log
|
|
10
10
|
} = _core.VxeUI;
|
|
11
|
-
const version = `gantt v${"4.3.
|
|
11
|
+
const version = `gantt v${"4.3.21"}`;
|
|
12
12
|
const warnLog = exports.warnLog = log.create('warn', version);
|
|
13
13
|
const 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");let log=_core.VxeUI.log,version="gantt v4.3.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");let log=_core.VxeUI.log,version="gantt v4.3.21",warnLog=exports.warnLog=log.create("warn",version),errLog=exports.errLog=log.create("error",version);
|
package/package.json
CHANGED
|
@@ -204,8 +204,8 @@ export default defineVxeComponent({
|
|
|
204
204
|
|
|
205
205
|
const computeNowLineLeft = computed(() => {
|
|
206
206
|
const ganttReactData = $xeGantt.reactData
|
|
207
|
-
const { minViewDate, maxViewDate, viewCellWidth
|
|
208
|
-
const { todayDateMaps } = internalData
|
|
207
|
+
const { minViewDate, maxViewDate, viewCellWidth } = reactData
|
|
208
|
+
const { visibleColumn, todayDateMaps } = internalData
|
|
209
209
|
const minScale = computeMinScale.value
|
|
210
210
|
const taskViewOpts = computeTaskViewOpts.value
|
|
211
211
|
const taskNowLineOpts = computeTaskNowLineOpts.value
|
|
@@ -219,12 +219,12 @@ export default defineVxeComponent({
|
|
|
219
219
|
const todayValue = todayDateMaps[minScale.type]
|
|
220
220
|
let currCol: VxeGanttDefines.ViewColumn | null = null
|
|
221
221
|
let nextCol: VxeGanttDefines.ViewColumn | null = null
|
|
222
|
-
for (let i = 0; i <
|
|
223
|
-
const column =
|
|
222
|
+
for (let i = 0; i < visibleColumn.length; i++) {
|
|
223
|
+
const column = visibleColumn[i]
|
|
224
224
|
if (column.field === todayValue) {
|
|
225
|
-
currCol =
|
|
225
|
+
currCol = column
|
|
226
226
|
nlLeft = i * viewCellWidth
|
|
227
|
-
nextCol =
|
|
227
|
+
nextCol = visibleColumn[i + 1]
|
|
228
228
|
break
|
|
229
229
|
}
|
|
230
230
|
}
|
|
@@ -1936,6 +1936,7 @@ export default defineVxeComponent({
|
|
|
1936
1936
|
if (isEnableConf(menuConfig)) {
|
|
1937
1937
|
evnt.stopPropagation()
|
|
1938
1938
|
$xeTable.handleOpenMenuEvent(evnt, 'header', params)
|
|
1939
|
+
$xeTable.dispatchEvent('header-cell-menu', params, evnt)
|
|
1939
1940
|
}
|
|
1940
1941
|
}
|
|
1941
1942
|
},
|
|
@@ -1947,6 +1948,7 @@ export default defineVxeComponent({
|
|
|
1947
1948
|
if (isEnableConf(menuConfig)) {
|
|
1948
1949
|
evnt.stopPropagation()
|
|
1949
1950
|
$xeTable.handleOpenMenuEvent(evnt, 'body', params)
|
|
1951
|
+
$xeTable.dispatchEvent('cell-menu', params, evnt)
|
|
1950
1952
|
}
|
|
1951
1953
|
}
|
|
1952
1954
|
},
|
|
@@ -1958,6 +1960,7 @@ export default defineVxeComponent({
|
|
|
1958
1960
|
if (isEnableConf(menuConfig)) {
|
|
1959
1961
|
evnt.stopPropagation()
|
|
1960
1962
|
$xeTable.handleOpenMenuEvent(evnt, 'footer', params)
|
|
1963
|
+
$xeTable.dispatchEvent('footer-cell-menu', params, evnt)
|
|
1961
1964
|
}
|
|
1962
1965
|
}
|
|
1963
1966
|
},
|
|
@@ -1969,6 +1972,7 @@ export default defineVxeComponent({
|
|
|
1969
1972
|
if (isEnableConf(menuConfig)) {
|
|
1970
1973
|
evnt.stopPropagation()
|
|
1971
1974
|
$xeTable.handleOpenMenuEvent(evnt, 'body', params)
|
|
1975
|
+
$xeTable.dispatchEvent('cell-menu', params, evnt)
|
|
1972
1976
|
}
|
|
1973
1977
|
}
|
|
1974
1978
|
}
|