YangLGggggggggg
YangLGggggggggg
use es2022 to code and config tsconfig.json tsconfig.json ``` { compilerOptions:{ "target": "esnext", "lib": ["esnext","dom"], "module": "es6", } } ``` but the output captch error ``` TSError: ⨯ Unable to...
Due to some unavoidable reasons, I am unable to use async and await However, jscpd only has asynchronous methods and requires the use of async or await to obtain results...
in my index.js,I use ` import * as PIXI from 'pixi.js'; import { Spine } from 'pixi-spine'; ` to load spine。 but the console show `Uncaught TypeError: Cannot read properties...
如果一个Dom下有多个 子节点使用指令,你代码 myInstance 只会是最后一个挂载的节点。 看了下你的代码,你在这里使用的是局部变量 https://github.com/dingshaohua-cn/vue3-infinite-scroll-good/blob/e74ec85b9d3f0ec7fe933bde2e461898fabcd590/src/directive.js#L207 导致多个节点同时使用,myInstance 永远是最后一个。 带来的问题就是,之前的dom 绑定的 expression 不会执行 因为 `myInstance ` 错误,导致 https://github.com/dingshaohua-cn/vue3-infinite-scroll-good/blob/e74ec85b9d3f0ec7fe933bde2e461898fabcd590/src/directive.js#L220-L222 这里判断 `isAttached` 永远是false
fix #11969 optimize the ref type to better display types in its ide
fix #12011
源码这里只是简单的使用扩展运算符做对象的覆盖 https://github.com/alibaba/hooks/blob/c7bb04c42bd8800164a112fd448c263bd16b63d4/packages/hooks/src/useSetState/index.ts#L17 如果只想对层级深的对象的某个值变更就会有问题,例如:https://codesandbox.io/p/sandbox/ji-chu-yong-fa-forked-qsglr8?file=%2Findex.html 点击按钮的的时候 只想修改对象某个key下的具体值,但是会覆盖所有的数据。 我不确定这是不是一个问题,可能你们当初设计的就是如此,如果这是一个问题话,我可以提个PR修复。
fix https://github.com/alibaba/hooks/issues/2704