From 75779da35cc545e3b8db55b050f820c02ff09cb2 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Sun, 10 Nov 2024 12:54:04 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=A1=A8=E6=A0=BC=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/effects/plugins/src/vxe-table/theme.css | 11 ++++++++--- packages/styles/src/antd/index.css | 8 -------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/packages/effects/plugins/src/vxe-table/theme.css b/packages/effects/plugins/src/vxe-table/theme.css index 27b48420..72c42c11 100644 --- a/packages/effects/plugins/src/vxe-table/theme.css +++ b/packages/effects/plugins/src/vxe-table/theme.css @@ -92,9 +92,14 @@ padding: 0; } -.vxe-buttons--wrapper:not(:empty), -.vxe-tools--wrapper:not(:empty) { - padding: 0.6em 0; +/** 关闭搜索表单 */ +.vxe-grid:not(.vxe-grid--form-wrapper form) .vxe-toolbar { + padding: 0.6em 0 !important; +} + +/** 开启搜索表单 */ +.vxe-grid:has(.vxe-grid--form-wrapper form) .vxe-toolbar { + padding: 0 0 0.6em !important; } .vxe-tools--operate:not(:has(button)) { diff --git a/packages/styles/src/antd/index.css b/packages/styles/src/antd/index.css index 793945f7..79d2713f 100644 --- a/packages/styles/src/antd/index.css +++ b/packages/styles/src/antd/index.css @@ -71,14 +71,6 @@ vxe表格右上角toolbar元素之间的间距 margin-left: 8px !important; } -/** -覆盖vxe-table的toolbar样式 由于默认已经有了padding 需要去除上边的padding -需要判断是否开启查询表单 -*/ -.vxe-grid:has(.vxe-grid--form-wrapper form) .vxe-toolbar { - padding: 0 0 0.6em !important; -} - /** vxe默认圆角 */