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默认圆角 */