vxe-table 3.19.36 → 3.19.37

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.
@@ -1175,7 +1175,7 @@ export const Cell = {
1175
1175
  renderDeepCellEdit(h, params) {
1176
1176
  return Cell.renderDeepNodeBtn(h, params, Cell.renderCellEdit(h, params));
1177
1177
  },
1178
- runRenderer(h, params, _vm, isEdit) {
1178
+ runRenderer(h, params, isEdit) {
1179
1179
  const { $table, row, column } = params;
1180
1180
  const tableProps = $table;
1181
1181
  const tableReactData = $table;
@@ -1222,7 +1222,7 @@ export const Cell = {
1222
1222
  }, [getDefaultCellLabel(cellParams)])
1223
1223
  ]);
1224
1224
  }
1225
- return Cell.renderDefaultCell.call(_vm, h, cellParams);
1225
+ return Cell.renderDefaultCell.call($table, h, cellParams);
1226
1226
  }
1227
1227
  };
1228
1228
  export default Cell;
@@ -11790,6 +11790,24 @@ const tableMethods = {
11790
11790
  }
11791
11791
  });
11792
11792
  },
11793
+ /**
11794
+ * 如果有滚动条,则滚动到第一行
11795
+ */
11796
+ scrollToStartRow(fieldOrColumn) {
11797
+ const $xeTable = this;
11798
+ const internalData = $xeTable;
11799
+ const { afterFullData } = internalData;
11800
+ return $xeTable.scrollToRow(afterFullData[0], fieldOrColumn);
11801
+ },
11802
+ /**
11803
+ * 如果有滚动条,则滚动到最后一行
11804
+ */
11805
+ scrollToEndRow(fieldOrColumn) {
11806
+ const $xeTable = this;
11807
+ const internalData = $xeTable;
11808
+ const { afterFullData } = internalData;
11809
+ return $xeTable.scrollToRow(afterFullData[afterFullData.length - 1], fieldOrColumn);
11810
+ },
11793
11811
  /**
11794
11812
  * 如果有滚动条,则滚动到对应的列
11795
11813
  * @param {ColumnInfo} column 列配置
@@ -11798,6 +11816,24 @@ const tableMethods = {
11798
11816
  const $xeTable = this;
11799
11817
  return handleScrollToRowColumn($xeTable, fieldOrColumn);
11800
11818
  },
11819
+ /**
11820
+ * 如果有滚动条,则滚动到第一列
11821
+ */
11822
+ scrollToStartColumn() {
11823
+ const $xeTable = this;
11824
+ const internalData = $xeTable;
11825
+ const { visibleColumn } = internalData;
11826
+ return $xeTable.scrollToColumn(visibleColumn[0]);
11827
+ },
11828
+ /**
11829
+ * 如果有滚动条,则滚动到最后一列
11830
+ */
11831
+ scrollToEndColumn() {
11832
+ const $xeTable = this;
11833
+ const internalData = $xeTable;
11834
+ const { visibleColumn } = internalData;
11835
+ return $xeTable.scrollToColumn(visibleColumn[visibleColumn.length - 1]);
11836
+ },
11801
11837
  /**
11802
11838
  * 对于树形结构中,可以直接滚动到指定深层节点中
11803
11839
  * 对于某些特定的场景可能会用到,比如定位到某一节点
package/es/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  import { getFuncText } from './src/utils';
3
- export const version = "3.19.36";
3
+ export const version = "3.19.37";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
package/es/ui/src/log.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  const { log } = VxeUI;
3
- const version = `table v${"3.19.36"}`;
3
+ const version = `table v${"3.19.37"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
package/lib/index.umd.js CHANGED
@@ -2005,7 +2005,7 @@ function getClass(property, params) {
2005
2005
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
2006
2006
 
2007
2007
 
2008
- const version = "3.19.36";
2008
+ const version = "3.19.37";
2009
2009
  core_.VxeUI.version = version;
2010
2010
  core_.VxeUI.tableVersion = version;
2011
2011
  core_.VxeUI.setConfig({
@@ -2718,7 +2718,7 @@ function isNodeElement(elem) {
2718
2718
  const {
2719
2719
  log: log_log
2720
2720
  } = core_.VxeUI;
2721
- const log_version = `table v${"3.19.36"}`;
2721
+ const log_version = `table v${"3.19.37"}`;
2722
2722
  const warnLog = log_log.create('warn', log_version);
2723
2723
  const errLog = log_log.create('error', log_version);
2724
2724
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -5216,7 +5216,7 @@ const Cell = {
5216
5216
  renderDeepCellEdit(h, params) {
5217
5217
  return Cell.renderDeepNodeBtn(h, params, Cell.renderCellEdit(h, params));
5218
5218
  },
5219
- runRenderer(h, params, _vm, isEdit) {
5219
+ runRenderer(h, params, isEdit) {
5220
5220
  const {
5221
5221
  $table,
5222
5222
  row,
@@ -5283,7 +5283,7 @@ const Cell = {
5283
5283
  class: 'vxe-cell--label'
5284
5284
  }, [getDefaultCellLabel(cellParams)])]);
5285
5285
  }
5286
- return Cell.renderDefaultCell.call(_vm, h, cellParams);
5286
+ return Cell.renderDefaultCell.call($table, h, cellParams);
5287
5287
  }
5288
5288
  };
5289
5289
  /* harmony default export */ var cell = (Cell);
