Skip to content

Commit

Permalink
perf: ⚡️ 优化页码隐藏逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
charlzyx committed Feb 20, 2024
1 parent 0bd30bf commit a83a636
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
},
"style": {
"useSelfClosingElements": "off",
"noUnusedTemplateLiteral": "off",
"noNonNullAssertion": "off",
"noUselessElse": "off"
}
Expand Down
1 change: 0 additions & 1 deletion docs/components/demos/ProArrayTableWithShadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import "moment/locale/zh-cn";
moment.locale("zh-cn");

import { ProArrayTable, ShadowForm } from "@pro.formily/antd";
console.log("🚀 ~ ProArrayTable:", ProArrayTable);

const form = createForm({
initialValues: {
Expand Down
2 changes: 1 addition & 1 deletion src/pro-array-table/pro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const ArrayTableProInside: ReactFC<ProArrayTableProps> = observer(
} else if (page.hideOnSinglePage) {
showPage = (page.pageSize || 0) < (page?.total || 0);
} else {
showPage = true;
showPage = page?.total === 0 ? false : true;
}

const pagination = showPage ? (
Expand Down

0 comments on commit a83a636

Please sign in to comment.