vue.js - Vue过滤表项
问题描述
bootstrap-vue中有这样一个例子:complete-example
但是当我选择按名称过滤时,什么也没有发生。
我试图在我的 vue 项目中重复这个例子。也没有任何事情发生。
我的物品有一个状态选项(“成功”、“警告”、“危险”)。
我有相应的按钮。
问题:如何通过点击相应的按钮来过滤项目?以及如何通过单击复选框来过滤项目?
PS:bootstrap-vue 2.0.1、bootstrap 4.3.1、vue 2.6.10
解决方案
Please refer the following codepen. Just add one more checkbox for the Status column.
推荐阅读
- java - 使用 AES CBC 在 perl 中正确格式化初始化向量
- django - 在 Django 的 ManyToManyFields 中自定义(样式)ModelMultipleChoiceField
- mysql - 如何在mysql中添加数值的百分比
- python - 替换颜色图中的颜色(python 3.7)
- discrete-mathematics - 大 O 表示法 Q
- php - 为什么这个依赖没有通过 Composer 自动加载器正确加载?
- plsql - PL/SQL 调用函数到过程
- python - Flask 会话变量不能在函数之间共享
- python - 将 DateTimeField 转换为日期时间
- python - 为什么会出现索引错误(元组索引超出范围)?