Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望加个单日模式 #6

Closed
viki719632 opened this issue Feb 3, 2023 · 11 comments
Closed

希望加个单日模式 #6

viki719632 opened this issue Feb 3, 2023 · 11 comments

Comments

@viki719632
Copy link

希望增加只显示当天的 从00:00:00到23:59:59的

@wanglin2
Copy link
Owner

wanglin2 commented Feb 3, 2023

enableZoomenableDrag设为false,然后把初始时间设置为当天的12:00:00,显示的就是显示当天的 从00:00:00到23:59:59的了

@wanglin2 wanglin2 closed this as completed Feb 3, 2023
@viki719632
Copy link
Author

1675396799384
样式是需要调整的,两侧的时间轴被遮住了一点

@viki719632
Copy link
Author

image
鼠标经过的时候 会显示年月日,时分秒
单日模式是不需要的

@viki719632
Copy link
Author

image
这里显示了下一天的日期

@wanglin2
Copy link
Owner

wanglin2 commented Feb 3, 2023

@wanglin2
Copy link
Owner

wanglin2 commented Feb 3, 2023

demo中的最后一个https://wanglin2.github.io/VideoTimeLine/

@wanglin2
Copy link
Owner

wanglin2 commented Feb 3, 2023

需要升级到0.1.9

@viki719632
Copy link
Author

0.1.9 有升级到Npm吗
我这边npm 升级报错了

@wanglin2
Copy link
Owner

wanglin2 commented Feb 6, 2023

再试试

@viki719632
Copy link
Author

可以的 完美

@995713047
Copy link

初始化只显示当天时间按照上述配置没有问题,但是一旦传入其他日期,初始时间为第一个视频播放的时间的时候,时间刻度尺就会显示其他天数的时间了,请问怎么固定就显示当天24小时的时间

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants