Refactor subtitleOffset function to update range values and append items

This commit is contained in:
Harvey Zack committed 2024-10-20 22:02:01 +08:00
1 parent 3cece10f9e
commit 8566df6336
3 files changed
+13 -1

No files matched your search

@@ -12,5 +12,11 @@ export default function subtitleOffset(art) {
art.subtitleOffset = item.range[0];
return item.range[0] + 's';
},
mounted: (_, item) => {
art.on('subtitleOffset', (value) => {
item.$range.value = value;
item.tooltip = value + 's';
});
},
};
}