fix:[FL-188][菜单管理页面关键字过滤后查不到数据时分页组件不要隐藏]

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
chengkai3
2026-06-18 10:04:18 +08:00
parent af14490042
commit 5796797120
+21 -8
View File
@@ -543,14 +543,27 @@ export default function AdminMenusPage() {
columns={columns}
loading={loading}
scroll={{ x: 1200, y: tableScrollY }}
pagination={{
pageSize: 20,
showSizeChanger: true,
pageSizeOptions: [10, 20, 50, 100],
showTotal: (total) => `${total}`,
hideOnSinglePage: false,
style: { marginBottom: 0 },
}}
pagination={
filteredMenus.length === 0
? {
pageSize: 20,
showSizeChanger: true,
pageSizeOptions: [10, 20, 50, 100],
showTotal: (total) => `${total}`,
hideOnSinglePage: false,
style: { marginBottom: 0 },
total: 0,
current: 1,
}
: {
pageSize: 20,
showSizeChanger: true,
pageSizeOptions: [10, 20, 50, 100],
showTotal: (total) => `${total}`,
hideOnSinglePage: false,
style: { marginBottom: 0 },
}
}
locale={{
emptyText: <Empty description="未找到符合筛选条件的菜单项。" image={Empty.PRESENTED_IMAGE_SIMPLE} />,
}}