mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 06:16:27 +08:00
输出自动换行
This commit is contained in:
parent
724e969f07
commit
9d21495faa
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user