feat: add background image option

This commit is contained in:
Hufe921
2024-01-10 21:25:27 +08:00
parent 3253f3708e
commit eadf7f6e49
8 changed files with 138 additions and 11 deletions
@@ -0,0 +1,9 @@
import { IBackgroundOption } from '../../interface/Background'
import { BackgroundRepeat, BackgroundSize } from '../enum/Background'
export const defaultBackground: Readonly<Required<IBackgroundOption>> = {
color: '#FFFFFF',
image: '',
size: BackgroundSize.COVER,
repeat: BackgroundRepeat.NO_REPEAT
}
+11
View File
@@ -0,0 +1,11 @@
export enum BackgroundSize {
CONTAIN = 'contain',
COVER = 'cover'
}
export enum BackgroundRepeat {
REPEAT = 'repeat',
NO_REPEAT = 'no-repeat',
REPEAT_X = 'repeat-x',
REPEAT_Y = 'repeat-y'
}