Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* improve: preview props * Update README.md * ts * fix test
- Loading branch information
Showing
4 changed files
with
112 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Controlled With previewVisible 1`] = ` | ||
<div | ||
className="rc-image-preview" | ||
onClick={[Function]} | ||
role="document" | ||
style={Object {}} | ||
> | ||
<div | ||
aria-hidden="true" | ||
style={ | ||
Object { | ||
"height": 0, | ||
"outline": "none", | ||
"overflow": "hidden", | ||
"width": 0, | ||
} | ||
} | ||
tabIndex={0} | ||
/> | ||
<div | ||
className="rc-image-preview-content" | ||
> | ||
<div | ||
className="rc-image-preview-body" | ||
> | ||
<ul | ||
className="rc-image-preview-operations" | ||
> | ||
<li | ||
className="rc-image-preview-operations-operation" | ||
onClick={[Function]} | ||
> | ||
<ForwardRef(CloseOutlined) | ||
className="rc-image-preview-operations-icon" | ||
/> | ||
</li> | ||
<li | ||
className="rc-image-preview-operations-operation" | ||
onClick={[Function]} | ||
> | ||
<ForwardRef(ZoomInOutlined) | ||
className="rc-image-preview-operations-icon" | ||
/> | ||
</li> | ||
<li | ||
className="rc-image-preview-operations-operation rc-image-preview-operations-operation-disabled" | ||
onClick={[Function]} | ||
> | ||
<ForwardRef(ZoomOutOutlined) | ||
className="rc-image-preview-operations-icon" | ||
/> | ||
</li> | ||
<li | ||
className="rc-image-preview-operations-operation" | ||
onClick={[Function]} | ||
> | ||
<ForwardRef(RotateRightOutlined) | ||
className="rc-image-preview-operations-icon" | ||
/> | ||
</li> | ||
<li | ||
className="rc-image-preview-operations-operation" | ||
onClick={[Function]} | ||
> | ||
<ForwardRef(RotateLeftOutlined) | ||
className="rc-image-preview-operations-icon" | ||
/> | ||
</li> | ||
</ul> | ||
<div | ||
className="rc-image-preview-img-wrapper" | ||
style={ | ||
Object { | ||
"transform": "translate3d(0px, 0px, 0)", | ||
} | ||
} | ||
> | ||
<img | ||
className="rc-image-preview-img" | ||
onMouseDown={[Function]} | ||
src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png" | ||
style={ | ||
Object { | ||
"transform": "scale3d(1, 1, 1) rotate(0deg)", | ||
} | ||
} | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
<div | ||
aria-hidden="true" | ||
style={ | ||
Object { | ||
"height": 0, | ||
"outline": "none", | ||
"overflow": "hidden", | ||
"width": 0, | ||
} | ||
} | ||
tabIndex={0} | ||
/> | ||
</div> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ce47c04
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
ce47c04
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a breaking change, please revert and release a major version.