feat:edit page header

This commit is contained in:
Hufe921
2023-03-18 12:18:28 +08:00
parent da2dfd3a16
commit 6082ab26d1
19 changed files with 313 additions and 109 deletions
+7 -1
View File
@@ -2,6 +2,12 @@ import { IHeader } from '../../interface/Header'
import { HeaderMaxHeightRatio } from '../enum/Header'
export const defaultHeaderOption: Readonly<Required<IHeader>> = {
top: -50,
top: 30,
maxHeightRadio: HeaderMaxHeightRatio.HALF
}
export const maxHeightRadioMapping: Record<HeaderMaxHeightRatio, number> = {
[HeaderMaxHeightRatio.HALF]: 1 / 2,
[HeaderMaxHeightRatio.ONE_THIRD]: 1 / 3,
[HeaderMaxHeightRatio.QUARTER]: 1 / 4
}