import React, { Component } from 'react';
import ReactDom from'react-dom';
import { Modal, Empty } from'antd';
import'./dragable.less';
exportdefaultclass DragableModal extends Component {
constructor(props) {
super(props);this.state ={
visible:false,
dragging:false,
preX:0,
preY:0,
styleTop:100,
styleLeft:0,
}this.windowH =document.body.clientHeight;this.windowW =document.body.clientWidth;
}
show= () =>{this.setState({
visible:true,
dragging:false,
preX:0,
preY:0,
styleTop:100,
styleLeft:0,
})
}
hide= () =>{this.setState({
visible:false})
}
isOverWindow= (moveX, moveY) =>{
const e