Skip to content

Commit

Permalink
refine[Example]: refine style
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen committed Dec 20, 2018
1 parent c2a2fec commit 1b394ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
1 change: 1 addition & 0 deletions src/components/Tinymce/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ export default {
<style scoped>
.tinymce-container {
position: relative;
line-height: normal;
}
.tinymce-container>>>.mce-fullscreen {
z-index: 10000;
Expand Down
24 changes: 5 additions & 19 deletions src/views/example/components/ArticleDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,12 @@
<span v-show="contentShortLength" class="word-counter">{{ contentShortLength }}字</span>
</el-form-item>

<el-form-item prop="content">
<div class="editor-container">
<Tinymce ref="editor" :height="400" v-model="postForm.content" />
</div>
<el-form-item prop="content" style="margin-bottom: 30px;">
<Tinymce ref="editor" :height="400" v-model="postForm.content" />
</el-form-item>
<el-form-item prop="image_uri">
<div style="margin-bottom: 20px;">
<Upload v-model="postForm.image_uri" />
</div>

<el-form-item prop="image_uri" style="margin-bottom: 30px;">
<Upload v-model="postForm.image_uri" />
</el-form-item>
</div>
</el-form>
Expand Down Expand Up @@ -250,17 +247,6 @@ export default {
float: left;
}
}
.editor-container {
min-height: 500px;
margin: 0 0 30px;
.editor-upload-btn-container {
text-align: right;
margin-right: 10px;
.editor-upload-btn {
display: inline-block;
}
}
}
}
.word-counter {
width: 40px;
Expand Down

0 comments on commit 1b394ae

Please sign in to comment.