From 37d35f7801de5780c40534dadd2cccbab37ffa11 Mon Sep 17 00:00:00 2001
From: tangjinzhou <415800467@qq.com>
Date: Sun, 22 May 2022 14:23:53 +0800
Subject: [PATCH] feat: table add filterResetToDefaultFilteredValue &
filterSearch funcion
---
components/table/demo/filter-search.vue | 113 ++++++++++++++++++
components/table/demo/index.vue | 3 +
.../table/hooks/useFilter/FilterDropdown.tsx | 22 +++-
.../table/hooks/useFilter/FilterSearch.tsx | 4 +-
components/table/hooks/useFilter/index.tsx | 22 ++--
components/table/hooks/useSorter.tsx | 32 ++++-
components/table/index.en-US.md | 3 +-
components/table/index.zh-CN.md | 3 +-
components/table/interface.tsx | 9 +-
components/table/style/index.less | 8 +-
components/table/style/size.less | 15 +--
11 files changed, 195 insertions(+), 39 deletions(-)
create mode 100644 components/table/demo/filter-search.vue
diff --git a/components/table/demo/filter-search.vue b/components/table/demo/filter-search.vue
new file mode 100644
index 000000000..4921f51c5
--- /dev/null
+++ b/components/table/demo/filter-search.vue
@@ -0,0 +1,113 @@
+
+---
+order: 6.2
+version: 4.19.0
+title:
+ en-US: Filter search
+ zh-CN: 自定义筛选的搜索
+---
+
+## zh-CN
+
+`filterSearch` 用于开启筛选项的搜索,通过 `filterSearch:(input, record) => boolean` 设置自定义筛选方法
+
+## en-US
+
+`filterSearch` is used to enable search of filter items, and you can set a custom filter method through `filterSearch:(input, record) => boolean`.
+
+
+
+
+
+
+
diff --git a/components/table/demo/index.vue b/components/table/demo/index.vue
index 5b9dec805..8c7efd643 100644
--- a/components/table/demo/index.vue
+++ b/components/table/demo/index.vue
@@ -18,6 +18,7 @@