yaml referential and lesson 10 quiz
This commit is contained in:
1 parent
b992d81733
commit
614432579b
4 files changed
+302
-7
No files matched your search
@@ -51,11 +51,12 @@
|
||||
/>
|
||||
</summary>
|
||||
<SentenceAudio v-if="example" :v="example" lang="en" />
|
||||
<blockquote
|
||||
v-if="v.notes"
|
||||
v-html="v.notes"
|
||||
:class="$style.notes"
|
||||
></blockquote>
|
||||
<blockquote v-if="v.notes" :class="$style.notes">
|
||||
<div v-if="Array.isArray(v.notes)">
|
||||
<div v-for="(n, i) in v.notes" :key="i" v-html="n"></div>
|
||||
</div>
|
||||
<div v-else v-html="v.notes"></div>
|
||||
</blockquote>
|
||||
</details>
|
||||
</nav>
|
||||
<details :class="$style.options">
|
||||
|
||||
@@ -7,7 +7,7 @@ export const Voc = z.object({
|
||||
get usage() {
|
||||
return z.array(Voc).optional();
|
||||
},
|
||||
notes: z.string().optional(),
|
||||
notes: z.union([z.string(), z.array(z.string())]).optional(),
|
||||
get examples() {
|
||||
return z.array(Voc).optional();
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user