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

View File

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