fix: 图片预览问题修复。

This commit is contained in:
tianyongbao
2026-02-22 21:42:56 +08:00
parent 442a1aea6d
commit d6ed73abe8
2 changed files with 19 additions and 8 deletions

View File

@@ -416,24 +416,24 @@ getList()
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
/* 图片预览容器样式 */
.image-preview-container { .image-preview-container {
display: flex; position: relative;
flex-direction: column;
align-items: center;
} }
.image-wrapper { .image-wrapper {
width: 100%;
height: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 100%;
height: 100%;
background-color: #f5f5f5;
} }
.image-count { .image-count {
margin-top: 10px;
text-align: center; text-align: center;
color: #606266; margin-top: 16px;
color: #666;
font-size: 14px; font-size: 14px;
} }
@@ -451,6 +451,15 @@ getList()
margin: 0 !important; margin: 0 !important;
} }
/* 轮播图箭头样式优化 */
:deep(.el-carousel__arrow) {
background-color: rgba(0, 0, 0, 0.5);
}
:deep(.el-carousel__arrow:hover) {
background-color: rgba(0, 0, 0, 0.7);
}
/* 确保表格内容区域可以滚动 */ /* 确保表格内容区域可以滚动 */
:deep(.el-table__body-wrapper) { :deep(.el-table__body-wrapper) {
overflow-y: auto !important; overflow-y: auto !important;

View File

@@ -78,6 +78,8 @@
background background
layout="total,sizes, prev, pager, next" layout="total,sizes, prev, pager, next"
:total="total" :total="total"
:page-sizes="[10, 20, 30, 50]"
:page-size="queryParams.pageSize"
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
/> />
@@ -452,7 +454,7 @@ function handleExport() {
getList() getList()
</script> </script>
<style scoped> <style scoped lang="scss">
/* 确保图片预览层不被表格遭挡 */ /* 确保图片预览层不被表格遭挡 */
:deep(.el-image-viewer__wrapper) { :deep(.el-image-viewer__wrapper) {
z-index: 9999 !important; z-index: 9999 !important;