File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
client/packages/lowcoder/src/comps/comps Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -42,12 +42,18 @@ const StyledDiv = styled.div<{$style: FileViewerStyleType;}>`
42
42
${ ( props ) => props . $style && getStyle ( props . $style ) }
43
43
` ;
44
44
45
- const DraggableFileViewer = ( props : { src : string ; style : FileViewerStyleType , animationStyle :AnimationStyleType } ) => {
45
+ const DraggableFileViewer = ( props : {
46
+ src : string ;
47
+ style : FileViewerStyleType ,
48
+ animationStyle :AnimationStyleType ,
49
+ showVerticalScrollbar : boolean ,
50
+ } ) => {
46
51
const [ isActive , setActive ] = useState ( false ) ;
47
52
48
53
return (
49
54
< StyledDiv
50
55
$style = { props . style }
56
+ id = "fileViewer"
51
57
onClick = { ( e ) => setActive ( true ) }
52
58
onMouseLeave = { ( e ) => setActive ( false ) }
53
59
>
@@ -83,7 +89,12 @@ let FileViewerBasicComp = (function () {
83
89
</ ErrorWrapper >
84
90
) ;
85
91
}
86
- return < DraggableFileViewer src = { props . src } style = { props . style } animationStyle = { props . animationStyle } /> ;
92
+ return < DraggableFileViewer
93
+ src = { props . src }
94
+ style = { props . style }
95
+ animationStyle = { props . animationStyle }
96
+ showVerticalScrollbar = { props . showVerticalScrollbar }
97
+ /> ;
87
98
} )
88
99
. setPropertyViewFn ( ( children ) => {
89
100
return (
You can’t perform that action at this time.
0 commit comments