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/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.19"}`;
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);
@@ -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.19",warnLog=exports.warnLog=log.create("warn",version),errLog=exports.errLog=log.create("error",version);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxe-gantt",
3
- "version": "4.3.19",
3
+ "version": "4.3.21",
4
4
  "description": "A vue based gantt component",
5
5
  "scripts": {
6
6
  "update": "npm install --legacy-peer-deps",
@@ -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, tableColumn } = reactData
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 < tableColumn.length; i++) {
223
- const column = tableColumn[i]
222
+ for (let i = 0; i < visibleColumn.length; i++) {
223
+ const column = visibleColumn[i]
224
224
  if (column.field === todayValue) {
225
- currCol = tableColumn[i]
225
+ currCol = column
226
226
  nlLeft = i * viewCellWidth
227
- nextCol = tableColumn[i + 1]
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
  }