fastadmin 增加列表分页跳转

本文详细介绍了如何在Fastadmin中增加列表分页跳转功能,包括使用bower更新bootstrap-table到特定版本,修改require-backend.js和bootstrap-table-jumpto.js文件,更新require-table.js的配置,增加分页输入验证,以及重新打包后台资源。
摘要由CSDN通过智能技术生成

1. 用bower更新bootstrap-table到1.12.0版本(更新的版本不兼容,或者之前往github下载1.11.1版本的extend也行)
bower.json修改为:
{
  "dependencies": {
    "bootstrap-table": "~1.12.0"
  }
}

执行命令:bower update bootstrap-table

注:如果根目录没有定义.bowerrc,需创建
{
  "directory" : "public/assets/libs",
  "ignoredDependencies": [
    "file-saver",
    "html2canvas",
    "jspdf",
    "jspdf-autotable"
  ]
}

github链接:https://github.com/wenzhixin/bootstrap-table/tree/6a60a3643bbbc11aaa591f34dfc9fa6eda60706c/src/extensions/page-jumpto
2. 增加后台加载js配置require-backend.js的项
require.config({
    paths: {
        'bootstrap-table-page-jumpto': '../libs/bootstrap-table/dist/extensions/page-jumpto/bootstrap-table-jumpto',
    },
    // shim依赖配置
    shim: 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值