chore: update

This commit is contained in:
sadeghbarati 2024-03-13 10:52:10 +03:30
parent 7b4cd65147
commit 5b684fe162
2 changed files with 4 additions and 12 deletions

View File

@ -1,13 +1,9 @@
<script lang="ts" setup>
import type { HTMLAttributes } from 'vue'
import type { PrimitiveProps } from 'radix-vue'
import { Primitive, type PrimitiveProps } from 'radix-vue'
import { cn } from '@/lib/utils'
interface Props extends PrimitiveProps {
as?: string
class?: HTMLAttributes['class']
}
const props = withDefaults(defineProps<Props>(), {
const props = withDefaults(defineProps<PrimitiveProps & { class?: HTMLAttributes['class'] }>(), {
as: 'a',
})
</script>

View File

@ -1,13 +1,9 @@
<script lang="ts" setup>
import type { HTMLAttributes } from 'vue'
import type { PrimitiveProps } from 'radix-vue'
import { Primitive, type PrimitiveProps } from 'radix-vue'
import { cn } from '@/lib/utils'
interface Props extends PrimitiveProps {
as?: string
class?: HTMLAttributes['class']
}
const props = withDefaults(defineProps<Props>(), {
const props = withDefaults(defineProps<PrimitiveProps & { class?: HTMLAttributes['class'] }>(), {
as: 'a',
})
</script>