This commit is contained in:
yziiy
2025-09-28 15:58:13 +08:00
parent c8a023ef31
commit fba111a140
4 changed files with 163 additions and 85 deletions

View File

@@ -1,5 +1,6 @@
<script setup lang="ts">
import { ref } from "vue";
import RichText from '@/components/RichText/index.vue';
const ruleFormRef = ref();
const formRules = ref({
version: [{ required: true, message: "版本号为必填项", trigger: "blur" }],
@@ -31,7 +32,9 @@ const newFormInline = ref(
function getRef() {
return ruleFormRef.value;
}
function chanageEditorValue(val) {
newFormInline.value.content = val
}
defineExpose({ getRef });
</script>
@@ -53,7 +56,9 @@ defineExpose({ getRef });
<el-input v-model="newFormInline.downloadurl" clearable placeholder="请输入下载链接" />
</el-form-item>
<el-form-item label="更新内容" prop="content">
<el-input v-model="newFormInline.content" type="textarea" clearable placeholder="请输入更新内容" />
<RichText style="border: 1px solid #ccc;" :echoValue="newFormInline.content" @changeValue="chanageEditorValue">
</RichText>
<!-- <el-input v-model="newFormInline.content" type="textarea" clearable placeholder="请输入更新内容" /> -->
</el-form-item>
<el-form-item label="强制更新" prop="enforce">
<el-radio-group v-model="newFormInline.enforce">