File tree Expand file tree Collapse file tree 5 files changed +10
-8
lines changed
views/function-lib/component Expand file tree Collapse file tree 5 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1616 </el-button >
1717 </div >
1818 <!-- Codemirror 弹出层 -->
19- <el-dialog
20- v-model =" dialogVisible"
21- :title =" $t('views.functionLib.functionForm.form.param.code')"
22- append-to-body
23- fullscreen
24- >
19+ <el-dialog v-model =" dialogVisible" :title =" title" append-to-body fullscreen >
2520 <Codemirror
2621 v-model =" cloneContent"
2722 :extensions =" extensions"
@@ -54,6 +49,7 @@ import FunctionApi from '@/api/function-lib'
5449defineOptions ({ name: ' CodemirrorEditor' })
5550
5651const props = defineProps <{
52+ title: String
5753 modelValue: any
5854}>()
5955const emit = defineEmits ([' update:modelValue' , ' submitDialog' ])
Original file line number Diff line number Diff line change 2222 <!-- Codemirror 弹出层 -->
2323 <el-dialog
2424 v-model =" dialogVisible"
25- :title =" $t('views.functionLib.functionForm.form.param.code ')"
25+ :title =" $t('dynamicsForm.default.label ')"
2626 append-to-body
2727 fullscreen
2828 >
Original file line number Diff line number Diff line change 134134 </h4 >
135135
136136 <div class =" mb-8" v-if =" showEditor" >
137- <CodemirrorEditor v-model =" form.code" @submitDialog =" submitCodemirrorEditor" />
137+ <CodemirrorEditor
138+ :title =" $t('views.functionLib.functionForm.form.param.code')"
139+ v-model =" form.code"
140+ @submitDialog =" submitCodemirrorEditor"
141+ />
138142 </div >
139143 <h4 class =" title-decoration-1 mb-16 mt-16" >
140144 {{ $t('common.param.outputParam') }}
Original file line number Diff line number Diff line change 7979 </h5 >
8080 <div class =" mb-8" v-if =" showEditor" >
8181 <CodemirrorEditor
82+ :title =" $t('views.functionLib.functionForm.form.param.code')"
8283 v-model =" chat_data.code"
8384 @wheel =" wheel"
8485 style =" height : 130px !important "
Original file line number Diff line number Diff line change 118118 ]"
119119 >
120120 <CodemirrorEditor
121+ title =" JSON"
121122 v-model =" item.value"
122123 :style =" {
123124 height: '100px'
You can’t perform that action at this time.
0 commit comments