输出自动换行

This commit is contained in:
fofolee 2022-04-19 15:13:34 +08:00
parent 724e969f07
commit 9d21495faa

View File

@ -16,11 +16,14 @@
>
</q-toolbar>
<q-card-section class="row items-center">
<div
style="white-space: pre"
<pre
:class="runResultStatus ? '' : 'text-red'"
v-html="runResult"
></div>
:style="{
whiteSpace: 'pre-wrap',
wordWrap: 'break-word',
}"
></pre>
</q-card-section>
<q-card-actions align="right">
<q-btn flat label="关闭" color="primary" v-close-popup />
@ -29,15 +32,18 @@
</q-dialog>
</div>
<div v-else>
<div
<pre
v-show="!!runResult"
:class="{
'text-red': !runResultStatus,
'q-pa-md': 1,
}"
style="white-space: pre"
:style="{
whiteSpace: 'pre-wrap',
wordWrap: 'break-word',
}"
v-html="runResult"
></div>
></pre>
</div>
</div>
</template>