Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
web2022
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Website
web2022
Commits
bf354f84
Commit
bf354f84
authored
Jul 25, 2022
by
mxm-web-develop
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
321
parent
7e0799c3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
18 deletions
+0
-18
HoverBox.tsx
src/components/HoverBox.tsx
+0
-2
index.tsx
src/views/DocViewer/index.tsx
+0
-16
No files found.
src/components/HoverBox.tsx
View file @
bf354f84
...
...
@@ -8,7 +8,6 @@ export interface HoverBoxType extends IProps {
export
default
function
HoverBox
(
props
:
HoverBoxType
)
{
const
item
=
useRef
(
null
)
const
{
children
,
className
}
=
props
;
const
moveIn
=
_throttle
((
e
:
any
)
=>
{
e
.
stopPropagation
();
...
...
@@ -22,7 +21,6 @@ export default function HoverBox (props: HoverBoxType) {
}
},
550
)
const
moveOut
=
_throttle
((
e
:
any
)
=>
{
e
.
stopPropagation
();
const
target
=
item
.
current
!
as
HTMLElement
const
coverLayer
=
target
.
nodeName
===
'LI'
?
target
.
children
[
0
]:
target
...
...
src/views/DocViewer/index.tsx
View file @
bf354f84
...
...
@@ -28,23 +28,7 @@ export const DocViewer = (props:DocViewerType)=>{
const
target
=
document
.
querySelector
(
'#iframe'
)
as
HTMLIFrameElement
if
(
target
){
setShow
(
true
)
// window.addEventListener('message',(e)=>{
// console.log(e);
// },false)
if
(
target
.
contentWindow
&&
target
.
contentWindow
.
top
&&
target
.
contentWindow
.
top
.
innerHeight
){
const
ob
=
of
(
target
.
contentWindow
.
top
.
innerHeight
)
ob
.
subscribe
((
v
)
=>
{
setHeight
(
v
+
200
)
})
}
}
}
return
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment