Browse Source

fix: ProTableCard组件 修复卡片模式 自动跳转第一页后页码可点击问题

jackhoo_98 3 years ago
parent
commit
30b5c682d7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/ProTableCard/index.tsx

+ 1 - 1
src/components/ProTableCard/index.tsx

@@ -329,7 +329,7 @@ const ProTableCard = <
                     ? num / pageSize - 1
                     : parseInt(num / pageSize);
                 const min = minSize > num ? pageIndexInt * pageSize + 1 : minSize;
-
+                if (min === 1) pageChange(min, pageSize);
                 return `第 ${min} - ${max} 条/总共 ${num} 条`;
               }}
             />