Skip to content

Commit 5e1d926

Browse files
committed
多个内建组件添加 defineOptions 以设置组件名称
1 parent 8eda175 commit 5e1d926

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/ui/components/FaAvatar/index.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ import type { HTMLAttributes } from 'vue'
33
import type { AvatarVariants } from './avatar'
44
import { Avatar, AvatarFallback, AvatarImage } from './avatar'
55
6+
defineOptions({
7+
name: 'FaAvatar',
8+
})
9+
610
const props = defineProps<{
711
src: string
812
fallback?: string

src/ui/components/FaSlider/index.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ import type { SliderRootProps } from 'reka-ui'
33
import type { HTMLAttributes } from 'vue'
44
import { Slider } from './slider'
55
6+
defineOptions({
7+
name: 'FaSlider',
8+
})
9+
610
const props = withDefaults(defineProps<{
711
defaultValue?: SliderRootProps['defaultValue']
812
disabled?: SliderRootProps['disabled']

0 commit comments

Comments
 (0)