@@ -6730,9 +6730,17 @@ if(bodyScrollElem&&bodyTableElem&&bodyScrollElem.scrollTop+clientHeight>=maxYHei
6730
6730
  * @param {Row} row 行对象
6731
6731
  * @param {ColumnInfo} column 列配置
6732
6732
  */scrollToRow(row,fieldOrColumn){const $xeTable=this;const props=$xeTable;const reactData=$xeTable;const{isAllOverflow,scrollYLoad,scrollXLoad}=reactData;const rest=[];if(row){if(props.treeConfig){rest.push($xeTable.scrollToTreeRow(row));}else{rest.push(rowToVisible($xeTable,row));}}if(fieldOrColumn){rest.push(handleScrollToRowColumn($xeTable,fieldOrColumn,row));}return Promise.all(rest).then(()=>{if(row){if(!isAllOverflow&&(scrollYLoad||scrollXLoad)){calcCellHeight($xeTable);calcCellWidth($xeTable);}return $xeTable.$nextTick();}});},/**
6733
+ * 如果有滚动条,则滚动到第一行
6734
+ */scrollToStartRow(fieldOrColumn){const $xeTable=this;const internalData=$xeTable;const{afterFullData}=internalData;return $xeTable.scrollToRow(afterFullData[0],fieldOrColumn);},/**
6735
+ * 如果有滚动条,则滚动到最后一行
6736
+ */scrollToEndRow(fieldOrColumn){const $xeTable=this;const internalData=$xeTable;const{afterFullData}=internalData;return $xeTable.scrollToRow(afterFullData[afterFullData.length-1],fieldOrColumn);},/**
6733
6737
  * 如果有滚动条,则滚动到对应的列
6734
6738
  * @param {ColumnInfo} column 列配置
6735
6739
  */scrollToColumn(fieldOrColumn){const $xeTable=this;return handleScrollToRowColumn($xeTable,fieldOrColumn);},/**
6740
+ * 如果有滚动条,则滚动到第一列
6741
+ */scrollToStartColumn(){const $xeTable=this;const internalData=$xeTable;const{visibleColumn}=internalData;return $xeTable.scrollToColumn(visibleColumn[0]);},/**
6742
+ * 如果有滚动条,则滚动到最后一列
6743
+ */scrollToEndColumn(){const $xeTable=this;const internalData=$xeTable;const{visibleColumn}=internalData;return $xeTable.scrollToColumn(visibleColumn[visibleColumn.length-1]);},/**
6736
6744
  * 对于树形结构中,可以直接滚动到指定深层节点中
6737
6745
  * 对于某些特定的场景可能会用到,比如定位到某一节点
6738
6746
  * @param {Row} row 行对象