perf: Optimization codemirror title
This commit is contained in:
parent
dc79a22ba3
commit
e8c559580a
@ -16,12 +16,7 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<!-- Codemirror 弹出层 -->
|
<!-- Codemirror 弹出层 -->
|
||||||
<el-dialog
|
<el-dialog v-model="dialogVisible" :title="title" append-to-body fullscreen>
|
||||||
v-model="dialogVisible"
|
|
||||||
:title="$t('views.functionLib.functionForm.form.param.code')"
|
|
||||||
append-to-body
|
|
||||||
fullscreen
|
|
||||||
>
|
|
||||||
<Codemirror
|
<Codemirror
|
||||||
v-model="cloneContent"
|
v-model="cloneContent"
|
||||||
:extensions="extensions"
|
:extensions="extensions"
|
||||||
@ -54,6 +49,7 @@ import FunctionApi from '@/api/function-lib'
|
|||||||
defineOptions({ name: 'CodemirrorEditor' })
|
defineOptions({ name: 'CodemirrorEditor' })
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
|
title: String
|
||||||
modelValue: any
|
modelValue: any
|
||||||
}>()
|
}>()
|
||||||
const emit = defineEmits(['update:modelValue', 'submitDialog'])
|
const emit = defineEmits(['update:modelValue', 'submitDialog'])
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<!-- Codemirror 弹出层 -->
|
<!-- Codemirror 弹出层 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
v-model="dialogVisible"
|
v-model="dialogVisible"
|
||||||
:title="$t('views.functionLib.functionForm.form.param.code')"
|
:title="$t('dynamicsForm.default.label')"
|
||||||
append-to-body
|
append-to-body
|
||||||
fullscreen
|
fullscreen
|
||||||
>
|
>
|
||||||
|
|||||||
@ -134,7 +134,11 @@
|
|||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<div class="mb-8" v-if="showEditor">
|
<div class="mb-8" v-if="showEditor">
|
||||||
<CodemirrorEditor v-model="form.code" @submitDialog="submitCodemirrorEditor" />
|
<CodemirrorEditor
|
||||||
|
:title="$t('views.functionLib.functionForm.form.param.code')"
|
||||||
|
v-model="form.code"
|
||||||
|
@submitDialog="submitCodemirrorEditor"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<h4 class="title-decoration-1 mb-16 mt-16">
|
<h4 class="title-decoration-1 mb-16 mt-16">
|
||||||
{{ $t('common.param.outputParam') }}
|
{{ $t('common.param.outputParam') }}
|
||||||
|
|||||||
@ -79,6 +79,7 @@
|
|||||||
</h5>
|
</h5>
|
||||||
<div class="mb-8" v-if="showEditor">
|
<div class="mb-8" v-if="showEditor">
|
||||||
<CodemirrorEditor
|
<CodemirrorEditor
|
||||||
|
:title="$t('views.functionLib.functionForm.form.param.code')"
|
||||||
v-model="chat_data.code"
|
v-model="chat_data.code"
|
||||||
@wheel="wheel"
|
@wheel="wheel"
|
||||||
style="height: 130px !important"
|
style="height: 130px !important"
|
||||||
|
|||||||
@ -118,6 +118,7 @@
|
|||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
<CodemirrorEditor
|
<CodemirrorEditor
|
||||||
|
title="JSON"
|
||||||
v-model="item.value"
|
v-model="item.value"
|
||||||
:style="{
|
:style="{
|
||||||
height: '100px'
|
height: '100px'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user