CJY

Results 12 issues of CJY

对 iframe 标签进行的 dom 移位操作一律会引起刷新,但 keep-alive 功能必须进行 dom 移位 此问题暂未寻到修正方式,暂不修复,请使用者注意

wontfix

和 @CHEN-J-H 在微信的问题反馈中得知存在此问题,当代码中存在类似如下操作时,造成组件不渲染 猜测原因为,drop 动作是异步的,但目前和 push 同步调用了,造成了,push 先执行后,drop 生效,KeepAlive 内部的 dom 操作(inject/eject)出现了问题 此处做记录,后续修复

bug

目前使用 clientWidth、clientHeight 取值,结果为整数,但实际元素尺寸可能为小数,可能会导致高精度需求场景下的数值误差 https://github.com/alibaba/hooks/blob/2d82a3fbde5cc08963e988a78bdbe8395e831382/packages/hooks/src/useSize/index.ts#L20-L28 是否可以考虑调整为 `getBoundingClientRect().height` 获取高精度数值?或者增加参数开启高精度模式,不影响此前行为 ![image](https://user-images.githubusercontent.com/18415774/141970406-40b8a6c2-febf-4b41-99e9-39040d1c0d7a.png) 参考:[HTMLElement.offsetHeight](https://developer.mozilla.org/zh-CN/docs/Web/API/HTMLElement/offsetHeight)

### 🤔 这个变动的性质是?/ What is the nature of this change? - [x] 新特性提交 / New feature ### 🔗 相关 Issue / Related Issue ### 💡 需求背景和解决方案 / Background or solution...

### Description 部分场景下,期望同一页面中,不同 demo 代码块区分启用 dumi-theme-mobile 以实现更好的 demo 排布和呈现、或者 demo 之间的互动等 ### Related #531 ### Solution 通过在 `demo.FrontMatter` 中增加 `mobile` 属性来控制不同 previewer block 对 theme-mobile 的启用情况,如下 # 某文档页 A ###...

enhancement

是否是必要的依赖呢?代价似乎太大了 https://bundlephobia.com/[email protected] ![image](https://user-images.githubusercontent.com/18415774/81464236-59078680-91f2-11ea-8385-2f11a9f77e32.png)

Hi! Is there any things to prove that `react-freeze` only support `react 17+`? I made a [demo with react 16.6.3](https://codesandbox.io/s/serene-stitch-b3iei) and it also works well I am trying to improve...

related issue: #14 ### Check List - [x] document - [x] test case

**Describe the bug** `version-check` doesn't seem to work properly. I'm using the remote check method to compare with the local check method. It has been working normally before. But today,...

type: bug
status: pinned

dumi 2.x hash history 模式下,标题锚点与 TOC 无法跳转至正确位置, ### Versions - dumi: 2.1.5 - node: 14.18.3 - npm: 6.14.15 - OS: Win10 - Browser: Chrome 107.0.5304.63 ### Steps to reproduce 例如...

bug