@dargmuesli/nuxt-vio 20.0.0-beta.4 → 20.0.0-beta.5
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.
|
@@ -10,24 +10,12 @@
|
|
|
10
10
|
import { reactiveOmit } from '@vueuse/core'
|
|
11
11
|
import { useForwardProps } from 'reka-ui'
|
|
12
12
|
|
|
13
|
-
import type { NuxtTimeProps } from '
|
|
13
|
+
import type { NuxtTimeProps } from 'nuxt/app'
|
|
14
14
|
|
|
15
15
|
const { locale: defaultLocale } = useI18n()
|
|
16
16
|
const defaultTimeZone = useTimeZone()
|
|
17
17
|
|
|
18
|
-
const props =
|
|
19
|
-
// ...dateTimeFormatOptions, TODO: use shared options
|
|
20
|
-
day: 'numeric',
|
|
21
|
-
hour: 'numeric',
|
|
22
|
-
locale: undefined,
|
|
23
|
-
minute: 'numeric',
|
|
24
|
-
month: 'short',
|
|
25
|
-
relative: undefined,
|
|
26
|
-
timeZone: undefined,
|
|
27
|
-
timeZoneName: undefined,
|
|
28
|
-
weekday: undefined,
|
|
29
|
-
year: 'numeric',
|
|
30
|
-
})
|
|
18
|
+
const props = defineProps<NuxtTimeProps>()
|
|
31
19
|
|
|
32
20
|
const delegatedProps = reactiveOmit(props, 'locale', 'timeZone')
|
|
33
21
|
const forwardedProps = useForwardProps(delegatedProps)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<VioTime v-bind="props" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script setup lang="ts">
|
|
6
|
+
import type { NuxtTimeProps } from 'nuxt/app'
|
|
7
|
+
|
|
8
|
+
const props = withDefaults(defineProps<NuxtTimeProps>(), {
|
|
9
|
+
day: 'numeric',
|
|
10
|
+
hour: 'numeric',
|
|
11
|
+
locale: undefined,
|
|
12
|
+
minute: 'numeric',
|
|
13
|
+
month: 'short',
|
|
14
|
+
relative: undefined,
|
|
15
|
+
timeZone: undefined,
|
|
16
|
+
timeZoneName: undefined,
|
|
17
|
+
weekday: undefined,
|
|
18
|
+
year: 'numeric',
|
|
19
|
+
})
|
|
20
|
+
</script>
|
package/package.json
CHANGED