更新
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user