Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
live
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liujiaxin
live
Commits
e728e9dd
Commit
e728e9dd
authored
Feb 12, 2020
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
16f2263c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
courseware-frame.tsx
src/components/courseware-frame.tsx
+13
-5
No files found.
src/components/courseware-frame.tsx
View file @
e728e9dd
...
...
@@ -5,7 +5,6 @@ import { AgoraElectronStream, StreamType, nativeRTCClient as nativeClient } from
import
{
useRoomState
}
from
'
../containers/root-container
'
;
import
{
platform
}
from
'
../utils/platform
'
;
import
{
makeStyles
}
from
"
@material-ui/core/styles
"
;
import
{
endPoint
}
from
'
../services/agora-end-points
'
;
const
contentMode
=
0
;
...
...
@@ -26,7 +25,7 @@ const useStyles = makeStyles({
flex
:
1
},
style4
:
{
height
:
3
6
,
height
:
3
0
,
width
:
100
,
flex
:
0
},
...
...
@@ -36,11 +35,20 @@ const useStyles = makeStyles({
}
});
const
CourseWareFrame
:
React
.
FC
=
()
=>
{
const
classes
=
useStyles
();
const
src
=
endPoint
.
getCourseUrl
();
const
classes
=
useStyles
();
const
ref
=
useRef
<
any
>
(
''
);
const
[
src
,
setSrc
]
=
useState
(
''
)
const
changSrc
=
(
evt
:
any
)
=>
{
setSrc
(
ref
.
current
.
value
);
}
return
(
<
div
className=
{
classes
.
style1
}
>
<
div
className=
{
classes
.
style2
}
>
<
input
type=
"text"
ref=
{
ref
}
className=
{
classes
.
style3
}
/>
<
button
onClick=
{
changSrc
}
className=
{
classes
.
style4
}
>
GO
</
button
>
</
div
>
<
iframe
src=
{
src
}
className=
{
classes
.
frm
}
></
iframe
>
</
div
>
)
...
...
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