| | |
| | | height: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | flex-shrink: 0; |
| | | } |
| | | |
| | | .avatar-container :deep(.el-dropdown) { |
| | |
| | | flex-direction: column; |
| | | align-items: flex-end; |
| | | gap: 2px; |
| | | flex-shrink: 0; |
| | | } |
| | | |
| | | .user-name { |
| | |
| | | line-height: 1; |
| | | } |
| | | |
| | | // 昵称/角色始终单行,过长时省略,不换行撑高导航栏 |
| | | .user-name, |
| | | .user-role { |
| | | white-space: nowrap; |
| | | max-width: 180px; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | text-align: right; |
| | | } |
| | | |
| | | .user-avatar { |
| | | cursor: pointer; |
| | | width: 36px; |
| | |
| | | getTableData(); |
| | | }; |
| | | |
| | | const changePage = ({ current, size }) => { |
| | | pagination.currentPage = current; |
| | | pagination.pageSize = size; |
| | | const changePage = ({ page, limit }) => { |
| | | pagination.currentPage = page; |
| | | pagination.pageSize = limit; |
| | | getTableData(); |
| | | }; |
| | | |