预览 json, xml
This commit is contained in:
@ -216,15 +216,18 @@
|
||||
append-to-body
|
||||
destroy-on-close
|
||||
>
|
||||
<!-- <highlightjs
|
||||
<highlightjs
|
||||
:language="previewType"
|
||||
:code="previewResult"
|
||||
style="height: 60vh"
|
||||
/> -->
|
||||
/>
|
||||
<!-- <pre>
|
||||
<code>
|
||||
{{ previewResult }}
|
||||
</code>
|
||||
</pre> -->
|
||||
<!-- <div
|
||||
v-html="
|
||||
highlightjs.highlight(previewResult, { language: previewType }).value
|
||||
"
|
||||
v-html="highlightjs.highlight('xml', { code: previewResult }).value"
|
||||
></div> -->
|
||||
</el-dialog>
|
||||
</div>
|
||||
@ -251,7 +254,6 @@ import activitiModdleExtension from "./plugins/extension-moddle/activiti";
|
||||
import flowableModdleExtension from "./plugins/extension-moddle/flowable";
|
||||
// 引入json转换与高亮
|
||||
import convert from "xml-js";
|
||||
// import highlightjs from "@/plugins/package/highlight";
|
||||
|
||||
import { computed, onMounted, ref } from "vue";
|
||||
import { ElMessage, ElMessageBox } from "element-plus";
|
||||
@ -652,5 +654,5 @@ function previewProcessJson() {
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
@import "highlight.js/styles/atom-one-dark-reasonable.css";
|
||||
/* @import "highlight.js/styles/atom-one-dark-reasonable.css"; */
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user