@yoooloo42/joker 1.0.218 → 1.0.220

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/index.esm.js CHANGED
@@ -22802,7 +22802,6 @@ const pageSizeChange = async _ref3 => {
22802
22802
  pageSize,
22803
22803
  scopeThis
22804
22804
  } = _ref3;
22805
- console.log('测试 555 页记录数改变');
22806
22805
  scopeThis.query.pageSize = pageSize;
22807
22806
  scopeThis.query.currentPage = 1;
22808
22807
  await reload({
@@ -22816,7 +22815,6 @@ const currentPageChange = async _ref4 => {
22816
22815
  currentPage,
22817
22816
  scopeThis
22818
22817
  } = _ref4;
22819
- console.log('测试 666 当前页码改变');
22820
22818
  scopeThis.query.currentPage = currentPage;
22821
22819
  await reload({
22822
22820
  scopeThis
@@ -22833,9 +22831,10 @@ const getPgData = async _ref5 => {
22833
22831
  data: scopeThis.pgData && scopeThis.pgData.query ? scopeThis.pgData.query : null
22834
22832
  });
22835
22833
  if (result.code === 0) {
22836
- scopeThis.pgData = unclassified.deepClone.deepMerge(scopeThis.pgData, {
22834
+ unclassified.deepClone.deepMerge(scopeThis.pgData, {
22837
22835
  data: result.data
22838
22836
  });
22837
+ console.log('测试 000', result.data);
22839
22838
  ElMessage('已获取页面数据');
22840
22839
  return;
22841
22840
  }
@@ -22847,7 +22846,6 @@ const init = async _ref6 => {
22847
22846
  let {
22848
22847
  scopeThis
22849
22848
  } = _ref6;
22850
- console.log('测试 444 初始化');
22851
22849
  scopeThis.tableProps.table.hdlPageSizeChange = pageSizeChange;
22852
22850
  scopeThis.tableProps.table.hdlCurrentPageChange = currentPageChange;
22853
22851
  if (scopeThis.pgData) {
@@ -41998,6 +41996,21 @@ const scopeThis_box = props.scopeThis;
41998
41996
  tableProps_box.table.pickCol.colsInit = unclassified.deepClone.deepClone(tableProps_box.table.cols);
41999
41997
 
42000
41998
  const hdl = {
41999
+ async pageSizeChange(pageSize) {
42000
+ // 页记录数改变
42001
+ tableData_box.pageSize = pageSize;
42002
+ tableData_box.currentPage = 1;
42003
+ if(tableProps_box.table.hdlPageSizeChange){
42004
+ await tableProps_box.table.hdlPageSizeChange({pageSize, scopeThis: scopeThis_box});
42005
+ }
42006
+ },
42007
+ async currentPageChange(currentPage) {
42008
+ // 当前页码改变
42009
+ tableData_box.currentPage = currentPage;
42010
+ if(tableProps_box.table.hdlCurrentPageChange){
42011
+ await tableProps_box.table.hdlCurrentPageChange({currentPage, scopeThis: scopeThis_box});
42012
+ }
42013
+ },
42001
42014
  cellMouseEnter(row, column, cell, event) {
42002
42015
  // 当单元格hover进入时会触发该事件
42003
42016
  if (tableProps_box.table.hdlCellMouseEnter) {
@@ -42072,33 +42085,6 @@ const hdl = {
42072
42085
  fileName: src ? fileName : tableProps_box.table.colShow.download.fileName
42073
42086
  }
42074
42087
  },
42075
- async pageSizeChange(pageSize) {
42076
-
42077
- console.log('测试 000 页记录数改变');
42078
-
42079
- // 页记录数改变
42080
- tableData_box.pageSize = pageSize;
42081
- tableData_box.currentPage = 1;
42082
- if(tableProps_box.table.hdlPageSizeChange){
42083
-
42084
- console.log('测试 111');
42085
-
42086
- await tableProps_box.table.hdlPageSizeChange({pageSize, scopeThis: scopeThis_box});
42087
- }
42088
- },
42089
- async currentPageChange(currentPage) {
42090
-
42091
- console.log('测试 222 当前页码改变');
42092
-
42093
- // 当前页码改变
42094
- tableData_box.currentPage = currentPage;
42095
- if(tableProps_box.table.hdlCurrentPageChange){
42096
-
42097
- console.log('测试 333');
42098
-
42099
- await tableProps_box.table.hdlCurrentPageChange({currentPage, scopeThis: scopeThis_box});
42100
- }
42101
- }
42102
42088
  };
42103
42089
 
42104
42090
  const style = {