This commit is contained in:
2025-09-02 17:10:00 +08:00
parent 981d93d28f
commit 888cca65e1
3 changed files with 55 additions and 43 deletions

View File

@@ -48,28 +48,20 @@ 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',
// snapThreshold: 20,
// boundary: document.body
// })
// new Resizable({
// target: dom,
// onResizeEnd: (data) => {
// console.log(data)
// }
// })
const div = document.createElement('div');
div.style.width = '100%';
div.style.height = '20px';
div.style.backgroundColor = 'red';
dom.appendChild(div)
new DraggableResizable({
target: dom,
handle: dom,
handle: div,
mode: 'position',
snapThreshold: 20,
boundary: document.body
boundary: document.body,
})
this.desktopRootDom.appendChild(dom);
}
}
}