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
ad58411b
Commit
ad58411b
authored
Aug 28, 2020
by
yimj
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of gitlab.ilaihua.com:laihua-web/laihua-toolkit into develop
# Conflicts: # src/views/screenshot.vue
parents
e2490995
74fbaf1b
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
73 additions
and
66 deletions
+73
-66
App.vue
src/App.vue
+13
-13
index.vue
src/components/header/index.vue
+6
-6
modalLayer.vue
src/components/modal/modalLayer.vue
+5
-5
index.vue
src/components/rightPanel/index.vue
+3
-3
index.vue
src/components/sideNav/index.vue
+14
-14
screenshot.vue
src/views/screenshot.vue
+32
-25
No files found.
src/App.vue
View file @
ad58411b
src/components/header/index.vue
View file @
ad58411b
src/components/modal/modalLayer.vue
View file @
ad58411b
src/components/rightPanel/index.vue
View file @
ad58411b
src/components/sideNav/index.vue
View file @
ad58411b
src/views/screenshot.vue
View file @
ad58411b
...
@@ -10,13 +10,23 @@
...
@@ -10,13 +10,23 @@
></video>
></video>
</div>
</div>
<div
class=
"operate-area"
>
<div
class=
"operate-area"
>
<div
class=
"play-area"
>
<input
<input
id=
"screenshot-input"
id=
"screenshot-input"
type=
"file"
type=
"file"
style=
"display:none;"
style=
"display:none;"
@
change=
"changeFile"
@
change=
"changeFile"
>
>
<label
id=
"select-btn"
>
选择文件
</label>
<label
id=
"select-btn"
>
<span>
选择文件
</span>
</label>
</div>
<div
class=
"time-area"
>
<div
id=
"ss-time-line"
>
<div
class=
"track"
></div>
</div>
</div>
<div
class=
"clip-area"
></div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -26,7 +36,10 @@ export default {
...
@@ -26,7 +36,10 @@ export default {
name
:
'Screenshot'
,
name
:
'Screenshot'
,
data
()
{
data
()
{
return
{
return
{
srcUrl
:
null
srcUrl
:
null
,
videoEle
:
null
,
current
:
0
,
duration
:
10
}
}
},
},
created
()
{},
created
()
{},
...
@@ -51,24 +64,11 @@ export default {
...
@@ -51,24 +64,11 @@ export default {
//loadedmetadata
//loadedmetadata
},
},
methods
:
{
methods
:
{
selectClick
()
{},
changeFile
(
e
)
{
changeFile
(
e
)
{
//console.log('changeFile', e)
//console.log('changeFile', e)
if
(
e
.
target
.
files
[
0
])
{
if
(
e
.
target
.
files
[
0
])
{
this
.
srcUrl
=
URL
.
createObjectURL
(
e
.
target
.
files
[
0
])
this
.
srcUrl
=
URL
.
createObjectURL
(
e
.
target
.
files
[
0
])
// let _this = this
// let reader = new FileReader()
// reader.addEventListener(
// 'load',
// () => {
// console.log('_this.srcUrl', this)
// _this.srcUrl = reader.result
// },
// false
// )
// reader.readAsDataURL(e.target.files[0])
}
}
//e.target
}
}
}
}
}
}
...
@@ -76,20 +76,27 @@ export default {
...
@@ -76,20 +76,27 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.screenshot
{
.screenshot
{
position
:
relative
;
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
margin
:
30px
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
.content
{
.content
{
height
:
90%
;
height
:
100%
;
margin
:
20px
30px
;
margin
:
20px
30px
;
background-color
:
lightcyan
;
background-color
:
lightcyan
;
}
}
.operate-area
{
.operate-area
{
background-color
:
aqua
;
height
:
200px
;
display
:
flex
;
flex-shrink
:
0
;
#select-btn
{
#select-btn
{
width
:
200px
;
background-color
:
bisque
;
height
:
100px
;
width
:
100px
;
height
:
30px
;
line-height
:
30px
;
}
}
}
}
}
}
...
...
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