1111
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user