From aab3057be33a8a09ce0b5ae910e9abb2d959a3a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ph=E1=BA=A1m=20Ng=E1=BB=8Dc=20H=C3=B2a?= <thaycacac@gmail.com> Date: Fri, 10 Jul 2020 17:30:46 +0700 Subject: [PATCH] update: title and footer dialog upload in tinymce --- .../Tinymce/components/EditorImage.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/components/Tinymce/components/EditorImage.vue b/src/components/Tinymce/components/EditorImage.vue index 07d48e6c..9d31832e 100644 --- a/src/components/Tinymce/components/EditorImage.vue +++ b/src/components/Tinymce/components/EditorImage.vue @@ -3,7 +3,7 @@ <el-button :style="{background:color,borderColor:color}" icon="el-icon-upload" size="mini" type="primary" @click=" dialogVisible=true"> upload </el-button> - <el-dialog :visible.sync="dialogVisible"> + <el-dialog title="Upload" :visible.sync="dialogVisible"> <el-upload :multiple="true" :file-list="fileList" @@ -19,12 +19,14 @@ Click upload </el-button> </el-upload> - <el-button @click="dialogVisible = false"> - Cancel - </el-button> - <el-button type="primary" @click="handleSubmit"> - Confirm - </el-button> + <div slot="footer" class="dialog-footer"> + <el-button type="primary" @click="handleSubmit"> + Confirm + </el-button> + <el-button @click="dialogVisible = false"> + Cancel + </el-button> + </div> </el-dialog> </div> </template>