image
image copied to clipboard
🖼 React Image Component
# 问题 如何添加图片翻转后,保存操作? tools 如何自定义扩展?如何覆写原有 onClick ? https://github.com/react-component/image/blob/master/src/Preview.tsx ``` const tools = [ { icon: close, onClick: onClose, type: 'close', }, { icon: zoomIn, onClick: onZoomIn, type: 'zoomIn', }, {...
如题 复现代码: {arr.map((item) => { return ; })}
demo没有, 自己使用也没有, 元素是空的 No icons in the demo, nor in local usage. The element is empty  
Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.6.0. Release notes Sourced from eslint's releases. v9.6.0 Features e2b16e2 feat: Implement feature flags (#18516) (Nicholas C. Zakas) 8824aa1 feat: add ecmaVersion: 2025, parsing duplicate...
Bumps [np](https://github.com/sindresorhus/np) from 7.7.0 to 10.0.6. Release notes Sourced from np's releases. v10.0.6 Fix usage with pnpm and --any-branch or --branch (#745) d0c1493 https://github.com/sindresorhus/np/compare/v10.0.5...v10.0.6 v10.0.5 Fix npm 10 compatibility for...
Bumps [glob](https://github.com/isaacs/node-glob) from 7.2.3 to 10.4.2. Changelog Sourced from glob's changelog. changeglob 10.4 Add includeChildMatches: false option Export the Ignore class 10.3 Add --default -p flag to provide a default...
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 15.0.7 to 16.0.0. Release notes Sourced from @testing-library/react's releases. v16.0.0 16.0.0 (2024-06-03) Features Move @testing-library/dom and @types/react-dom to peer dependencies (#1305) (a4744fa) BREAKING CHANGES @testing-library/dom was moved...
import Image from 'rc-image'; export const MyComponent = () { const ref = useRef(null) return
https://github.com/react-component/image/blob/76ed86683c18221da6920a5a19eaba22bffcf1ec/src/Preview.tsx#L92 这里的PreviewImage能否从useStatus里增加返回一个status的参数,然后参考Image.tsx那边一样根据status展示loading
同时传参Cross-Origin和fallback会失效,因为检查status为isError的时候,判断src为error的判断函数中,img.crossOrigin没有设置为anonymous,行为不一致