Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mould-vuecli3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
lhfe
mould-vuecli3
Commits
353734e8
Commit
353734e8
authored
Aug 27, 2020
by
Jeff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new components
parent
2dfbdcf1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
screenshot.vue
src/views/screenshot.vue
+18
-18
No files found.
src/views/screenshot.vue
View file @
353734e8
...
...
@@ -33,14 +33,14 @@ export default {
mounted
()
{
let
input
=
document
.
getElementById
(
'screenshot-input'
)
let
fileBtn
=
document
.
getElementById
(
'select-btn'
)
fileBtn
.
addEventListener
(
'click'
,
function
()
{
fileBtn
.
addEventListener
(
'click'
,
function
()
{
input
.
click
()
})
let
video
=
document
.
getElementById
(
'screenshot-video'
)
video
.
onerror
=
function
(
e
)
{
video
.
onerror
=
function
(
e
)
{
console
.
log
(
'onerror'
,
e
)
}
video
.
addEventListener
(
'loadedmetadata'
,
function
(
e
)
{
video
.
addEventListener
(
'loadedmetadata'
,
function
(
e
)
{
console
.
log
(
'loadedmetadata'
,
e
)
//webkitVideoDecodedByteCount
if
(
e
.
target
.
webkitVideoDecodedByteCount
<
1
)
{
...
...
@@ -76,21 +76,21 @@ export default {
<
style
lang=
"scss"
scoped
>
.screenshot
{
width
:
100%
;
height
:
100%
;
margin
:
30px
;
display
:
flex
;
flex-direction
:
column
;
.content
{
height
:
90%
;
margin
:
20px
30px
;
background-color
:
lightcyan
;
}
.operate-area
{
#select-btn
{
width
:
200px
;
height
:
100px
;
}
width
:
100%
;
height
:
100%
;
margin
:
30px
;
display
:
flex
;
flex-direction
:
column
;
.content
{
height
:
90%
;
margin
:
20px
30px
;
background-color
:
lightcyan
;
}
.operate-area
{
#select-btn
{
width
:
200px
;
height
:
100px
;
}
}
}
</
style
>
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