@yoooloo42/joker 1.0.217 → 1.0.219

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
@@ -22851,9 +22849,8 @@ const init = async _ref6 => {
22851
22849
  let {
22852
22850
  scopeThis
22853
22851
  } = _ref6;
22854
- console.log('测试 444 初始化');
22855
- scopeThis.tableProps.table.hdlPageSizeChanged = pageSizeChange;
22856
- scopeThis.tableProps.table.hdlCurrentPageChanged = currentPageChange;
22852
+ scopeThis.tableProps.table.hdlPageSizeChange = pageSizeChange;
22853
+ scopeThis.tableProps.table.hdlCurrentPageChange = currentPageChange;
22857
22854
  if (scopeThis.pgData) {
22858
22855
  await getPgData({
22859
22856
  scopeThis
@@ -42002,6 +41999,21 @@ const scopeThis_box = props.scopeThis;
42002
41999
  tableProps_box.table.pickCol.colsInit = unclassified.deepClone.deepClone(tableProps_box.table.cols);
42003
42000
 
42004
42001
  const hdl = {
42002
+ async pageSizeChange(pageSize) {
42003
+ // 页记录数改变
42004
+ tableData_box.pageSize = pageSize;
42005
+ tableData_box.currentPage = 1;
42006
+ if(tableProps_box.table.hdlPageSizeChange){
42007
+ await tableProps_box.table.hdlPageSizeChange({pageSize, scopeThis: scopeThis_box});
42008
+ }
42009
+ },
42010
+ async currentPageChange(currentPage) {
42011
+ // 当前页码改变
42012
+ tableData_box.currentPage = currentPage;
42013
+ if(tableProps_box.table.hdlCurrentPageChange){
42014
+ await tableProps_box.table.hdlCurrentPageChange({currentPage, scopeThis: scopeThis_box});
42015
+ }
42016
+ },
42005
42017
  cellMouseEnter(row, column, cell, event) {
42006
42018
  // 当单元格hover进入时会触发该事件
42007
42019
  if (tableProps_box.table.hdlCellMouseEnter) {
@@ -42076,33 +42088,6 @@ const hdl = {
42076
42088
  fileName: src ? fileName : tableProps_box.table.colShow.download.fileName
42077
42089
  }
42078
42090
  },
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
42091
  };
42107
42092
 
42108
42093
  const style = {