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

This commit is contained in:
lan committed 2023-08-26 19:30:05 +08:00
1 parent b64444e824
commit 7bde39f5c7
18 files changed
+21 -19

No files matched your search

+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>