add:新增背景图片设置,新增文本markdown解析

This commit is contained in:
lan
2023-08-26 19:30:05 +08:00
parent b64444e824
commit 7bde39f5c7
18 changed files with 21 additions and 19 deletions
+4 -2
View File
@@ -37,7 +37,7 @@ const copyText = (text: any, style = 0) => {
const nowText = ref('');
const showTextDetail = (text: any) => {
showTextDetailVisible.value = true;
nowText.value = renderMarkdown(text);
nowText.value = text;
};
const showTextDetailVisible = ref(false);
@@ -70,9 +70,11 @@ function renderMarkdown(message: string) {
append-to-body
align-center
title="文本详情"
width="70%"
style="height: 70%;overflow-y: scroll"
v-model="showTextDetailVisible"
>
<div v-html="nowText"></div>
<div style="max-width: 100%;overflow-y: scroll" v-html="renderMarkdown(nowText)"></div>
<template #footer>
<el-button type="success" @click="copyText(nowText);showTextDetailVisible = false"> </el-button>
<el-button type="primary" @click="showTextDetailVisible = false"> </el-button>