diff --git a/components/table/__tests__/__snapshots__/Table.filter.test.js.snap b/components/table/__tests__/__snapshots__/Table.filter.test.js.snap index 3e4fa0b2db..3480ec5a54 100644 --- a/components/table/__tests__/__snapshots__/Table.filter.test.js.snap +++ b/components/table/__tests__/__snapshots__/Table.filter.test.js.snap @@ -31,7 +31,9 @@ exports[`Table.filter renders custom content correctly 1`] = `
-
+
diff --git a/components/table/demo/custom-filter-panel.md b/components/table/demo/custom-filter-panel.md index e63d07483a..a06c26628e 100644 --- a/components/table/demo/custom-filter-panel.md +++ b/components/table/demo/custom-filter-panel.md @@ -50,7 +50,7 @@ class App extends React.Component { filterDropdown: ({ setSelectedKeys, selectedKeys, confirm, clearFilters, }) => ( -
+
{ this.searchInput = node; }} placeholder={`Search ${dataIndex}`} @@ -129,12 +129,3 @@ class App extends React.Component { ReactDOM.render(, mountNode); ```` - -````css -.custom-filter-dropdown { - padding: 8px; - border-radius: 4px; - background: #fff; - box-shadow: 0 2px 8px rgba(0, 0, 0, .15); -} -```` diff --git a/components/table/filterDropdown.tsx b/components/table/filterDropdown.tsx index 95e10fbcd8..67fea48b3a 100755 --- a/components/table/filterDropdown.tsx +++ b/components/table/filterDropdown.tsx @@ -247,7 +247,9 @@ export default class FilterMenu extends React.Component, F } const menus = filterDropdown ? ( - {filterDropdown} + + {filterDropdown} + ) : (