成绩报告展示一样

dev_2022-05-11
e 3 years ago
parent 082e282264
commit 762b73ad39
  1. 16
      src/pages/achievement/show/index.vue

@ -87,8 +87,8 @@
<span>{{index+1}}. </span>{{item.userAnswer}} <span>{{index+1}}. </span>{{item.userAnswer}}
</div> </div>
</div> </div>
<div v-else> <div v-else v-html='scope.row.answer' style='white-space: pre-wrap'>
{{scope.row.answer}} <!-- {{scope.row.answer}}-->
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@ -486,4 +486,16 @@ export default {
padding-top: 20px; padding-top: 20px;
border-top: 1px dashed #ccc; border-top: 1px dashed #ccc;
} }
pre {
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
word-break:break-all;
overflow:hidden;
font-size: 12px;
font-weight:400;
font-family:'PingFang SC', "Helvetica Neue", Helvetica, "microsoft yahei", arial, STHeiTi, sans-serif
}
</style> </style>
Loading…
Cancel
Save