规范化play方法

This commit is contained in:
Harvey committed 2021-11-24 12:24:01 +08:00
1 parent 11e871ddc8
commit c5c4cf73eb
29 files changed
+81 -623

No files matched your search

+4 -11
View File
@@ -8,17 +8,10 @@ export default function pauseMix(art, player) {
} = art;
def(player, 'pause', {
get() {
return $video.paused;
},
set(value) {
if (value) {
$video.pause();
notice.show = i18n.get('Pause');
art.emit('pause');
} else {
player.play = true;
}
value() {
$video.pause();
notice.show = i18n.get('Pause');
art.emit('pause');
},
});
}