chore: 多个内建组件添加 defineOptions 以设置组件名称

This commit is contained in:
Hooray
2025-04-07 16:21:43 +08:00
parent 5956008dbf
commit 4378226ae6
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -3,6 +3,10 @@ import type { HTMLAttributes } from 'vue'
import type { AvatarVariants } from './avatar'
import { Avatar, AvatarFallback, AvatarImage } from './avatar'
defineOptions({
name: 'FaAvatar',
})
const props = defineProps<{
src: string
fallback?: string
+4
View File
@@ -3,6 +3,10 @@ import type { SliderRootProps } from 'reka-ui'
import type { HTMLAttributes } from 'vue'
import { Slider } from './slider'
defineOptions({
name: 'FaSlider',
})
const props = withDefaults(defineProps<{
defaultValue?: SliderRootProps['defaultValue']
disabled?: SliderRootProps['disabled']