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