This commit is contained in:
Putoo
2026-05-25 18:41:27 +08:00
parent 590f7c5290
commit 0afbf6e39a
32 changed files with 2137 additions and 101 deletions

View File

@@ -9,6 +9,10 @@ export class PageExtend {
return value ? String(value) : ''
}
public static GetPageIndex(page: number, limit: number, index: number) {
return (page - 1) * limit + index;
}
// 回到顶部函数 默认平滑滚动到顶部
public static ScrollToTop(behavior: ScrollBehavior = 'smooth') {
if (typeof window !== 'undefined') {