diff --git a/examples/docs/en-US/table.md b/examples/docs/en-US/table.md index 0cdcfe537fc..3bae00c9fe6 100644 --- a/examples/docs/en-US/table.md +++ b/examples/docs/en-US/table.md @@ -1910,6 +1910,9 @@ You can customize row index in `type=index` columns. | filters | an array of data filtering options. For each element in this array, `text` and `value` are required | Array[{ text, value }] | — | — | | filter-placement | placement for the filter dropdown | String | same as Tooltip's `placement` | — | | filter-multiple | whether data filtering supports multiple options | Boolean | — | true | +| filter-search | whether the filter dropdown can search filtering options | Boolean | — | false | +| filter-search-method | search method for filtering options. Receives `(query, filter)` and should return `true` when the option matches | Function(query, filter) | — | — | +| filter-search-placeholder | placeholder for the filter search input | String | — | — | | filter-method | data filtering method. If `filter-multiple` is on, this method will be called multiple times for each row, and a row will display if one of the calls returns `true` | Function(value, row, column) | — | — | | filtered-value | filter value for selected data, might be useful when table header is rendered with `render-header` | Array | — | — | diff --git a/packages/table/src/filter-panel.vue b/packages/table/src/filter-panel.vue index 3220d6dc764..9a1de6d4c52 100644 --- a/packages/table/src/filter-panel.vue +++ b/packages/table/src/filter-panel.vue @@ -5,11 +5,19 @@ v-if="multiple" v-clickoutside="handleOutsideClick" v-show="showPopper"> +
{{ filter.text }} @@ -27,12 +35,20 @@ v-else v-clickoutside="handleOutsideClick" v-show="showPopper"> +