直接附上代碼和截圖工大家操作
引入插件文件下載地址
鏈接:https://pan.baidu.com/s/1GbZgMn7a1_kTOSP2Qfr8GQ
提取碼:rfcd
1.引入插件
將js和css文件複製到public/assets/libs/bootstrap-table/dist目錄下,
找到public/assets/js/require-backend.js文件,大約在35行左右,配置文件路徑。
'bootstrap-table-fixed-columns': '../libs/bootstrap-table/dist/bootstrap-table-fixed-columns',
'bootstrap-table-fixed-columns': {
deps: ['bootstrap-table','css!../libs/bootstrap-table/dist/bootstrap-table-fixed-columns.css'],
exports: '$.fn.bootstrapTable.defaults'
},
2.fastadmin 生成的js文件
效果展示
以上實現了表頭滾動效果,有疑問可以加羣資訊,我是裙組721200119,