update time

This commit is contained in:
Harvey Zack committed 2023-04-19 14:07:04 +08:00
1 parent fb445bf669
commit a8f0ea12c0
4 files changed
+20 -10

No files matched your search

+10 -5
View File
@@ -1,12 +1,17 @@
import { secondToTime } from '../utils';
import { secondToTime, isMobile } from '../utils';
export default function time(option) {
return (art) => ({
...option,
style: {
cursor: 'auto',
margin: '0 10px',
},
style: isMobile
? {
fontSize: '12px',
padding: '0 5px',
}
: {
cursor: 'auto',
padding: '0 10px',
},
mounted: ($control) => {
function getTime() {
const newTime = `${secondToTime(art.currentTime)} / ${secondToTime(art.duration)}`;
+2
View File
@@ -1,4 +1,6 @@
.art-mobile {
--art-padding: 8px;
--art-bottom-gap: 8px;
--art-control-height: 38px;
--art-control-icon-scale: 1;
--art-state-size: 60px;