Format
This commit is contained in:
parent
7b3d625a22
commit
a7f0f7eff2
|
|
@ -1,6 +1,6 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Slot } from "radix-vue";
|
import { Slot } from 'radix-vue';
|
||||||
import { useFormField } from "./useFormField";
|
import { useFormField } from './useFormField';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
label?: string;
|
label?: string;
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from '@/lib/utils'
|
||||||
import { useId } from "radix-vue";
|
import { useId } from 'radix-vue'
|
||||||
import { type HTMLAttributes, provide } from "vue";
|
import { type HTMLAttributes, provide } from 'vue'
|
||||||
import { FORM_ITEM_INJECTION_KEY } from "./injectionKeys";
|
import { FORM_ITEM_INJECTION_KEY } from './injectionKeys'
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
class?: HTMLAttributes["class"];
|
class?: HTMLAttributes['class']
|
||||||
}>();
|
}>()
|
||||||
|
|
||||||
const id = useId();
|
const id = useId()
|
||||||
provide(FORM_ITEM_INJECTION_KEY, id);
|
provide(FORM_ITEM_INJECTION_KEY, id)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Slot } from "radix-vue";
|
import { Slot } from 'radix-vue';
|
||||||
import { useFormField } from "./useFormField";
|
import { useFormField } from './useFormField';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
label?: string;
|
label?: string;
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from '@/lib/utils'
|
||||||
import { useId } from "radix-vue";
|
import { useId } from 'radix-vue'
|
||||||
import { type HTMLAttributes, provide } from "vue";
|
import { type HTMLAttributes, provide } from 'vue'
|
||||||
import { FORM_ITEM_INJECTION_KEY } from "./injectionKeys";
|
import { FORM_ITEM_INJECTION_KEY } from './injectionKeys'
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
class?: HTMLAttributes["class"];
|
class?: HTMLAttributes['class']
|
||||||
}>();
|
}>()
|
||||||
|
|
||||||
const id = useId();
|
const id = useId()
|
||||||
provide(FORM_ITEM_INJECTION_KEY, id);
|
provide(FORM_ITEM_INJECTION_KEY, id)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user