fix: 测试用例测试步骤没有显示换行

This commit is contained in:
chenjianxing 2020-07-29 17:25:16 +08:00
parent 9d8a56dec3
commit 09081ba2d5
2 changed files with 5 additions and 5 deletions

View File

@ -145,7 +145,7 @@
v-model="scope.row.desc" v-model="scope.row.desc"
:placeholder="$t('commons.input_content')" :placeholder="$t('commons.input_content')"
clearable></el-input> clearable></el-input>
<span>{{scope.row.desc}}</span> <pre>{{scope.row.desc}}</pre>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('test_track.case.expected_results')" prop="result" min-width="35%"> <el-table-column :label="$t('test_track.case.expected_results')" prop="result" min-width="35%">
@ -159,7 +159,7 @@
v-model="scope.row.result" v-model="scope.row.result"
:placeholder="$t('commons.input_content')" :placeholder="$t('commons.input_content')"
clearable></el-input> clearable></el-input>
<span>{{scope.row.result}}</span> <pre>{{scope.row.result}}</pre>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('commons.input_content')" min-width="15%"> <el-table-column :label="$t('commons.input_content')" min-width="15%">

View File

@ -128,12 +128,12 @@
<el-table-column :label="$t('test_track.case.step_desc')" prop="desc" min-width="21%"> <el-table-column :label="$t('test_track.case.step_desc')" prop="desc" min-width="21%">
<template v-slot:default="scope"> <template v-slot:default="scope">
<span>{{scope.row.desc}}</span> <pre>{{scope.row.desc}}</pre>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('test_track.case.expected_results')" prop="result" min-width="21%"> <el-table-column :label="$t('test_track.case.expected_results')" prop="result" min-width="21%">
<template v-slot:default="scope"> <template v-slot:default="scope">
<span>{{scope.row.result}}</span> <pre>{{scope.row.result}}</pre>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('test_track.plan_view.actual_result')" min-width="21%"> <el-table-column :label="$t('test_track.plan_view.actual_result')" min-width="21%">
@ -147,7 +147,7 @@
v-model="scope.row.actualResult" v-model="scope.row.actualResult"
:placeholder="$t('commons.input_content')" :placeholder="$t('commons.input_content')"
clearable></el-input> clearable></el-input>
<span>{{scope.row.actualResult}}</span> <pre>{{scope.row.actualResult}}</pre>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('test_track.plan_view.step_result')" min-width="12%"> <el-table-column :label="$t('test_track.plan_view.step_result')" min-width="12%">