|
|
@ -61,12 +61,12 @@ export const exceptStr = (str) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
export const paginationFun = (tableListPageObj, sizeChange, onChange) => {
|
|
|
|
export const paginationFun = (tableListPageObj, sizeChange, onChange, i18n = {}) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
current: tableListPageObj.pageNum,
|
|
|
|
current: tableListPageObj.pageNum,
|
|
|
|
pageSize: tableListPageObj.size,
|
|
|
|
pageSize: tableListPageObj.size,
|
|
|
|
total: tableListPageObj.total,
|
|
|
|
total: tableListPageObj.total,
|
|
|
|
showTotal: (total) => `共 ${total} 条`,
|
|
|
|
showTotal: total => `${i18n["共"] ? i18n["共"] : "共"} ${total} ${i18n["条"] ? i18n["条"] : "条"}`,
|
|
|
|
showQuickJumper: true,
|
|
|
|
showQuickJumper: true,
|
|
|
|
showSizeChanger: true,
|
|
|
|
showSizeChanger: true,
|
|
|
|
pageSizeOptions: ["10", "20", "50", "100"],
|
|
|
|
pageSizeOptions: ["10", "20", "50", "100"],
|
|
|
@ -76,8 +76,8 @@ export const paginationFun = (tableListPageObj, sizeChange, onChange) => {
|
|
|
|
onChange({
|
|
|
|
onChange({
|
|
|
|
pageNum: page,
|
|
|
|
pageNum: page,
|
|
|
|
size,
|
|
|
|
size,
|
|
|
|
total,
|
|
|
|
total
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|