@nuxt/docs-nightly 4.2.0-29351098.ba0dfebc → 4.2.0-29354707.56a257a7
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
|
```
|
package/3.api/6.nuxt-config.md
CHANGED
|
@@ -719,7 +719,8 @@ Configure shared esbuild options used within Nuxt and passed to other builders,
|
|
|
719
719
|
|
|
720
720
|
## experimental
|
|
721
721
|
|
|
722
|
-
::read-more{to="/docs/4.x/guide/going-further/experimental-features"}
|
|
722
|
+
::read-more{to="/docs/4.x/guide/going-further/experimental-features"}
|
|
723
|
+
Learn more about Nuxt's experimental features.
|
|
723
724
|
::
|
|
724
725
|
|
|
725
726
|
## extends
|
|
@@ -752,12 +753,14 @@ The extensions that should be resolved by the Nuxt resolver.
|
|
|
752
753
|
|
|
753
754
|
## features
|
|
754
755
|
|
|
755
|
-
::read-more{to="/docs/4.x/guide/going-further/features#features"}
|
|
756
|
+
::read-more{to="/docs/4.x/guide/going-further/features#features"}
|
|
757
|
+
Learn more about Nuxt's opt-in features.
|
|
756
758
|
::
|
|
757
759
|
|
|
758
760
|
## future
|
|
759
761
|
|
|
760
|
-
::read-more{to="/docs/4.x/guide/going-further/features#features"}
|
|
762
|
+
::read-more{to="/docs/4.x/guide/going-further/features#features"}
|
|
763
|
+
Learn more about opting-in to new features that will become default in a future (possibly major) version of the framework.
|
|
761
764
|
::
|
|
762
765
|
|
|
763
766
|
## hooks
|