@nuxt/docs-nightly 4.2.0-29355065.b51cb306 → 4.2.0-29355092.b7ccf17b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -104,13 +104,17 @@ Enables relative time formatting using the Intl.RelativeTimeFormat API:
|
|
|
104
104
|
|
|
105
105
|
When `relative` is set to `true`, the component also accepts properties from [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat):
|
|
106
106
|
|
|
107
|
+
::warning
|
|
108
|
+
Due to `style` being a reserved prop, `relativeStyle` prop is used instead.
|
|
109
|
+
::
|
|
110
|
+
|
|
107
111
|
```vue
|
|
108
112
|
<template>
|
|
109
113
|
<NuxtTime
|
|
110
114
|
:datetime="Date.now() - 3 * 24 * 60 * 60 * 1000"
|
|
111
115
|
relative
|
|
112
116
|
numeric="auto"
|
|
113
|
-
style="long"
|
|
117
|
+
relative-style="long"
|
|
114
118
|
/>
|
|
115
119
|
</template>
|
|
116
120
|
```
|