fix
This commit is contained in:
@@ -86,16 +86,15 @@ function inputWidth(idx: number): string {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<n-card
|
<n-card
|
||||||
size="small"
|
|
||||||
style="margin: 16px 0; border: 1.5px solid var(--n-border-color)"
|
style="margin: 16px 0; border: 1.5px solid var(--n-border-color)"
|
||||||
>
|
>
|
||||||
<template #header>
|
<template #header>
|
||||||
<n-tag type="warning" size="small" :bordered="false"
|
<n-tag type="warning" :bordered="false"
|
||||||
>练一练 · 代码填空</n-tag
|
>练一练 · 代码填空</n-tag
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<p style="font-weight: 500; margin-bottom: 12px">{{ data.question }}</p>
|
<p style="font-weight: 500; font-size: 16px; margin-bottom: 12px">{{ data.question }}</p>
|
||||||
|
|
||||||
<pre
|
<pre
|
||||||
:style="{
|
:style="{
|
||||||
@@ -148,13 +147,12 @@ function inputWidth(idx: number): string {
|
|||||||
<n-space style="margin-top: 12px" :size="8">
|
<n-space style="margin-top: 12px" :size="8">
|
||||||
<n-button
|
<n-button
|
||||||
type="warning"
|
type="warning"
|
||||||
size="small"
|
|
||||||
:disabled="allCorrect"
|
:disabled="allCorrect"
|
||||||
@click="submit"
|
@click="submit"
|
||||||
>
|
>
|
||||||
提交
|
提交
|
||||||
</n-button>
|
</n-button>
|
||||||
<n-button size="small" @click="reset">重置</n-button>
|
<n-button @click="reset">重置</n-button>
|
||||||
</n-space>
|
</n-space>
|
||||||
</n-card>
|
</n-card>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -64,18 +64,17 @@ function optionType(idx: number): "default" | "primary" | "success" {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<n-card
|
<n-card
|
||||||
size="small"
|
|
||||||
style="margin: 16px 0; border: 1.5px solid var(--n-border-color)"
|
style="margin: 16px 0; border: 1.5px solid var(--n-border-color)"
|
||||||
>
|
>
|
||||||
<template #header>
|
<template #header>
|
||||||
<n-space align="center" :size="8">
|
<n-space align="center" :size="8">
|
||||||
<n-tag type="success" size="small" :bordered="false">
|
<n-tag type="success" :bordered="false">
|
||||||
练一练 · {{ isSingle ? "单选题" : "多选题" }}
|
练一练 · {{ isSingle ? "单选题" : "多选题" }}
|
||||||
</n-tag>
|
</n-tag>
|
||||||
</n-space>
|
</n-space>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<p style="font-weight: 500; margin-bottom: 12px">{{ data.question }}</p>
|
<p style="font-weight: 500; font-size: 16px; margin-bottom: 12px">{{ data.question }}</p>
|
||||||
|
|
||||||
<n-space vertical :size="8">
|
<n-space vertical :size="8">
|
||||||
<n-button
|
<n-button
|
||||||
@@ -113,13 +112,12 @@ function optionType(idx: number): "default" | "primary" | "success" {
|
|||||||
<n-space style="margin-top: 12px" :size="8">
|
<n-space style="margin-top: 12px" :size="8">
|
||||||
<n-button
|
<n-button
|
||||||
type="primary"
|
type="primary"
|
||||||
size="small"
|
|
||||||
:disabled="selected.size === 0 || correct"
|
:disabled="selected.size === 0 || correct"
|
||||||
@click="submit"
|
@click="submit"
|
||||||
>
|
>
|
||||||
提交
|
提交
|
||||||
</n-button>
|
</n-button>
|
||||||
<n-button size="small" @click="reset">重置</n-button>
|
<n-button @click="reset">重置</n-button>
|
||||||
</n-space>
|
</n-space>
|
||||||
</n-card>
|
</n-card>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -102,16 +102,15 @@ const lineHtmlMap = computed<Record<number, string>>(() => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<n-card
|
<n-card
|
||||||
size="small"
|
|
||||||
style="margin: 16px 0; border: 1.5px solid var(--n-border-color)"
|
style="margin: 16px 0; border: 1.5px solid var(--n-border-color)"
|
||||||
>
|
>
|
||||||
<template #header>
|
<template #header>
|
||||||
<n-tag type="info" size="small" :bordered="false"
|
<n-tag type="info" :bordered="false"
|
||||||
>练一练 · 代码排序</n-tag
|
>练一练 · 代码排序</n-tag
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<p style="font-weight: 500; margin-bottom: 12px">{{ data.question }}</p>
|
<p style="font-weight: 500; font-size: 16px; margin-bottom: 12px">{{ data.question }}</p>
|
||||||
|
|
||||||
<n-space vertical :size="6">
|
<n-space vertical :size="6">
|
||||||
<div
|
<div
|
||||||
@@ -160,13 +159,12 @@ const lineHtmlMap = computed<Record<number, string>>(() => {
|
|||||||
<n-space style="margin-top: 12px" :size="8">
|
<n-space style="margin-top: 12px" :size="8">
|
||||||
<n-button
|
<n-button
|
||||||
type="info"
|
type="info"
|
||||||
size="small"
|
|
||||||
:disabled="submitted && allCorrect"
|
:disabled="submitted && allCorrect"
|
||||||
@click="submit"
|
@click="submit"
|
||||||
>
|
>
|
||||||
提交
|
提交
|
||||||
</n-button>
|
</n-button>
|
||||||
<n-button size="small" @click="reset">重置</n-button>
|
<n-button @click="reset">重置</n-button>
|
||||||
</n-space>
|
</n-space>
|
||||||
</n-card>
|
</n-card>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user