@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.cjs.js CHANGED
@@ -22806,7 +22806,6 @@ const pageSizeChange = async _ref3 => {
22806
22806
  pageSize,
22807
22807
  scopeThis
22808
22808
  } = _ref3;
22809
- console.log('测试 555 页记录数改变');
22810
22809
  scopeThis.query.pageSize = pageSize;
22811
22810
  scopeThis.query.currentPage = 1;
22812
22811
  await reload({
@@ -22820,7 +22819,6 @@ const currentPageChange = async _ref4 => {
22820
22819
  currentPage,
22821
22820
  scopeThis
22822
22821
  } = _ref4;
22823
- console.log('测试 666 当前页码改变');
22824
22822
  scopeThis.query.currentPage = currentPage;
22825
22823
  await reload({
22826
22824
  scopeThis
@@ -22837,9 +22835,10 @@ const getPgData = async _ref5 => {
22837
22835
  data: scopeThis.pgData && scopeThis.pgData.query ? scopeThis.pgData.query : null
22838
22836
  });
22839
22837
  if (result.code === 0) {
22840
- scopeThis.pgData = unclassified.deepClone.deepMerge(scopeThis.pgData, {
22838
+ unclassified.deepClone.deepMerge(scopeThis.pgData, {
22841
22839
  data: result.data
22842
22840
  });
22841
+ console.log('测试 000', result.data);
22843
22842
  elementPlus.ElMessage('已获取页面数据');
22844
22843
  return;
22845
22844
  }
@@ -22851,7 +22850,6 @@ const init = async _ref6 => {
22851
22850
  let {
22852
22851
  scopeThis
22853
22852
  } = _ref6;
22854
- console.log('测试 444 初始化');
22855
22853
  scopeThis.tableProps.table.hdlPageSizeChange = pageSizeChange;
22856
22854
  scopeThis.tableProps.table.hdlCurrentPageChange = currentPageChange;
22857
22855
  if (scopeThis.pgData) {
@@ -42002,6 +42000,21 @@ const scopeThis_box = props.scopeThis;
42002
42000
  tableProps_box.table.pickCol.colsInit = unclassified.deepClone.deepClone(tableProps_box.table.cols);
42003
42001
 
42004
42002
  const hdl = {
42003
+ async pageSizeChange(pageSize) {
42004
+ // 页记录数改变
42005
+ tableData_box.pageSize = pageSize;
42006
+ tableData_box.currentPage = 1;
42007
+ if(tableProps_box.table.hdlPageSizeChange){
42008
+ await tableProps_box.table.hdlPageSizeChange({pageSize, scopeThis: scopeThis_box});
42009
+ }
42010
+ },
42011
+ async currentPageChange(currentPage) {
42012
+ // 当前页码改变
42013
+ tableData_box.currentPage = currentPage;
42014
+ if(tableProps_box.table.hdlCurrentPageChange){
42015
+ await tableProps_box.table.hdlCurrentPageChange({currentPage, scopeThis: scopeThis_box});
42016
+ }
42017
+ },
42005
42018
  cellMouseEnter(row, column, cell, event) {
42006
42019
  // 当单元格hover进入时会触发该事件
42007
42020
  if (tableProps_box.table.hdlCellMouseEnter) {
@@ -42076,33 +42089,6 @@ const hdl = {
42076
42089
  fileName: src ? fileName : tableProps_box.table.colShow.download.fileName
42077
42090
  }
42078
42091
  },
42079
- async pageSizeChange(pageSize) {
42080
-
42081
- console.log('测试 000 页记录数改变');
42082
-
42083
- // 页记录数改变
42084
- tableData_box.pageSize = pageSize;
42085
- tableData_box.currentPage = 1;
42086
- if(tableProps_box.table.hdlPageSizeChange){
42087
-
42088
- console.log('测试 111');
42089
-
42090
- await tableProps_box.table.hdlPageSizeChange({pageSize, scopeThis: scopeThis_box});
42091
- }
42092
- },
42093
- async currentPageChange(currentPage) {
42094
-
42095
- console.log('测试 222 当前页码改变');
42096
-
42097
- // 当前页码改变
42098
- tableData_box.currentPage = currentPage;
42099
- if(tableProps_box.table.hdlCurrentPageChange){
42100
-
42101
- console.log('测试 333');
42102
-
42103
- await tableProps_box.table.hdlCurrentPageChange({currentPage, scopeThis: scopeThis_box});
42104
- }
42105
- }
42106
42092
  };
42107
42093
 
42108
42094
  const style = {