mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 13:21:20 -08:00
Refactor subtitleOffset function to update range values and append items
This commit is contained in:
1 parent
3cece10f9e
commit
8566df6336
3 files changed
+13
-1
No files matched your search
@@ -5097,6 +5097,12 @@ function subtitleOffset(art) {
|
||||
onChange (item) {
|
||||
art.subtitleOffset = item.range[0];
|
||||
return item.range[0] + "s";
|
||||
},
|
||||
mounted: (_, item)=>{
|
||||
art.on("subtitleOffset", (value)=>{
|
||||
item.$range.value = value;
|
||||
item.tooltip = value + "s";
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user