保存一下
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
import ProcessImpl from '@/core/process/impl/ProcessImpl.ts'
|
||||
import type { ProcessInfoImpl } from '@/core/process/impl/ProcessInfoImpl.ts'
|
||||
import XSystem from '@/core/XSystem.ts'
|
||||
import { BasicSystemProcess } from '@/core/system/BasicSystemProcess.ts'
|
||||
import { createApp, h } from 'vue'
|
||||
import DesktopComponent from '@/core/desktop/ui/DesktopComponent.vue'
|
||||
import { naiveUi } from '@/core/common/naive-ui/components.ts'
|
||||
import { DesktopEventEnum } from '@/core/events/EventTypes.ts'
|
||||
import { debounce } from 'lodash'
|
||||
import type { IProcessInfo } from '@/core/process/IProcessInfo.ts'
|
||||
import { eventManager } from '@/core/events/EventManager.ts'
|
||||
import { processManager } from '@/core/process/ProcessManager.ts'
|
||||
|
||||
export class DesktopProcess extends ProcessImpl {
|
||||
private _desktopRootDom: HTMLElement;
|
||||
@@ -23,7 +22,7 @@ export class DesktopProcess extends ProcessImpl {
|
||||
return this._isMounted;
|
||||
}
|
||||
public get basicSystemProcess() {
|
||||
return XSystem.instance.processManage.findProcessByName<BasicSystemProcess>('basic-system')
|
||||
return processManager.findProcessByName<BasicSystemProcess>('basic-system')
|
||||
}
|
||||
|
||||
public get width() {
|
||||
@@ -58,15 +57,11 @@ export class DesktopProcess extends ProcessImpl {
|
||||
if (this._pendingResize) {
|
||||
this._pendingResize = false;
|
||||
console.log('onDesktopRootDomResize')
|
||||
this.eventManages.notifyEvent(DesktopEventEnum.onDesktopRootDomResize, this._width, this._height);
|
||||
eventManager.notifyEvent('onDesktopRootDomResize', this._width, this._height);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private get eventManages() {
|
||||
return XSystem.instance.eventManage;
|
||||
}
|
||||
|
||||
constructor(info: IProcessInfo) {
|
||||
super(info)
|
||||
console.log('DesktopProcess')
|
||||
|
||||
Reference in New Issue
Block a user