egoist / vue-timeago

A timeago component for Vue.
https://vue-timeago.egoist.sh
MIT License
729 stars 104 forks source link

[question] Is `format` not supported at v4? #77

Closed zhandao closed 6 years ago

zhandao commented 6 years ago

请问 v4 不支持 format 了?

egoist commented 6 years ago

format exists because of max-time exists, but there does not seem to be many use cases for max-time so I removed both, we can sure add it back if needed.

zhandao commented 6 years ago

I see.

zhandao commented 6 years ago

(At least I need it.)

egoist commented 6 years ago

Can you elaborate your use case?

zhandao commented 6 years ago

OK. For UX, I set max-time to half a day, in format handler, I render the time (0.5 < time <= 1 days) as: today 22:45 / yesterday 18:30.