mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-11 05:26:15 -08:00
14 lines
275 B
JavaScript
14 lines
275 B
JavaScript
import { def } from '../utils';
|
|
|
|
export default function toggleMix(art) {
|
|
def(art, 'toggle', {
|
|
value() {
|
|
if (art.playing) {
|
|
return art.pause();
|
|
} else {
|
|
return art.play();
|
|
}
|
|
},
|
|
});
|
|
}
|