fix[create]: 预览题目统一

- 预览题目跟随pc, 取 title 值
This commit is contained in:
Huangzhe
2025-03-23 17:40:09 +08:00
parent 678c0cd6e2
commit 0d8123ffda
22 changed files with 77 additions and 166 deletions

View File

@@ -1,10 +1,6 @@
<template>
<input
type="checkbox"
:name="`R${rowIndex + 1}`"
:checked="isOptionChecked(rowIndex, colIndex)"
@change="handleMatrixCheckboxChange(rowIndex, colIndex)"
/>
<input type="checkbox" :name="`R${rowIndex + 1}`" :checked="isOptionChecked(rowIndex, colIndex)"
@change="handleMatrixCheckboxChange(rowIndex, colIndex)" />
</template>
<script setup lang="ts">
@@ -35,7 +31,7 @@ const isOptionChecked = (rowIndex: number, colIndex: number): boolean => {
};
// 当 matrix radio 选中时,更新 rowRecord 和 matrixAnswer
function handleMatrixCheckboxChange(row: number, col: number) {
function handleMatrixCheckboxChange (row: number, col: number) {
// 获取 colIndexArray
if (!rowRecord.value[row]) {
// 如果没有对应的row创建一个