Skip to content

Commit

Permalink
Docs: fix table demo typing error (#20115)
Browse files Browse the repository at this point in the history
* Docs: fix table demo typing error

* test: update snapshots (#20115)

* test: update snapshots (#20115)
  • Loading branch information
iicdii authored and afc163 committed Dec 6, 2019
1 parent ab36853 commit 850a5b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/table/demo/head.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ title:

Use `filters` to generate filter menu in columns, `onFilter` to determine filtered result, and `filterMultiple` to indicate whether it's multiple or single selection.

Uses `defaultFilterValues` to make a column filtered by default.
Uses `defaultFilteredValue` to make a column filtered by default.

Use `sorter` to make a column sortable. `sorter` can be a function of the type `function(a, b) { ... }` for sorting data locally.

Expand Down Expand Up @@ -60,7 +60,6 @@ const columns = [
],
},
],
defaultFilterValues: ['Jim'],
// specify the condition of filtering result
// here is that finding the name started with `value`
onFilter: (value, record) => record.name.indexOf(value) === 0,
Expand Down

0 comments on commit 850a5b4

Please sign in to comment.