JsonEditor.vue
589 Bytes
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-04-04 09:52:39
-->
<template>
<el-input type="textarea" :rows="6" disabled placeholder="配置参数" v-model="xml">
</el-input>
</template>
<script>
// 引入json编译器
import { formateXml } from "@/utils/setxml.js"
export default {
data () {
return {
xml:""
}
},
props: {
resultInfo: {
type: String,
default: ''
}
},
mounted () {
this.getxml()
},
methods: {
getxml(){
this.xml=formateXml(this.resultInfo)
},
}
}
</script>