Jaylan

Results 16 comments of Jaylan

把 import { TaroCanvasDrawer } from 'taro-plugin-canvas' 改成 import TaroCanvasDrawer from 'taro-plugin-canvas'; 试试 我遇到的问题是`The "path" argument must be of type string. Received null`, ``` taro-plugin-canvas: 1.0.10 tarojs: 2.2.16 ``` 以上仅供参考

> You can write `this.event.emit('startTool', undefined);` Yes, you could write code like this; But the problem is, when you write code, there's no event type inference, it's not friendly.

> Here's the explanation, it's not specifically a bug but more like a misconception of how the inferring works > > [microsoft/TypeScript#48741 (comment)](https://github.com/microsoft/TypeScript/issues/48741#issuecomment-1101637791) Thank you, it was helpful.

@heylight 你好,canvas-select 2.27.0 引入报错; import CanvasSelect from 'canvas-select'; Attempted import error: 'canvas-select' does not contain a default export (imported as 'CanvasSelect'). node: v22 当前临时解决方案: 把package中的 "type": "module" 或者修改为 "type": "commonjs"...

关于宽度缓存的问题,如果我把其中一列的宽度设置为undefined了,还需要读取缓存的吗? https://github.com/hemengke1997/use-antd-resizable-header/blob/master/src/useAntdResizableHeader.tsx#L154 https://github.com/hemengke1997/use-antd-resizable-header/blob/master/src/useAntdResizableHeader.tsx#L165 不知道下面这个是否合适: `cache && col?.width ? widthCache.current?.get(col[GETKEY] ?? '')?.width || col?.width : col?.width,`