Skip to content

Commit 1100646

Browse files
committed
FaDivider 增加 class props
1 parent fabeb0d commit 1100646

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ui/components/FaDivider/index.vue

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<script setup lang="ts">
2+
import type { HTMLAttributes } from 'vue'
23
import { cn } from '@/utils'
34
45
defineOptions({
56
name: 'FaDivider',
67
})
78
8-
defineProps<{
9+
const props = defineProps<{
910
position?: 'start' | 'end'
11+
class?: HTMLAttributes['class']
1012
}>()
1113
1214
const slots = defineSlots<{
@@ -20,7 +22,7 @@ const slots = defineSlots<{
2022
'before:(flex-basis-0)': position === 'start',
2123
'after:(flex-basis-0)': position === 'end',
2224
'gap-4': !!slots.default,
23-
})"
25+
}, props.class)"
2426
>
2527
<slot />
2628
</div>

0 commit comments

Comments
 (0)