chore: use object for dynamic class

pull/4492/head
yuyinws 8 months ago
parent 88def195d9
commit e6864c7e43
No known key found for this signature in database
GPG Key ID: 066DDFA8B76EA147

@ -10,9 +10,9 @@ const { frontmatter, theme } = useData()
<template> <template>
<div <div
class="VPHome" class="VPHome"
:class="[ :class="{
theme.externalLinkIcon && 'external-link-icon-enabled' 'external-link-icon-enabled': theme.externalLinkIcon
]"> }">
<slot name="home-hero-before" /> <slot name="home-hero-before" />
<VPHomeHero> <VPHomeHero>
<template #home-hero-info-before><slot name="home-hero-info-before" /></template> <template #home-hero-info-before><slot name="home-hero-info-before" /></template>

Loading…
Cancel
Save