Dialog升级,支持可拖动,支持v-model控制显隐
This commit is contained in:
		| @@ -59,7 +59,6 @@ export default { | |||||||
|       const sty = dragDom.currentStyle || window.getComputedStyle(dragDom, null) |       const sty = dragDom.currentStyle || window.getComputedStyle(dragDom, null) | ||||||
|  |  | ||||||
|       dialogHeaderEl.onmousedown = e => { |       dialogHeaderEl.onmousedown = e => { | ||||||
|         console.log(e) |  | ||||||
|         // 鼠标按下,获得鼠标在盒子内的坐标(鼠标在页面的坐标 减去 对话框的坐标),计算当前元素距离可视区的距离 |         // 鼠标按下,获得鼠标在盒子内的坐标(鼠标在页面的坐标 减去 对话框的坐标),计算当前元素距离可视区的距离 | ||||||
|         const disX = e.clientX - dialogHeaderEl.offsetLeft |         const disX = e.clientX - dialogHeaderEl.offsetLeft | ||||||
|         const disY = e.clientY - dialogHeaderEl.offsetTop |         const disY = e.clientY - dialogHeaderEl.offsetTop | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user