提交 c9507678 编写于 作者: A Alfredo Sumaran

Show seconds only if time is only in seconds

上级 cdafef9b
......@@ -10,7 +10,7 @@
<template v-if="time.days">{{ time.days }} <span>{{ time.days === 1 ? 'day' : 'days' }}</span></template>
<template v-if="time.hours">{{ time.hours }} <span>hr</span></template>
<template v-if="time.mins">{{ time.mins }} <span>mins</span></template>
<template v-if="time.seconds && !time.mins">{{ time.seconds }} <span>s</span></template>
<template v-if="time.seconds && Object.keys(time).length === 1">{{ time.seconds }} <span>s</span></template>
</span>
`,
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册