|
@@ -35,9 +35,13 @@
|
|
|
<el-input
|
|
|
:key="k"
|
|
|
v-model="li.content"
|
|
|
+ :disabled="disabled"
|
|
|
:class="['fill', ...computedAnswerClass(mark, li.mark)]"
|
|
|
placeholder="请输入"
|
|
|
- :style="[{ width: Math.max(80, li.content.length * 16) + 'px' }]"
|
|
|
+ :style="[
|
|
|
+ { cursor: disabled ? 'not-allowed' : 'pointer' },
|
|
|
+ { width: Math.max(80, li.content.length * 16) + 'px' },
|
|
|
+ ]"
|
|
|
/>
|
|
|
<span
|
|
|
v-show="computedAnswerText(mark, li.mark).length > 0"
|
|
@@ -51,8 +55,12 @@
|
|
|
<el-input
|
|
|
:key="k"
|
|
|
v-model="li.content"
|
|
|
+ :disabled="disabled"
|
|
|
:class="['input', ...computedAnswerClass(mark, li.mark)]"
|
|
|
- :style="[{ width: Math.max(80, li.content.length * 16) + 'px' }]"
|
|
|
+ :style="[
|
|
|
+ { cursor: disabled ? 'not-allowed' : 'pointer' },
|
|
|
+ { width: Math.max(80, li.content.length * 16) + 'px' },
|
|
|
+ ]"
|
|
|
/>
|
|
|
<span
|
|
|
v-show="computedAnswerText(mark, li.mark).length > 0"
|