refactor: ♻️ 增加语言和布局大小枚举类型

This commit is contained in:
cshaptx4869
2024-03-15 09:09:41 +08:00
parent 274b6a3deb
commit d83f43fb0e
6 changed files with 51 additions and 12 deletions

14
src/enums/LanguageEnum.ts Normal file
View File

@@ -0,0 +1,14 @@
/**
* 语言枚举
*/
export const enum LanguageEnum {
/**
* 中文
*/
ZH_CN = "zh-cn",
/**
* 英文
*/
EN = "en",
}

19
src/enums/SizeEnum.ts Normal file
View File

@@ -0,0 +1,19 @@
/**
* 布局大小枚举
*/
export const enum SizeEnum {
/**
* 默认
*/
DEFAULT = "default",
/**
* 大型
*/
LARGE = "large",
/**
* 小型
*/
SMALL = "small",
}