-
Notifications
You must be signed in to change notification settings - Fork 890
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
feat(Home): Change the lastUpdateTime
format to relative time.
#1590
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
配置成开关, 可切换
对齐方式
所以我认为居中更合适 是否需要做成选项基于这个数据的内容是
所以我认为 相对时间 应该是一个默认选项,而 绝对时间 因为并没有太多意义,不需要做成选项让其可以一直显示,但基于方便,放到 |
|
|
确定 1 后我把选项加上再 pr |
<v-btn depressed small class="lastUpdateTime" | ||
:to="`statistic/${props.item.host}`" :title="$t('home.statistic')"> | ||
{{ props.item.user.lastUpdateTime | formatDate("YYYY-MM-DD HH:mm:ss") }} | ||
<td v-if="showColumn('user.lastUpdateTime')" class="center"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
试了一下, 居中只和这个有关... (没发现你上面发的对比图都是一样的吗
样式上居中确实是比其他好点
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
选项你看着加吧, 默认启用就行. 不好加或者加完了, @我 merge 就行
@IITII
|
将首页的 最后一次数据更新时间 修改为相对时间,绝对时间放置到 title 里面
before

after
