mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
parent
98a969c112
commit
5a73b59297
@ -21,14 +21,14 @@ const iconName = computed<string | { svg: string }>(() => {
|
||||
<template>
|
||||
<article class="vp-card-wrapper">
|
||||
<slot name="title">
|
||||
<p v-if="title || icon" class="title">
|
||||
<header v-if="title || icon" class="title">
|
||||
<VPIcon v-if="icon" :name="iconName" />
|
||||
<span v-if="title" class="text" v-html="title" />
|
||||
</p>
|
||||
</header>
|
||||
</slot>
|
||||
<div class="body">
|
||||
<section class="body">
|
||||
<slot />
|
||||
</div>
|
||||
</section>
|
||||
</article>
|
||||
</template>
|
||||
|
||||
@ -68,6 +68,7 @@ const iconName = computed<string | { svg: string }>(() => {
|
||||
|
||||
.vp-card-wrapper .title .text {
|
||||
flex: 1 2;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user