增加流式返回的开关
This commit is contained in:
@@ -5,6 +5,10 @@
|
||||
<img v-if="item.userType!=2" class="avatar" :src="avatar(item)" alt=""/>
|
||||
<div style="max-width: max(calc(100% - 140px), 220px)">
|
||||
<div class="content" v-html="markdown(item.content)"/>
|
||||
<div v-if="item.workflow&&item.workflow.length>0" class="process flex">
|
||||
<i :class="item.workflow[0]"/>
|
||||
<div v-html="item.workflow[1]"/>
|
||||
</div>
|
||||
<div class="attachments pointer el-icon-paperclip" v-if="item.fileName" v-text="item.fileName" @click="handleDownload(item)"/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -56,7 +60,7 @@ export default {
|
||||
mounted() {
|
||||
const {hljs, markdownit} = window
|
||||
this.md = markdownit({
|
||||
breaks: true,
|
||||
breaks: true, linkify: true, html: true,
|
||||
highlight: function (str, lang) {
|
||||
if (lang && hljs.getLanguage(lang)) {
|
||||
try {
|
||||
@@ -175,6 +179,26 @@ export default {
|
||||
margin-right: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
:deep(.process) {
|
||||
font-size: 12px;
|
||||
gap: 4px;
|
||||
|
||||
& > i {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
|
||||
&:before {
|
||||
font-size: 16px;
|
||||
color: $primaryColor;
|
||||
|
||||
&.el-icon-finished {
|
||||
color: $successColor;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.avatar {
|
||||
|
||||
Reference in New Issue
Block a user