Mr.Lucifer

Results 17 issues of Mr.Lucifer

修复 可视区域的计算,应该被 documentElement 的 clientWidth/clientHeight 裁剪,否则,弹框将显示到出可视范围外去(如下图) ### 前置条件: 图片中的滚动条为 window 的滚动条,其他容器的 overflow 均为 visible ### 实际结果: ![image](https://user-images.githubusercontent.com/17830872/97171086-c8d0f400-17c7-11eb-944d-19b4fff4fd25.png) ### 预期结果: ![image](https://user-images.githubusercontent.com/17830872/97171996-5103c900-17c9-11eb-8d11-87fa4ec768e4.png)

### 前置条件: dom 结构如下图 ![image](https://user-images.githubusercontent.com/17830872/97284063-8c5ed000-187b-11eb-9e96-838db5c39f82.png) ### 实际结果: ![image](https://user-images.githubusercontent.com/17830872/97284477-0abb7200-187c-11eb-8447-bd16b22ece10.png) ![image](https://user-images.githubusercontent.com/17830872/97284332-e364a500-187b-11eb-83b0-acc8eb718f34.png) sourceNode 获取到的 offsetParent 是 上图中 ”position:fixed“ 的元素,这样的话,就直接跳过了 ”overflow:auto“ 的元素参与 可视区域计算的过程,又因为 ”position:fixed“ 的元素 的overflow 属性 为 "visible" ,他之上的元素一直到 body都是 ”visible“ 属性,导致最终的可视区域 就变为了...

nodejs 中 sever.close express 中 app.close koa 中哪个方式是类似 close 的方式停止 http 服务的

[link](https://yuchengkai.cn/docs/zh/cs/#%E5%B8%B8%E8%A7%81%E7%8A%B6%E6%80%81%E7%A0%81) ![default](https://user-images.githubusercontent.com/17830872/46327608-1dc7cd80-c635-11e8-9299-6acc88ca32e4.JPG)

Remove @charset for other files, except the first one

![image](https://user-images.githubusercontent.com/17830872/41083132-03a394c6-6a63-11e8-8b82-bafbf7e3b31a.png)

![image](https://user-images.githubusercontent.com/17830872/51587518-f0709980-1f1b-11e9-8f3d-1395d1a0d6e1.png)

https://github.com/react-component/form/blob/f02b478c59c178ea9ee28cca3326ad1c4ed37f02/src/createDOMForm.js#L43

createForm 没有转发 包裹组件的 ref 如下代码 ```tsx class Cp{ } export const CpWithForm = createForm()(Cp); // this.cpRef.current === null ```