mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 03:11:20 -08:00
update time
This commit is contained in:
1 parent
fb445bf669
commit
a8f0ea12c0
4 files changed
+20
-10
No files matched your search
@@ -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)}`;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user