This commit is contained in:
sc 2021-10-08 10:33:21 +08:00
parent 49a19aef5e
commit fb633de087
2 changed files with 0 additions and 47 deletions

View File

@ -1,42 +0,0 @@
<!--
* @Descripttion: 封装的codemirror
* @version: 1.0
* @Author: sakuya
* @Date: 2021年9月28日15:02:19
* @LastEditors:
* @LastEditTime:
-->
<template>
<div class="sc-code">
<textarea v-html="code" wrap="off" rows="10"></textarea>
</div>
</template>
<script>
export default {
props: {
modelValue: [String, Object, Array],
},
data() {
return {
code: ""
}
},
watch: {
code(val){
this.$emit('update:modelValue', JSON.parse(val));
},
},
mounted() {
this.code = JSON.stringify(this.modelValue, null, 4)
},
methods: {
}
}
</script>
<style scoped>
.sc-code textarea {width: 100%;font-size: 12px;padding:15px;}
</style>

View File

@ -33,13 +33,8 @@
</template>
<script>
//import scCode from '@/components/scCode';
export default {
name: 'formRender',
components: {
//scCode
},
data() {
return {
loading: false,