From 9025bc13b8c98cd9b52e8e6dfbd06d30fb827a85 Mon Sep 17 00:00:00 2001 From: wkc <978997012@qq.com> Date: Fri, 27 Feb 2026 11:09:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Vue=202=20=E4=B8=8D?= =?UTF-8?q?=E6=94=AF=E6=8C=81=20:deep()=20=E8=AF=AD=E6=B3=95=E7=9A=84?= =?UTF-8?q?=E8=87=B4=E5=91=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将所有 :deep() 改为 ::v-deep(Vue 2 正确语法) - 移除测试用的红色边框 - 修复 Material Design 样式完全未生效的问题 --- ruoyi-ui/src/views/ccdiProject/components/ProjectTable.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ruoyi-ui/src/views/ccdiProject/components/ProjectTable.vue b/ruoyi-ui/src/views/ccdiProject/components/ProjectTable.vue index dbd167d..38cdf68 100644 --- a/ruoyi-ui/src/views/ccdiProject/components/ProjectTable.vue +++ b/ruoyi-ui/src/views/ccdiProject/components/ProjectTable.vue @@ -242,7 +242,7 @@ export default { margin-top: 16px; // 表格整体样式 - Material Design 卡片式 - :deep(.el-table) { + ::v-deep .el-table { // 移除边框,使用阴影 border: none !important; border-radius: 8px; @@ -353,7 +353,7 @@ export default { } // 操作按钮样式 - Material Design 风格 -:deep(.el-button--text) { +::v-deep .el-button--text { color: #1890ff; padding: 8px 12px; border-radius: 4px; @@ -376,7 +376,7 @@ export default { } // 分页样式优化 - Material Design 风格 -:deep(.el-pagination) { +::v-deep .el-pagination { margin-top: 24px; text-align: right;