feat(default-theme): make VPButton slottable (#4689)

pull/4696/head
Alexander Lichter 5 months ago committed by GitHub
parent 1ec84c1504
commit 0b70397197
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -7,7 +7,7 @@ interface Props {
tag?: string tag?: string
size?: 'medium' | 'big' size?: 'medium' | 'big'
theme?: 'brand' | 'alt' | 'sponsor' theme?: 'brand' | 'alt' | 'sponsor'
text: string text?: string
href?: string href?: string
target?: string; target?: string;
rel?: string; rel?: string;
@ -35,7 +35,7 @@ const component = computed(() => {
:target="props.target ?? (isExternal ? '_blank' : undefined)" :target="props.target ?? (isExternal ? '_blank' : undefined)"
:rel="props.rel ?? (isExternal ? 'noreferrer' : undefined)" :rel="props.rel ?? (isExternal ? 'noreferrer' : undefined)"
> >
{{ text }} <slot>{{ text }}</slot>
</component> </component>
</template> </template>

Loading…
Cancel
Save