Search Result List
diff --git a/components/form/demo/advanced-search.md b/components/form/demo/advanced-search.md
index 8d040878e1..9270d57719 100644
--- a/components/form/demo/advanced-search.md
+++ b/components/form/demo/advanced-search.md
@@ -11,48 +11,3 @@
Three columns layout is often used for advanced searching of data table.
Because the width of label is not fixed, you may need to adjust it by customizing its style.
-
-```css
-[data-theme='compact'] .ant-advanced-search-form,
-.ant-advanced-search-form {
- padding: 24px !important;
- background: #fbfbfb;
- border: 1px solid #d9d9d9;
- border-radius: 2px;
-}
-
-[data-theme='compact'] .ant-advanced-search-form .ant-form-item,
-.ant-advanced-search-form .ant-form-item {
- display: flex;
-}
-
-[data-theme='compact'] .ant-advanced-search-form .ant-form-item-control-wrapper,
-.ant-advanced-search-form .ant-form-item-control-wrapper {
- flex: 1;
-}
-```
-
-
diff --git a/components/form/demo/advanced-search.tsx b/components/form/demo/advanced-search.tsx
index ef94efe831..0771edc24a 100644
--- a/components/form/demo/advanced-search.tsx
+++ b/components/form/demo/advanced-search.tsx
@@ -1,12 +1,20 @@
import React, { useState } from 'react';
import { DownOutlined, UpOutlined } from '@ant-design/icons';
-import { Button, Col, Form, Input, Row, Select } from 'antd';
+import { Button, Col, Form, Input, Row, Select, theme } from 'antd';
const { Option } = Select;
const AdvancedSearchForm = () => {
- const [expand, setExpand] = useState(false);
+ const { token } = theme.useToken();
const [form] = Form.useForm();
+ const [expand, setExpand] = useState(false);
+
+ const formStyle = {
+ maxWidth: 'none',
+ background: token.colorFillAlter,
+ borderRadius: token.borderRadiusLG,
+ padding: 24,
+ };
const getFields = () => {
const count = expand ? 10 : 6;
@@ -46,12 +54,7 @@ const AdvancedSearchForm = () => {
};
return (
-