Commit 012020e51c8c71c8cc70d4b630bf4a056e5a2451
1 parent
aeebfc4d
style(notice-list): adjust style
去除通知列表组件标题和内容部分多余的margin-bottom,禁止自动隐藏不可用的翻页按钮
Showing
1 changed file
with
6 additions
and
1 deletions
src/layouts/default/header/components/notify/NoticeList.vue
1 | 1 | <template> |
2 | - <a-list :class="prefixCls" bordered :pagination="getPagination" size="small"> | |
2 | + <a-list :class="prefixCls" bordered :pagination="getPagination"> | |
3 | 3 | <template v-for="item in getData" :key="item.id"> |
4 | 4 | <a-list-item class="list-item"> |
5 | 5 | <a-list-item-meta> |
... | ... | @@ -115,6 +115,7 @@ |
115 | 115 | return { |
116 | 116 | total: list.length, |
117 | 117 | pageSize, |
118 | + //size: 'small', | |
118 | 119 | current: unref(current), |
119 | 120 | onChange(page) { |
120 | 121 | current.value = page; |
... | ... | @@ -142,6 +143,10 @@ |
142 | 143 | display: none; |
143 | 144 | } |
144 | 145 | |
146 | + ::v-deep(.ant-pagination-disabled) { | |
147 | + display: inline-block !important; | |
148 | + } | |
149 | + | |
145 | 150 | &-item { |
146 | 151 | padding: 6px; |
147 | 152 | overflow: hidden; | ... | ... |