diff --git a/src/assets/less/TableExpand.less b/src/assets/less/TableExpand.less index 5616c98..5097be8 100644 --- a/src/assets/less/TableExpand.less +++ b/src/assets/less/TableExpand.less @@ -12,4 +12,14 @@ &.ant-table-wrapper .ant-table-content { overflow-x: auto; } + + thead tr th { + position:sticky; + top:0; + } + + .ant-table-body{ + overflow-y: auto; + max-height: 520px; + } } diff --git a/src/views/dashboard/HomePage.vue b/src/views/dashboard/HomePage.vue index 78484d7..5296b24 100644 --- a/src/views/dashboard/HomePage.vue +++ b/src/views/dashboard/HomePage.vue @@ -55,7 +55,7 @@ @@ -291,6 +291,10 @@ export default { height: 100%; } +/deep/.ant-table-scroll{ + height: 100%; +} + /deep/.ant-table .ant-table-content { height: 100%; } diff --git a/src/views/system/DictList.vue b/src/views/system/DictList.vue index 30fc051..e903c4d 100644 --- a/src/views/system/DictList.vue +++ b/src/views/system/DictList.vue @@ -43,6 +43,7 @@ :dataSource="dataSource" :pagination="ipagination" :loading="loading" + class="j-table-force-nowrap" @change="handleTableChange"> diff --git a/src/views/system/SysAnnouncementList.vue b/src/views/system/SysAnnouncementList.vue index db07c5f..220fe5b 100644 --- a/src/views/system/SysAnnouncementList.vue +++ b/src/views/system/SysAnnouncementList.vue @@ -64,7 +64,7 @@ :dataSource="dataSource" :pagination="ipagination" :loading="loading" - :scroll="{y: 460 }" + class="j-table-force-nowrap" :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" @change="handleTableChange"> diff --git a/src/views/system/UserAnnouncementList.vue b/src/views/system/UserAnnouncementList.vue index 891880e..b7e429c 100644 --- a/src/views/system/UserAnnouncementList.vue +++ b/src/views/system/UserAnnouncementList.vue @@ -40,6 +40,7 @@ :dataSource="dataSource" :pagination="ipagination" :loading="loading" + class="j-table-force-nowrap" @change="handleTableChange"> 查看