测试
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user