FastAdmin Bootstrap-Table 分页列表 pageList 如何设置?

FastAdmin Bootstrap-Table 分页列表 pageList 如何设置?

FastAdmin 的 表格使用的是 Bootstrap-Table 组件,这个组件该有的功能他都有。

默认 FastAdmin 初始化时表格的分页列表是 pageList: [10, 25, 50, 'All'],

如果需要自定义,只需要在在对应的控制器 js 中初始化即可。

如: test.js

        Table.api.init({
                extend: {
                    index_url: 'example/bootstraptable/index',
                    add_url: '',
                    edit_url: '',
                    del_url: 'example/bootstraptable/del',
                    multi_url: '',
                },
                pageList: [5, 10, 'All']
            });

猜你喜欢

转载自www.cnblogs.com/F4NNIU/p/9054995.html