Guanghui Qin

Results 7 issues of Guanghui Qin

## Problem As mentioned in #594,#560,#548,there a lot issues about woker.js,I also encountered the same problem when developing chrome extension,and finally find the solution. Now there are two ways to...

## 背景 现有的代码 proxyWindow 在取值时,如果 proxyWindow 上不存在的一些属性最终会到 window 上取值。[micro-app 代码](https://github.com/micro-zoe/micro-app/blob/dev/src/sandbox/with/window.ts#L96) 但是这样会产生一个问题,就是主应用上在 window 上设置了一个属性 a,在子应用上是可以访问到这个 a 属性,导致初始化时判断错误。 该现象会在实际项目里产生问题,如使用到 svg-sprite-loader 这个 loader 的时候,它里面的关键代码在[第12行](https://github.com/JetBrains/svg-sprite-loader/blob/c760cf93c49736f1e26a85fff7db3f9c940572c3/runtime/browser-sprite.js#L12) 由于主应用已经挂载了 svg 节点,且在 window 上添加了 __SVG_SPRITE__ 标识符。子应用判断 svg 是否已经挂载的时候访问到了...

feature
discussion

代码如下: ```jsx console.log('blur')} onChange={() => console.log('change')} /> ``` 当使用 precision 时,如果输入的内容不符合当前精度((比如 0.9),此时失焦,会先触发 onBlur,拿到的 value 值为 0.9。然后 InputNumber 组件再将 value 值格式化,触发 onChange, 此时拿到的 value 值是 1。 在业务中,如果在 onBlur 中去做校验,无法拿到最终格式化后的值。需要通过异步去获取,感觉不是很好,是否能在 onBlur 里将值直接格式化后再出发外层...

### Bug reports: ```html ``` When 'position: fixed' has a parent/grandparent node that has the style 'position: relative', the screenshot's level is not correct. Because[ the renderContentStack method](https://github.com/niklasvh/html2canvas/blob/master/src/render/canvas/canvas-renderer.ts#L473) render 'position:...

demo 地址:https://stackblitz.com/edit/react-ts-ve5dk5?file=index.tsx,App.tsx,style.css 。 这个 demo 放到 stackblitz 里的时候刷新界面点击【切换可见状态】按钮是正常的。但是在 create-react-app 新建的项目中会产生问题。 问题复现: 1. 使用 create-react-app 创建一个新的项目,react 版本为 18+,将 demo 代码替换到新建项目中。 2. 运行后,点击【切换可见状态】按钮设置 visible 状态,偶尔会出现状态设置失效的情况(偶发性很高)。 3. 刷新界面后,再次点击【切换可见状态】按钮,visible 设置失效。而且无法恢复,尝试重新运行也是有概率无法恢复。 ![2023-01-03 18 27 30](https://user-images.githubusercontent.com/38751863/210340725-5adba4cb-67f4-4ab6-8187-dffa63a63aa8.gif)

### 问题复现地址: [https://stackblitz.com/edit/react-ytlq4p?file=index.css,demo.tsx,index.tsx](https://stackblitz.com/edit/react-ytlq4p?file=index.css,demo.tsx,index.tsx) ### 问题描述: 当自定义浏览器滚动条时,并且设置 scroll.y,此时 rc-table 会在表头自动添加一列 xxx-cell-scrollbar,用于与自定义滚动条对齐。 但是当表格的数据量比较小时,表格内并没有出现滚动,还是会添加 xx-cell-scrollbar 列,并且表格内部会设置 overflow: scroll,样式会显得比较奇怪,如下: ![image](https://github.com/react-component/table/assets/38751863/71b2d195-dd0f-45d8-b121-4e086e4caa04) ### 期望: 希望能在表格内部未出现滚动的情况下,不自动添加该 scrollbar 列,并且 body 样式设置为 overflow: auto。 ### 一点想法: 默认情况下不添加 scrollbar 列,用...

## Demo ``` ``` ## Background This demo in official docs is not working. The source code in `steps.tsx` not parse children props, but uses `items: StepsProps[]` to render children....