保存一下

This commit is contained in:
2025-09-01 16:31:47 +08:00
parent 90d72e1649
commit d34e953440
3 changed files with 206 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ import type { IWindowForm } from '@/core/window/IWindowForm.ts'
import type { IWindowFormConfig } from '@/core/window/types/IWindowFormConfig.ts'
import type { WindowFormPos } from '@/core/window/types/WindowFormTypes.ts'
import { processManager } from '@/core/process/ProcessManager.ts'
import { Draggable } from '@/core/utils/Draggable.ts'
export default class WindowFormImpl implements IWindowForm {
private readonly _id: string = uuidV4();
@@ -45,6 +46,11 @@ export default class WindowFormImpl implements IWindowForm {
dom.style.height = `${this.height}px`;
dom.style.zIndex = '100';
dom.style.backgroundColor = 'white';
new Draggable( {
handle: dom,
target: dom,
mode: 'position',
})
this.desktopRootDom.appendChild(dom);
}