Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
et_21
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
template admin
et_21
Commits
522aa0ae
Commit
522aa0ae
authored
Feb 25, 2021
by
Li MingZhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 自动聚焦
parent
0f866289
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
lrc-editor.component.html
form/src/app/common/lrc-editor/lrc-editor.component.html
+1
-1
lrc-editor.component.ts
form/src/app/common/lrc-editor/lrc-editor.component.ts
+7
-7
No files found.
form/src/app/common/lrc-editor/lrc-editor.component.html
View file @
522aa0ae
...
...
@@ -102,7 +102,7 @@
</nz-spin>
</div>
<div
class=
"wave-player"
[
ngStyle
]="{
visibility:
LRCData
.
audio_url
?
'
visible
'
:
'
hidden
'}"
>
<canvas
#
waveEl
autofocus
></canvas>
<canvas
#
waveEl
></canvas>
<div
class=
"time-line"
#
timeLineEl
>
<div
class=
"ctrl-bar"
>
</div>
...
...
form/src/app/common/lrc-editor/lrc-editor.component.ts
View file @
522aa0ae
...
...
@@ -229,13 +229,13 @@ export class LrcEditorComponent implements OnInit, OnChanges, OnDestroy, AfterVi
// console.log('ngOnChanges', JSON.stringify(value)); // this.ngOnInit();
}
ngOnDestroy
():
void
{
this
.
audioPlayBarPositionSub
.
unsubscribe
();
this
.
audioDataLoadedSub
.
unsubscribe
();
this
.
audioPlayTimestampSub
.
unsubscribe
();
this
.
audioPlayEndSub
.
unsubscribe
();
this
.
dragMoveBarSub
.
unsubscribe
();
this
.
arrowKeyUpSub
.
unsubscribe
();
this
.
loadAudioSub
.
unsubscribe
();
//
this.audioPlayBarPositionSub.unsubscribe();
//
this. audioDataLoadedSub.unsubscribe();
//
this. audioPlayTimestampSub.unsubscribe();
//
this. audioPlayEndSub.unsubscribe();
//
this. dragMoveBarSub.unsubscribe();
//
this. arrowKeyUpSub.unsubscribe();
//
this. loadAudioSub.unsubscribe();
}
ngAfterViewInit
()
{
...
...
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