fix[create]: 预览题目统一
- 预览题目跟随pc, 取 title 值
This commit is contained in:
@@ -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,创建一个
|
||||
|
||||
Reference in New Issue
Block a user