diff --git a/biome.json b/biome.json index fd62a2f..e57c465 100644 --- a/biome.json +++ b/biome.json @@ -29,6 +29,7 @@ }, "style": { "useSelfClosingElements": "off", + "noUnusedTemplateLiteral": "off", "noNonNullAssertion": "off", "noUselessElse": "off" } diff --git a/docs/components/demos/ProArrayTableWithShadow.tsx b/docs/components/demos/ProArrayTableWithShadow.tsx index 7e63c34..68e645a 100644 --- a/docs/components/demos/ProArrayTableWithShadow.tsx +++ b/docs/components/demos/ProArrayTableWithShadow.tsx @@ -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: { diff --git a/src/pro-array-table/pro.tsx b/src/pro-array-table/pro.tsx index a0530ba..7b32545 100644 --- a/src/pro-array-table/pro.tsx +++ b/src/pro-array-table/pro.tsx @@ -162,7 +162,7 @@ const ArrayTableProInside: ReactFC = observer( } else if (page.hideOnSinglePage) { showPage = (page.pageSize || 0) < (page?.total || 0); } else { - showPage = true; + showPage = page?.total === 0 ? false : true; } const pagination = showPage ? (