|
@@ -1,12 +1,12 @@
|
|
|
<template>
|
|
|
<el-drawer class="le-drawer" size="100%" :title="getTitle" :model-value="modelValue" @update:model-value="updateModelValue">
|
|
|
<div v-if="loading" v-loading="true" class="local_loading"></div>
|
|
|
- <el-form ref="formRef" class="le-form-config flex-1" v-bind="formOpts" :model="model">
|
|
|
-<!-- :class="app.isMobile ? '' : 'h-full'"-->
|
|
|
+ <el-form ref="formRef" class="le-form-config flex-1" v-bind="formOpts" :disabled="disabled" :model="model">
|
|
|
+ <!-- :class="app.isMobile ? '' : 'h-full'"-->
|
|
|
<el-row class="local-row" :gutter="16">
|
|
|
<el-col :span="18" :xs="24" class="content" :class="app.isMobile ? 'content--mobile' : ''">
|
|
|
<el-form-item label="文件内容" prop="tplContent">
|
|
|
- <MonacoEditor height="calc(100vh - 200px)" v-model="model.tplContent" />
|
|
|
+ <MonacoEditor v-model="model.tplContent" height="calc(100vh - 200px)" :disabled="disabled" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6" :xs="24">
|
|
@@ -79,6 +79,7 @@ const formOpts = ref({
|
|
|
]
|
|
|
}
|
|
|
})
|
|
|
+const disabled = computed(() => props.type === 'detail')
|
|
|
const model = ref({
|
|
|
tplContent: '',
|
|
|
tplName: undefined,
|