update 0.3.0

This commit is contained in:
hufeixiong
2021-07-12 21:01:11 +08:00
parent 740d3661d2
commit e18ce0f635
23 changed files with 349 additions and 150 deletions

View File

@@ -2,7 +2,7 @@
* @Author: yehuozhili
* @Date: 2021-02-25 21:16:58
* @LastEditors: yehuozhili
* @LastEditTime: 2021-07-12 14:49:32
* @LastEditTime: 2021-07-12 16:49:46
* @FilePath: \dooringx\packages\dooringx-lib\src\config\index.tsx
*/
import { IBlockType, IStoreData } from '../core/store/storetype';
@@ -321,6 +321,7 @@ export class UserConfig {
public eventCenter: EventCenter;
public dataCenter: DataCenter;
public scaleState = scaleState;
public collapsed = false;
constructor(initConfig?: Partial<InitConfig>) {
const mergeConfig = userConfigMerge(defaultConfig, initConfig);
this.initConfig = mergeConfig;
@@ -370,6 +371,10 @@ export class UserConfig {
this.toRegist();
}
getCollapse() {
return this.collapsed;
}
getStoreJSON() {
return JSON.stringify(this.store.getData());
}