Skip to content

vue-i18n / general / DatetimeFormat

类型别名: DatetimeFormat()

ts
type DatetimeFormat = () => object;

日期时间格式化组件

返回值

object

$props

ts
$props: VNodeProps & DatetimeFormatProps & BaseFormatProps;

备注

有关属性详情,请查看以下项目:

CAUTION

不支持 IE,因为 IE 中不支持 Intl.DateTimeFormat#formatToParts

如果你想使用它,你需要使用 polyfill

Vue I18n 组件