From 5af280c40f52a839fc4bda38934f680cccf98763 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 10 十一月 2021 17:43:12 +0800 Subject: [PATCH] 2021-11-10 --- src/menu/components/table/normal-table/columns/index.jsx | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/menu/components/table/normal-table/columns/index.jsx b/src/menu/components/table/normal-table/columns/index.jsx index 9c87844..7356abf 100644 --- a/src/menu/components/table/normal-table/columns/index.jsx +++ b/src/menu/components/table/normal-table/columns/index.jsx @@ -16,6 +16,7 @@ const EditColumn = asyncIconComponent(() => import('./editColumn')) const MarkColumn = asyncIconComponent(() => import('@/menu/components/share/markcomponent')) const CardCellComponent = asyncComponent(() => import('@/menu/components/card/cardcellcomponent')) +const MobPagination = asyncIconComponent(() => import('@/menu/components/share/mobPagination')) class HeaderCol extends Component { deleteCol = () => { @@ -553,7 +554,7 @@ render() { const { config } = this.props - const { fields, card, lineMarks, dict, tableId } = this.state + const { fields, card, lineMarks, dict, tableId, appType } = this.state const components = { header: { cell: DragableHeaderCol @@ -592,15 +593,16 @@ dataSource={this.state.data} rowSelection={config.wrap.tableType ? { type: 'radio' } : null} columns={columns} - pagination={{ + pagination={appType !== 'mob' ? { current: 1, pageSize: 10, pageSizeOptions: ['10', '25', '50', '100', '500', '1000'], showSizeChanger: true, total: 58, showTotal: (total, range) => `${range[0]}-${range[1]} 鍏� ${total} 鏉 - }} + } : false} /> + {appType === 'mob' && config.setting.laypage !== 'fasle' ? <MobPagination /> : null} </DndProvider> <EditColumn column={card} dict={dict} fields={fields} submitCol={this.submitCol} cancelCol={this.cancelCol}/> </div> -- Gitblit v1.8.0