抽屉与弹框样式优化

main
ysn 3 days ago
parent 0d92d93c34
commit 1f6fff708b
  1. 37
      src/assets/styles/element-ui.scss
  2. 5
      src/assets/styles/ruoyi.scss
  3. 7
      src/views/message/components/GroupSetting.vue
  4. 11
      src/views/message/components/SearchRecord.vue

@ -48,15 +48,23 @@
// to fixed https://github.com/ElemeFE/element/issues/2461 // to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog { .el-dialog {
transform: none; position: absolute;
left: 0; top: 50% !important;
position: relative; left: 50% !important;
margin: 0 auto; transform: translate(-50%, -50%) !important;
border: 1px solid $base-menu-background; margin: 0 !important;
.el-dialog__header { .el-dialog__header {
background: #eff6f6; background: #eff6f6;
&::before {
content: '';
display: inline-block;
width: 3px;
height: 16px;
background-color: #009688;
border-radius: 2px;
margin-right: 8px;
}
.el-dialog__title { .el-dialog__title {
color: $base-menu-background; color: $base-menu-background;
} }
@ -68,12 +76,25 @@
border: 1px solid $base-menu-background; border: 1px solid $base-menu-background;
.el-drawer__header { .el-drawer__header {
padding: 20px 20px 10px;
background: #eff6f6; background: #eff6f6;
margin-bottom: 0;
.el-drawer__title {
color: $base-menu-background; color: $base-menu-background;
&::before {
content: '';
display: inline-block;
width: 3px;
height: 16px;
background-color: #009688;
border-radius: 2px;
margin-right: 8px;
} }
} }
.el-drawer__body {
padding: 8px 20px !important;
}
} }
.el-card { .el-card {

@ -76,11 +76,6 @@
.el-message-box__status + .el-message-box__message{ .el-message-box__status + .el-message-box__message{
word-break: break-word; word-break: break-word;
} }
.el-dialog:not(.is-fullscreen) {
margin-top: 6vh !important;
}
.el-dialog__body { .el-dialog__body {
padding: 8px 20px !important; padding: 8px 20px !important;
} }

@ -1,10 +1,11 @@
<template> <template>
<div> <div>
<el-dialog <el-drawer
title="群设置" title="群设置"
:visible.sync="visible" :visible.sync="visible"
width="400px" :size="400"
append-to-body append-to-body
direction="rtl"
> >
<div class="group-setting"> <div class="group-setting">
<!-- 群头像和名称 --> <!-- 群头像和名称 -->
@ -111,7 +112,7 @@
</el-button> </el-button>
</div> </div>
</div> </div>
</el-dialog> </el-drawer>
<!-- 添加成员弹窗 --> <!-- 添加成员弹窗 -->
<CreateGroupDialog <CreateGroupDialog

@ -1,9 +1,10 @@
<template> <template>
<el-dialog <el-drawer
title="聊天记录" title="聊天记录"
:visible.sync="visible" :visible.sync="visible"
width="40%" :size="400"
append-to-body append-to-body
direction="rtl"
> >
<div class="search-record"> <div class="search-record">
<!-- 分类标签 --> <!-- 分类标签 -->
@ -85,7 +86,7 @@
</div> </div>
</div> </div>
</div> </div>
</el-dialog> </el-drawer>
</template> </template>
<script> <script>
@ -102,7 +103,7 @@ export default {
query: {}, query: {},
list: [], list: [],
page: 1, page: 1,
size: 10, size: 20,
loadingMore: false, loadingMore: false,
isNoMore: false, isNoMore: false,
// //
@ -298,7 +299,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.search-record { .search-record {
height: 500px; height: calc(100vh - 120px);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }

Loading…
Cancel
Save