提交 | 用户 | 时间 | ||
314507 | 1 | export const setIndex = (reserveIndex: boolean, index: number, size: number, current: number) => { |
H | 2 | const newIndex = index + 1 |
3 | if (reserveIndex) { | |
4 | return size * (current - 1) + newIndex | |
5 | } else { | |
6 | return newIndex | |
7 | } | |
8 | } |