Post thumb drawer.

pull/3445/head
ruibaby 2019-04-13 10:08:49 +08:00
parent 3c48d35bbf
commit 76f11403b5
1 changed files with 13 additions and 1 deletions

View File

@ -94,12 +94,19 @@
<h3 class="post-setting-drawer-title">缩略图</h3> <h3 class="post-setting-drawer-title">缩略图</h3>
<div class="post-setting-drawer-item"> <div class="post-setting-drawer-item">
<div class="post-thum"> <div class="post-thum">
<img class="img" src="https://os.alipayobjects.com/rmsportal/mgesTPFxodmIwpi.png"> <img class="img" src="https://os.alipayobjects.com/rmsportal/mgesTPFxodmIwpi.png" @click="showAttachDrawer">
</div> </div>
</div> </div>
</div> </div>
<a-divider/> <a-divider/>
</div> </div>
<a-drawer
title="选择图片"
width="320"
:closable="true"
:visible="childrenDrawer"
>
</a-drawer>
<div class="postControl"> <div class="postControl">
<a-button style="marginRight: 8px" @click="handleDraftClick">稿</a-button> <a-button style="marginRight: 8px" @click="handleDraftClick">稿</a-button>
<a-button @click="handlePublishClick" type="primary">{{ publishText }}</a-button> <a-button @click="handlePublishClick" type="primary">{{ publishText }}</a-button>
@ -155,6 +162,7 @@ export default {
xs: { span: 24 } xs: { span: 24 }
}, },
visible: false, visible: false,
childrenDrawer: false,
drawerWidth: '460', drawerWidth: '460',
tags: [], tags: [],
categories: [], categories: [],
@ -233,6 +241,9 @@ export default {
showDrawer() { showDrawer() {
this.visible = true this.visible = true
}, },
showAttachDrawer() {
this.childrenDrawer = true
},
handlePublishClick() { handlePublishClick() {
this.postToStage.status = 'PUBLISHED' this.postToStage.status = 'PUBLISHED'
this.createOrUpdatePost() this.createOrUpdatePost()
@ -283,6 +294,7 @@ export default {
.post-thum .img { .post-thum .img {
width: 100%; width: 100%;
cursor: pointer;
} }
.mavonEditor { .mavonEditor {