duchaolin

Results 2 issues of duchaolin

用onStop获取offsetTop和offsetLeft的时候有问题,感觉是鼠标停留位置的offsetTop和offsetLeft,而不是子元素的,比如应该是offsetTop:0,offsetLeft:0d的时候,如果鼠标拖拽再往左移,就会出现混乱了,此时onStop事件里面的e.target就是鼠标停留的元素,而不是当前的子元素

{getFieldDecorator('content',{ initialValue: currentDetail?.content, rules: [{ required: true, message: "请输入素材内容" }]} )( )}