-
Notifications
You must be signed in to change notification settings - Fork 138
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
如何添加一条每天23时59分59秒的时间线 #106
Comments
这个不能满足要求吗? |
我改的是源码。。。已经加了一条23:59:59了,但只是当天的。。。能不能让动态的时间轴每天都加一条 |
zeroTime: dayjs().endOf("day").toString(),这样能获取到当天的。如何让每天都加一条上去,烦请指教 |
你传递开始结束时间的时候,顺便用computed 计算出每天的时间线可以吗 |
不行,烦请明示怎么操作。 |
没起效是什么情况?用devtools打印出计算出的每天的时间线看看正不正确。然后在看传递的到对应子组件的正不正确。 |
在gantt.vue里面写computed是么?我写了一条:
然后如何传递给对应的子组件,用props?还是用provide? |
明显不太对吧。你这样的zeroTime 是数组吗?不应该是 const { scale, start,end } = this;
const endOfDays=[]
while(start<end){
endOfDays.push(start.endOf('day')
start.add(1,'day')
}
return endOfDays 大概这么个意思 |
嗯,好的,谢谢大神,这么加可能会很卡,我再看下吧,谢谢指导。 |
目前暂时只加载两周的时间线 currentTime组件的markline写法是:return this.getPositonOffset(this.timeConfig.time); 然后我另写一个markline是这么写: |
markline 一次只能渲染一条是没有问题的。不应该是v-for 循环渲染多条markline吗? |
解决了。。。谢谢大神指导 |
每天都要画一条分隔线,烦请指点
The text was updated successfully, but these errors were encountered: