通用中后台框架第一版

This commit is contained in:
BBIT-Kai
2026-04-28 16:27:16 +08:00
commit b8d25869c6
115 changed files with 15223 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
type PagePrefixInfo = {
page: number
pageCount: number
itemCount?: number
}
export function renderPagePrefix(info: PagePrefixInfo) {
const pageCount = Math.max(info.pageCount, 1)
const itemCount = info.itemCount ?? 0
return `${info.page} / ${pageCount} 页,共 ${itemCount}`
}