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
ac332bc1
Commit
ac332bc1
authored
Aug 27, 2020
by
Jeff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新规则
parent
965d7555
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
19 deletions
+28
-19
.eslintrc.js
.eslintrc.js
+12
-2
videoControl.vue
src/components/videoCutter/videoControl.vue
+16
-17
No files found.
.eslintrc.js
View file @
ac332bc1
...
...
@@ -10,7 +10,7 @@ module.exports = {
// 3: ESLint + Standard config
// extends: [ 'plugin:vue/essential', '@vue/airbnb',],
// ESLint + Prettier
extends
:
[
'plugin:vue/
strongly-recommended
'
,
'eslint:recommended'
],
extends
:
[
'plugin:vue/
essential
'
,
'eslint:recommended'
],
plugins
:
[],
parserOptions
:
{
parser
:
'babel-eslint'
...
...
@@ -37,6 +37,16 @@ module.exports = {
}
],
'comma-dangle'
:
[
'error'
,
'never'
],
quotes
:
[
'error'
,
'single'
]
quotes
:
[
'error'
,
'single'
],
'vue/max-attributes-per-line'
:
[
'error'
,
{
singleline
:
1
,
multiline
:
{
max
:
1
,
allowFirstLine
:
false
}
}
]
}
}
src/components/videoCutter/videoControl.vue
View file @
ac332bc1
<
template
>
<div
class=
"video-control"
>
<div
class=
"video-play-btn"
@
click=
"play()"
>
播放
<div
class=
"video-control"
>
<div
class=
"video-play-btn"
@
click=
"play()"
>
播放
</div>
<div
class=
"video-time-content"
>
<div
class=
"now-time"
>
{{
duration
|
formatTime
}}
</div>
<span>
/
</span>
<div
class=
"total-time"
>
{{
duration
|
formatTime
}}
</div>
</div>
</div>
<div
class=
"video-time-content"
>
<div
class=
"now-time"
>
{{
duration
|
formatTime
}}
</div>
<span>
/
</span>
<div
class=
"total-time"
>
{{
duration
|
formatTime
}}
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{}
},
props
:
{
duration
:
{
type
:
Number
,
default
:
0
},
nowTime
:
{
type
:
Number
,
default
:
0
}
}
,
props
:
[
'duration'
,
'nowTime'
]
,
methods
:
{
play
()
{
this
.
$emit
(
'play'
)
...
...
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