Add desktop layout

This commit is contained in:
2022-04-14 17:54:37 +08:00
parent fca467a427
commit eccd7fdf7c
8 changed files with 240 additions and 68 deletions
+11 -1
View File
@@ -11,6 +11,11 @@ enum Themes {
dark = 2
}
enum Platform {
web = 1,
desktop = 2
}
type Language = "ZH_CN" | "EN_US";
interface ISettingEvents extends Setting {
@@ -19,6 +24,11 @@ interface ISettingEvents extends Setting {
class Setting extends Emitter<ISettingEvents> {
/**
* 程序平台
*/
public platform: Platform = Platform.web;
/**
* 主题
*/
@@ -63,5 +73,5 @@ const useSettingWithEvent = superConnectWithEvent<Setting, ISettingEvents>(Setti
export {
Themes, Setting, SettingContext, useSetting, Language, useSettingWithEvent,
IMixinSettingProps, SettingProvider, SettingConsumer
IMixinSettingProps, SettingProvider, SettingConsumer, Platform
};