|
@@ -21,7 +21,7 @@
|
|
|
<XTextButton style="float: right" :title="t('common.copy')" @click="copy(formData)" />
|
|
|
<el-scrollbar height="580">
|
|
|
<div>
|
|
|
- <pre><code v-dompurify-html="highlightedCode(formData)" class="hljs"></code></pre>
|
|
|
+ <pre><code class="hljs" v-dompurify-html="highlightedCode(formData)"></code></pre>
|
|
|
</div>
|
|
|
</el-scrollbar>
|
|
|
</div>
|
|
@@ -31,11 +31,12 @@
|
|
|
import FcDesigner from '@form-create/designer'
|
|
|
// import { useClipboard } from '@vueuse/core'
|
|
|
import { isString } from '@/utils/is'
|
|
|
-import formCreate from '@form-create/element-ui'
|
|
|
+
|
|
|
import hljs from 'highlight.js' // 导入代码高亮文件
|
|
|
import 'highlight.js/styles/github.css' // 导入代码高亮样式
|
|
|
import xml from 'highlight.js/lib/languages/java'
|
|
|
import json from 'highlight.js/lib/languages/json'
|
|
|
+import formCreate from '@form-create/element-ui'
|
|
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
const message = useMessage() // 消息
|