Skip to content

Commit 231fa13

Browse files
committed
fix: fix annotation
1 parent 96faec2 commit 231fa13

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

components/PageInfo.vue

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,18 @@ export default {
5858
if (!value) return ''
5959
// 返回的value的值都是这个样子2019-09-20T18:22:30.000Z
6060
// 对value进行处理
61-
value = value.replace('T', ' ').slice(0,value.lastIndexOf('.'))
61+
value = value.replace('T', ' ').slice(0, value.lastIndexOf('.'))
6262
// 转化后的value 2019-09-20 18:22:30
63-
// 判断时分秒是不是 00:00:00 (如果是用户手动输入的00:00:00也会不显示)
63+
// 获取到时分秒
6464
const h = Number(value.substr(11, 2))
6565
const m = Number(value.substr(14, 2))
6666
const s = Number(value.substr(17, 2))
67+
// 判断时分秒是不是 00:00:00 (如果是用户手动输入的00:00:00也会不显示)
6768
// 时分秒有一个> 0 就说明用户输入一个非 00:00:00 的时分秒
6869
if (h > 0 || m > 0 || s > 0) {
69-
70+
7071
return fromatDateTime(value)
71-
}else {
72+
} else {
7273
// 用户没有输入或者输入了 00:00:00
7374
return new Date(value).toLocaleDateString()
7475
}
@@ -84,25 +85,23 @@ export default {
8485
</script>
8586

8687
<style lang="stylus" scoped>
87-
8888
.iconfont
8989
display inline-block
9090
line-height 1.5rem
9191
&:not(:last-child)
9292
margin-right 1rem
9393
span
94-
margin-left .5rem
94+
margin-left 0.5rem
9595
.tags
9696
.tag-item
97-
cursor: pointer;
98-
font-family Ubuntu, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif
97+
cursor pointer
98+
font-family Ubuntu, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif
9999
&.active
100100
color $accentColor
101101
&:hover
102102
color $accentColor
103-
104103
@media (max-width: $MQMobile)
105104
.tags
106105
display block
107-
margin-left: 0!important;
106+
margin-left 0 !important
108107
</style>

0 commit comments

Comments
 (0)