laravel-5 - 如何在 Vuejs 2 和 bootstrap 3 + laravel 中创建带有排序搜索组件的列表
问题描述
我是 vuejs 的新手,所以任何人都可以解释如何创建列表(例如 User、My Order like grid)组件。
我找到了一种最佳解决方案,但这在 bootstrap-3 中不兼容,但我现有的项目在 bootstrap-3 下
我想在 bootstrap3 中与此类似: https ://bootstrap-vue.js.org/docs/components/table#complete-example
是否有任何 bootstap-vue 版本与 bootstap3 兼容,如果没有,请提供替代解决方案。
预先感谢。
解决方案
你可以使用https://ratiw.github.io/vuetable-2 该组件是高度可修改的,你可以在他的 props 中传递带有类的对象,以使表格与每个 css 框架一起工作:
模板:
<vuetable ref="movementsTable"
:css="table"
api-url="api/movements/resource"
:fields="fields"
pagination-path=""
></vuetable>
状态:
data() {
return {
table: {
tableClass: 'table table-hover',
loadingClass: 'loading',
ascendingIcon: 'fa fa-chevron-up',
descendingIcon: 'fa fa-chevron-down',
handleIcon: 'fa fa-caret-left',
},
},
},
推荐阅读
- javascript - 动态地将类添加到字符串中的单词Angular
- python - 如何创建一个独立的非模态对话框
- c# - cplex bool 决策变量返回双精度值
- opencv - (共享) Yolov5 模型中的多任务学习
- c# - 选择项目后如何使下拉按钮的弹出窗口自动关闭?
- windows - 在 Windows Master 和远程 Windows 机器之间的 jenkins 中尝试主从连接
- python - 直接将文件上传到 SFTP 而不将其存储到本地系统中
- testing - 如何使用 Blazemeter 记录添加到购物卡的操作
- if-statement - 解释两个布尔值的每种可能性的最佳方法是什么
- asp.net-core - 电子邮件列应允许在 AspNetUsers 表中为空