Fixed style error.

pull/3445/head
ruibaby 2019-04-21 00:09:57 +08:00
parent dd61e6cbe3
commit 0d3bebcf5a
6 changed files with 24 additions and 55 deletions

View File

@ -544,4 +544,16 @@ body {
} }
} }
} }
}
.bottom-control {
position: absolute;
bottom: 0px;
width: 100%;
border-top: 1px solid rgb(232, 232, 232);
padding: 10px 16px;
text-align: right;
left: 0px;
background: rgb(255, 255, 255);
border-radius: 0px 0px 4px 4px;
} }

View File

@ -214,18 +214,6 @@ export default {
width: 100%; width: 100%;
} }
.attachment-control {
position: absolute;
bottom: 0px;
width: 100%;
border-top: 1px solid rgb(232, 232, 232);
padding: 10px 16px;
text-align: right;
left: 0px;
background: rgb(255, 255, 255);
border-radius: 0px 0px 4px 4px;
}
.table-operator { .table-operator {
margin-bottom: 0; margin-bottom: 0;
} }

View File

@ -78,7 +78,8 @@
</a-skeleton> </a-skeleton>
</a-col> </a-col>
</a-row> </a-row>
<div class="attachment-control"> <a-divider/>
<div class="bottom-control">
<a-popconfirm title="你确定要删除该附件?" @confirm="deleteAttachment" okText="确定" cancelText="取消"> <a-popconfirm title="你确定要删除该附件?" @confirm="deleteAttachment" okText="确定" cancelText="取消">
<a-button type="danger">删除</a-button> <a-button type="danger">删除</a-button>
</a-popconfirm> </a-popconfirm>
@ -185,15 +186,4 @@ export default {
.attach-detail-img img { .attach-detail-img img {
width: 100%; width: 100%;
} }
.attachment-control {
position: absolute;
bottom: 0px;
width: 100%;
border-top: 1px solid rgb(232, 232, 232);
padding: 10px 16px;
text-align: right;
left: 0px;
background: rgb(255, 255, 255);
border-radius: 0px 0px 4px 4px;
}
</style> </style>

View File

@ -25,7 +25,7 @@
<a-skeleton <a-skeleton
active active
:loading="skeletonLoading" :loading="skeletonLoading"
:paragraph="{ rows: 8 }" :paragraph="{ rows: 18 }"
> >
<a-col :span="24"> <a-col :span="24">
<div <div
@ -57,7 +57,8 @@
:attachment="selectedAttachment" :attachment="selectedAttachment"
@delete="handleDelete" @delete="handleDelete"
/> />
<div class="attachment-control"> <a-divider/>
<div class="bottom-control">
<a-button <a-button
@click="showUploadModal" @click="showUploadModal"
type="primary" type="primary"
@ -117,7 +118,7 @@ export default {
skeletonLoading: true, skeletonLoading: true,
pagination: { pagination: {
page: 1, page: 1,
size: 20, size: 10,
sort: '' sort: ''
}, },
attachments: [], attachments: [],
@ -179,18 +180,6 @@ export default {
</script> </script>
<style scope> <style scope>
.attachment-control {
position: absolute;
bottom: 0px;
width: 100%;
border-top: 1px solid rgb(232, 232, 232);
padding: 10px 16px;
text-align: right;
left: 0px;
background: rgb(255, 255, 255);
border-radius: 0px 0px 4px 4px;
}
.post-thum .img { .post-thum .img {
width: 100%; width: 100%;
cursor: pointer; cursor: pointer;

View File

@ -13,7 +13,7 @@
</a-row> </a-row>
<a-divider/> <a-divider/>
<a-row type="flex" align="middle"> <a-row type="flex" align="middle">
<a-skeleton active :loading="skeletonLoading" :paragraph="{ rows: 8 }"> <a-skeleton active :loading="skeletonLoading" :paragraph="{ rows: 18 }">
<a-col :span="24"> <a-col :span="24">
<div class="attach-item" v-for="(item, index) in attachments" :key="index" @click="selectAttachment(item)"> <div class="attach-item" v-for="(item, index) in attachments" :key="index" @click="selectAttachment(item)">
<img :src="item.thumbPath"> <img :src="item.thumbPath">
@ -29,7 +29,8 @@
@change="handlePaginationChange" @change="handlePaginationChange"
></a-pagination> ></a-pagination>
</a-row> </a-row>
<div class="attachment-control"> <a-divider/>
<div class="bottom-control">
<a-button @click="showUploadModal" type="primary">上传附件</a-button> <a-button @click="showUploadModal" type="primary">上传附件</a-button>
</div> </div>
</a-drawer> </a-drawer>
@ -81,7 +82,7 @@ export default {
skeletonLoading: true, skeletonLoading: true,
pagination: { pagination: {
page: 1, page: 1,
size: 20, size: 10,
sort: '' sort: ''
}, },
attachments: [], attachments: [],
@ -140,18 +141,6 @@ export default {
</script> </script>
<style scope> <style scope>
.attachment-control {
position: absolute;
bottom: 0px;
width: 100%;
border-top: 1px solid rgb(232, 232, 232);
padding: 10px 16px;
text-align: right;
left: 0px;
background: rgb(255, 255, 255);
border-radius: 0px 0px 4px 4px;
}
.post-thum .img { .post-thum .img {
width: 100%; width: 100%;
cursor: pointer; cursor: pointer;

View File

@ -95,7 +95,8 @@
<a-divider/> <a-divider/>
</div> </div>
<AttachmentSelectDrawer v-model="childDrawerVisible" @listenToSelect="selectPostThumb" :drawerWidth="460"/> <AttachmentSelectDrawer v-model="childDrawerVisible" @listenToSelect="selectPostThumb" :drawerWidth="460"/>
<div class="post-control"> <a-divider />
<div class="bottom-control">
<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>
</div> </div>