spoiler tag
This commit is contained in:
1 parent
9e8aeb04a1
commit
d73dee6410
6 files changed
+301
-33
No files matched your search
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<details>
|
||||
<summary :class="$style.summary">{{ summary }}</summary>
|
||||
<blockquote>
|
||||
<blockquote :class="$style.inner">
|
||||
<slot />
|
||||
</blockquote>
|
||||
</details>
|
||||
@@ -17,4 +17,8 @@ defineProps<{
|
||||
.summary {
|
||||
margin-top: -1em !important;
|
||||
}
|
||||
|
||||
.inner p {
|
||||
margin: 16px 0;
|
||||
}
|
||||
</style>
|
||||
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<span>
|
||||
<span ref="main">
|
||||
<span ref="main" :class="class">
|
||||
<slot />
|
||||
</span>
|
||||
<span>
|
||||
<button type="button" @click="playAudio()">▶️</button>
|
||||
<button type="button" @click="playAudio()">🎤︎︎</button>
|
||||
</span>
|
||||
</span>
|
||||
</template>
|
||||
@@ -13,6 +13,7 @@
|
||||
import { useTemplateRef } from "vue";
|
||||
|
||||
const { lang = "ko" } = defineProps<{
|
||||
class?: string;
|
||||
lang?: string;
|
||||
}>();
|
||||
|
||||
|
||||
Reference in new issue
Block a user