image
image copied to clipboard
🖼 React Image Component
之前默认放大缩小的倍数是 1 倍,这样无论是鼠标滚轮操作或是点击按钮操作,放大缩小的时候感觉非常突兀。 这里增加 scaleOffset 属性,且默认设置为 0.5 倍,更加接近普通操作情况。
When i use the component in markdown or mdx, the generated codes a bit like: ```html ``` However, the P element represents a paragraph. It cannot contain block-level elements (including...
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 16.14.11 to 17.0.15. Commits See full diff in compare view [](https://dependabot.com/compatibility-score/?dependency-name=@types/react&package-manager=npm_and_yarn&previous-version=16.14.11&new-version=17.0.15) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 16.9.14 to 17.0.9. Commits See full diff in compare view [](https://dependabot.com/compatibility-score/?dependency-name=@types/react-dom&package-manager=npm_and_yarn&previous-version=16.9.14&new-version=17.0.9) Dependabot will resolve any conflicts with this PR as long as you don't alter...
_Dependabot Preview will be shut down on August 3rd, 2021. In order to keep getting Dependabot updates, please merge this PR and migrate to GitHub-native Dependabot before then._ Dependabot has...
Bumps [less](https://github.com/less/less.js) from 3.13.1 to 4.1.1. Release notes Sourced from less's releases. v4.1.1 Bug fixes v4.1.0 Mixin parentheses requirement removed This was maybe too big a change without some kind...
Following custom preview image demo: ```jsx ``` The only way to close the popup image is either: a) `X` button b) press on the modal (outside the image). How is...
和onVisibleChange一样 搞一个onCurrentChange 获取current值