瀏覽代碼

fix: [Table] Modify the wrong type definition of the filteredValue parameter in onFilter (#1538)

YyumeiZhang 2 年之前
父節點
當前提交
9e0be909bc
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      content/show/table/index-en-US.md
  2. 1 1
      content/show/table/index.md

+ 1 - 1
content/show/table/index-en-US.md

@@ -4771,7 +4771,7 @@ import { Table } from '@douyinfe/semi-ui';
 | useFullRender | Whether to completely customize the rendering, see [Full Custom Rendering](#Fully-custom-rendering) for usage details, enabling this feature will cause a certain performance loss | boolean | false | **0.34.0** |
 | width | Column width | string \| number |  |
 | onCell | Set cell properties | (record: RecordType, rowIndex: number) => object |  |
-| onFilter | Determine the running function of the filter in local mode | (filteredValue: any[], record: RecordType) => boolean |  |
+| onFilter | Determine the running function of the filter in local mode | (filteredValue: any, record: RecordType) => boolean |  |
 | onFilterDropdownVisibleChange | A callback when a custom filter menu is visible | (visible: boolean) => void |  |
 | onHeaderCell | Set the head cell property | (column: RecordType, columnIndex: number) => object |  |
 

+ 1 - 1
content/show/table/index.md

@@ -4777,7 +4777,7 @@ import { Table } from '@douyinfe/semi-ui';
 | useFullRender | 是否完全自定义渲染,用法详见[完全自定义渲染](#完全自定义渲染), 开启此功能会造成一定的性能损耗 | boolean | false | **0.34.0** |
 | width | 列宽度 | string \| number |  |
 | onCell | 设置单元格属性 | (record: RecordType, rowIndex: number) => object |  |
-| onFilter | 本地模式下,确定筛选的运行函数 | (filteredValue: any[], record: RecordType) => boolean |  |
+| onFilter | 本地模式下,确定筛选的运行函数 | (filteredValue: any, record: RecordType) => boolean |  |
 | onFilterDropdownVisibleChange | 自定义筛选菜单可见变化时回调 | (visible: boolean) => void |  |
 | onHeaderCell | 设置头部单元格属性 | (column: RecordType, columnIndex: number) => object |  |