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>
<div
class="VPHome"
:class="[
theme.externalLinkIcon && 'external-link-icon-enabled'
]">
:class="{
'external-link-icon-enabled': theme.externalLinkIcon
}">
<slot name="home-hero-before" />
<VPHomeHero>
<template #home-hero-info-before><slot name="home-hero-info-before" /></template>

Loading…
Cancel
Save