在 table bootstrap-vue.js 中的特定列中搜索

Search in particular column in table bootstrap-vue.js

我想为特定列应用搜索过滤器。我正在使用 vuejs 文档 (https://bootstrap-vue.js.org/docs/components/table/#complete-example) 中给出的 table 组件示例。

使用属性 filter-included-fields 指定一个数组,其中包含仅作为过滤依据的字段名称。

如果要筛选的字段名为 name:

<b-table :filter-included-fields="['name']" ... >
</b-table>

请参阅 https://bootstrap-vue.js.org/docs/components/table/#built-in-filtering-options

中的文档