feat: add page footer

This commit is contained in:
Hufe921
2023-03-25 19:41:16 +08:00
committed by Hufe
parent 36f3bb42ce
commit 21626cc41b
18 changed files with 331 additions and 106 deletions
+9 -1
View File
@@ -1,4 +1,12 @@
import { MaxHeightRatio } from '../enum/Common'
export const ZERO = '\u200B'
export const WRAP = '\n'
export const HORIZON_TAB = '\t'
export const NBSP = '\u0020'
export const NBSP = '\u0020'
export const maxHeightRadioMapping: Record<MaxHeightRatio, number> = {
[MaxHeightRatio.HALF]: 1 / 2,
[MaxHeightRatio.ONE_THIRD]: 1 / 3,
[MaxHeightRatio.QUARTER]: 1 / 4
}
+7
View File
@@ -0,0 +1,7 @@
import { IFooter } from '../../interface/Footer'
import { MaxHeightRatio } from '../enum/Common'
export const defaultFooterOption: Readonly<Required<IFooter>> = {
bottom: 30,
maxHeightRadio: MaxHeightRatio.HALF
}
+2 -8
View File
@@ -1,13 +1,7 @@
import { IHeader } from '../../interface/Header'
import { HeaderMaxHeightRatio } from '../enum/Header'
import { MaxHeightRatio } from '../enum/Common'
export const defaultHeaderOption: Readonly<Required<IHeader>> = {
top: 30,
maxHeightRadio: HeaderMaxHeightRatio.HALF
}
export const maxHeightRadioMapping: Record<HeaderMaxHeightRatio, number> = {
[HeaderMaxHeightRatio.HALF]: 1 / 2,
[HeaderMaxHeightRatio.ONE_THIRD]: 1 / 3,
[HeaderMaxHeightRatio.QUARTER]: 1 / 4
maxHeightRadio: MaxHeightRatio.HALF
}
@@ -1,4 +1,4 @@
export enum HeaderMaxHeightRatio {
export enum MaxHeightRatio {
HALF = 'half',
ONE_THIRD = 'one-third',
QUARTER = 'quarter'