GitHub

Original file line numberDiff line numberDiff line change

@@ -65,6 +65,8 @@ import { tv } from '../utils/tv'

6565

import UIcon from './Icon.vue'

6666

import UAvatar from './Avatar.vue'

6767
68+

defineOptions({ inheritAttrs: false })

69+
6870

const _props = withDefaults(defineProps<SeparatorProps>(), {

6971

orientation: 'horizontal',

7072

position: 'center'

@@ -102,7 +104,7 @@ const ui = computed(() => tv({ extend: tv(theme), ...(appConfig.ui?.separator ||

102104

</div>

103105

</DefineContainer>

104106
105-

<Separator v-bind="rootProps" data-slot="root" :class="ui.root({ class: [props.ui?.root, props.class] })">

107+

<Separator v-bind="{ ...rootProps, ...$attrs }" data-slot="root" :class="ui.root({ class: [props.ui?.root, props.class] })">

106108

<ReuseContainer v-if="hasContent && props.position === 'start'" />

107109
108110

<div data-slot="border" :class="ui.border({ class: props.ui?.border })" />

Read the original on github.com ↗