Skip to content

Commit 1b394ae

Browse files
committed
refine[Example]: refine style
1 parent c2a2fec commit 1b394ae

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

src/components/Tinymce/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ export default {
185185
<style scoped>
186186
.tinymce-container {
187187
position: relative;
188+
line-height: normal;
188189
}
189190
.tinymce-container>>>.mce-fullscreen {
190191
z-index: 10000;

src/views/example/components/ArticleDetail.vue

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,12 @@
6060
<span v-show="contentShortLength" class="word-counter">{{ contentShortLength }}字</span>
6161
</el-form-item>
6262

63-
<el-form-item prop="content">
64-
<div class="editor-container">
65-
<Tinymce ref="editor" :height="400" v-model="postForm.content" />
66-
</div>
63+
<el-form-item prop="content" style="margin-bottom: 30px;">
64+
<Tinymce ref="editor" :height="400" v-model="postForm.content" />
6765
</el-form-item>
68-
<el-form-item prop="image_uri">
69-
<div style="margin-bottom: 20px;">
70-
<Upload v-model="postForm.image_uri" />
71-
</div>
66+
67+
<el-form-item prop="image_uri" style="margin-bottom: 30px;">
68+
<Upload v-model="postForm.image_uri" />
7269
</el-form-item>
7370
</div>
7471
</el-form>
@@ -250,17 +247,6 @@ export default {
250247
float: left;
251248
}
252249
}
253-
.editor-container {
254-
min-height: 500px;
255-
margin: 0 0 30px;
256-
.editor-upload-btn-container {
257-
text-align: right;
258-
margin-right: 10px;
259-
.editor-upload-btn {
260-
display: inline-block;
261-
}
262-
}
263-
}
264250
}
265251
.word-counter {
266252
width: 40px;

0 commit comments

Comments
 (0)