mirror of
https://github.com/eyebluecn/tank-front
synced 2024-04-21 12:31:55 +00:00
add previewer change
This commit is contained in:
@@ -51,8 +51,11 @@ export default class BrowserPreviewer extends React.Component<IProps, IState> {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className="browser-previewer-wrapper">
|
||||
<div className="browser-previewer">
|
||||
<div
|
||||
className="browser-previewer-wrapper"
|
||||
onClick={() => this.props.onClose()}
|
||||
>
|
||||
<div className="browser-previewer" onClick={(e) => e.stopPropagation()}>
|
||||
<div className="title-bar">
|
||||
<div className="left-part"></div>
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
opacity: 0.7;
|
||||
font-weight: 600;
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ export default class ImagePreviewer extends TankComponent<any, any> {
|
||||
return (
|
||||
<Space>
|
||||
<DownloadOutlined
|
||||
className="f18 toolbar-icon"
|
||||
className="f18 toolbar-icon btn-action"
|
||||
onClick={() => {
|
||||
const a = document.createElement('a');
|
||||
a.setAttribute('download', '');
|
||||
@@ -84,13 +84,13 @@ export default class ImagePreviewer extends TankComponent<any, any> {
|
||||
}}
|
||||
/>
|
||||
<RotateRightOutlined
|
||||
className="f18 toolbar-icon"
|
||||
className="f18 toolbar-icon btn-action"
|
||||
onClick={() => {
|
||||
overlayProps.onRotate(overlayProps.rotate + 90);
|
||||
}}
|
||||
/>
|
||||
<CloseOutlined
|
||||
className="f18 toolbar-icon"
|
||||
className="f18 toolbar-icon btn-action"
|
||||
onClick={() => overlayProps.onClose()}
|
||||
/>
|
||||
</Space>
|
||||
|
||||
Reference in New Issue
Block a user