mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 14:34:13 +08:00
输出自动换行
This commit is contained in:
parent
f80ce0ddb6
commit
3e6fa8364c
@ -17,12 +17,11 @@
|
|||||||
</q-toolbar>
|
</q-toolbar>
|
||||||
<q-card-section class="row items-center">
|
<q-card-section class="row items-center">
|
||||||
<pre
|
<pre
|
||||||
:class="runResultStatus ? '' : 'text-red'"
|
:class="{
|
||||||
v-html="runResult"
|
'text-red': !runResultStatus,
|
||||||
:style="{
|
result: 1,
|
||||||
whiteSpace: 'pre-wrap',
|
|
||||||
wordWrap: 'break-word',
|
|
||||||
}"
|
}"
|
||||||
|
v-html="runResult"
|
||||||
></pre>
|
></pre>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
<q-card-actions align="right">
|
<q-card-actions align="right">
|
||||||
@ -37,10 +36,7 @@
|
|||||||
:class="{
|
:class="{
|
||||||
'text-red': !runResultStatus,
|
'text-red': !runResultStatus,
|
||||||
'q-pa-md': 1,
|
'q-pa-md': 1,
|
||||||
}"
|
result: 1,
|
||||||
:style="{
|
|
||||||
whiteSpace: 'pre-wrap',
|
|
||||||
wordWrap: 'break-word',
|
|
||||||
}"
|
}"
|
||||||
v-html="runResult"
|
v-html="runResult"
|
||||||
></pre>
|
></pre>
|
||||||
@ -222,3 +218,12 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.result {
|
||||||
|
white-space: pre-wrap;
|
||||||
|
word-wrap: break-word;
|
||||||
|
max-width: 100%;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user