vxe-table 4.19.6 → 4.19.7

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 CHANGED
@@ -44,7 +44,7 @@ function eqEmptyValue(cellValue) {
44
44
  return cellValue === '' || XEUtils.eqNull(cellValue);
45
45
  }
46
46
 
47
- const version$1 = "4.19.6";
47
+ const version$1 = "4.19.7";
48
48
  VxeUI.version = version$1;
49
49
  VxeUI.tableVersion = version$1;
50
50
  VxeUI.setConfig({
@@ -556,7 +556,7 @@ const modal = {
556
556
  const defineVxeComponent = defineComponent;
557
557
 
558
558
  const { log } = VxeUI;
559
- const version = `table v${"4.19.6"}`;
559
+ const version = `table v${"4.19.7"}`;
560
560
  const warnLog = log.create('warn', version);
561
561
  const errLog = log.create('error', version);
562
562
 
@@ -3400,6 +3400,9 @@ var VxeColgroupComponent = defineVxeComponent({
3400
3400
  if (slots.header) {
3401
3401
  columnSlots.header = slots.header;
3402
3402
  }
3403
+ if (slots.title) {
3404
+ columnSlots.title = slots.title;
3405
+ }
3403
3406
  columnConfig.slots = columnSlots;
3404
3407
  columnConfig.children = [];
3405
3408
  watchColumn($xeTable, props, columnConfig);
@@ -4286,21 +4289,11 @@ var TableBodyComponent = defineVxeComponent({
4286
4289
  class: 'vxe-cell--wrapper vxe-body-cell--wrapper'
4287
4290
  }, column.renderCell(cellParams)));
4288
4291
  }
4289
- tdVNs.push(h('div', {
4290
- key: 'tc',
4291
- class: ['vxe-cell', {
4292
- 'c--title': showTitle,
4293
- 'c--tooltip': showTooltip,
4294
- 'c--ellipsis': showEllipsis
4295
- }],
4296
- style: tcStyle,
4297
- title: showTitle ? $xeTable.getCellLabel(row, column) : null
4298
- }, clVNs));
4299
4292
  if (showValidTip && errorValidItem) {
4300
4293
  const errRule = errorValidItem.rule;
4301
4294
  const validSlot = slots ? slots.valid : null;
4302
4295
  const validParams = Object.assign(Object.assign(Object.assign({}, cellParams), errorValidItem), { rule: errorValidItem });
4303
- tdVNs.push(h('div', {
4296
+ clVNs.push(h('div', {
4304
4297
  key: 'tcv',
4305
4298
  class: ['vxe-cell--valid-error-tip', getPropClass(validOpts.className, validParams)],
4306
4299
  style: errRule && errRule.maxWidth
@@ -4322,6 +4315,16 @@ var TableBodyComponent = defineVxeComponent({
4322
4315
  ])
4323
4316
  ]));
4324
4317
  }
4318
+ tdVNs.push(h('div', {
4319
+ key: 'tc',
4320
+ class: ['vxe-cell', {
4321
+ 'c--title': showTitle,
4322
+ 'c--tooltip': showTooltip,
4323
+ 'c--ellipsis': showEllipsis
4324
+ }],
4325
+ style: tcStyle,
4326
+ title: showTitle ? $xeTable.getCellLabel(row, column) : null
4327
+ }, clVNs));
4325
4328
  }
4326
4329
  let showAreaRowStatus = false;
4327
4330
  if (mouseConfig && mouseOpts.area && !_columnIndex && selectCellToRow) {
@@ -17096,7 +17099,7 @@ var VxeTableComponent = defineVxeComponent({
17096
17099
  xScrollbarVisible = 'hidden';
17097
17100
  }
17098
17101
  let yScrollbarVisible = overflowY ? 'visible' : 'hidden';
17099
- if ((scrollbarYConf.visible === 'hidden' || scrollbarYConf.visible === false) || ($xeGanttView && !scrollbarYToLeft)) {
17102
+ if ((scrollbarYConf.visible === 'hidden' || scrollbarYConf.visible === false) || (($xeGantt && $xeGanttView && $xeGantt.reactData.showRightView) && !scrollbarYToLeft)) {
17100
17103
  osbWidth = 0;
17101
17104
  yScrollbarVisible = 'hidden';
17102
17105
  }
@@ -18403,6 +18406,7 @@ var VxeTableComponent = defineVxeComponent({
18403
18406
  updateStyle();
18404
18407
  }).then(() => {
18405
18408
  computeScrollLoad();
18409
+ syncGanttScrollYStatus();
18406
18410
  }).then(() => {
18407
18411
  const virtualYOpts = computeVirtualYOpts.value;
18408
18412
  // 是否启用了虚拟滚动
@@ -18462,6 +18466,7 @@ var VxeTableComponent = defineVxeComponent({
18462
18466
  reactData.isRowLoading = false;
18463
18467
  handleRecalculateStyle(false, false, false);
18464
18468
  updateTreeLineStyle();
18469
+ syncGanttScrollYStatus();
18465
18470
  // 如果是自动行高,特殊情况需调用 recalculate 手动刷新
18466
18471
  if (!props.showOverflow) {
18467
18472
  setTimeout(() => {
@@ -18781,9 +18786,14 @@ var VxeTableComponent = defineVxeComponent({
18781
18786
  reactData.scrollXLoad = scrollXLoad;
18782
18787
  return scrollXLoad;
18783
18788
  };
18789
+ const syncGanttScrollYStatus = () => {
18790
+ const $xeGanttView = internalData.xeGanttView;
18791
+ if ($xeGanttView && $xeGanttView.handleUpdateSYStatus) {
18792
+ $xeGanttView.handleUpdateSYStatus(reactData.scrollYLoad);
18793
+ }
18794
+ };
18784
18795
  const updateScrollYStatus = (fullData) => {
18785
18796
  const { treeConfig } = props;
18786
- const $xeGanttView = internalData.xeGanttView;
18787
18797
  const virtualYOpts = computeVirtualYOpts.value;
18788
18798
  const treeOpts = computeTreeOpts.value;
18789
18799
  const { transform } = treeOpts;
@@ -18791,9 +18801,7 @@ var VxeTableComponent = defineVxeComponent({
18791
18801
  // 如果gt为0,则总是启用
18792
18802
  const scrollYLoad = (transform || !treeConfig) && !!virtualYOpts.enabled && virtualYOpts.gt > -1 && (virtualYOpts.gt === 0 || virtualYOpts.gt < allList.length);
18793
18803
  reactData.scrollYLoad = scrollYLoad;
18794
- if ($xeGanttView && $xeGanttView.handleUpdateSYStatus) {
18795
- $xeGanttView.handleUpdateSYStatus(scrollYLoad);
18796
- }
18804
+ syncGanttScrollYStatus();
18797
18805
  return scrollYLoad;
18798
18806
  };
18799
18807
  /**