@nuxt/docs-nightly 4.2.0-29354871.cd12980c → 4.2.0-29355065.b51cb306
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,17 +104,13 @@ 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
|
-
|
|
111
107
|
```vue
|
|
112
108
|
<template>
|
|
113
109
|
<NuxtTime
|
|
114
110
|
:datetime="Date.now() - 3 * 24 * 60 * 60 * 1000"
|
|
115
111
|
relative
|
|
116
112
|
numeric="auto"
|
|
117
|
-
|
|
113
|
+
style="long"
|
|
118
114
|
/>
|
|
119
115
|
</template>
|
|
120
116
|
```
|