Skip to content

FsTimeHumanize

日期人性化格式展示组件 例如几天前,几分钟前,几个小时前

Props

Prop nameDescriptionTypeValuesDefault
modelValue日期时间值,支持 long,string,date 等,由 dayjs 转化undefined-undefined
valueFormat输入格式化,不传则由 dayjs 自动转化string-undefined
format日期输出格式化string-"YYYY-MM-DD HH:mm:ss"
useFormatGreater距离时间超过多少毫秒时,直接使用 format 格式,默认大于 3 天后number-1000 _ 60 _ 60 _ 24 _ 3
optionsHumanizeDuration 参数HumanizerOptions-
text前后文本
{ prev: string; after: string }
-