统一前后端代码格式化配置
This commit is contained in:
@@ -31,13 +31,15 @@ export const ADMIN_TABLE_PAGINATION_BASE: Pick<
|
||||
* 服务端分页列表(任务/订单/用户/审计等)。
|
||||
* 始终展示 10/20/50/100,避免 antd「total ≤ 50 不显示」默认行为。
|
||||
*/
|
||||
export function buildAdminTablePagination(options: {
|
||||
current?: number
|
||||
page?: number
|
||||
pageSize?: number
|
||||
total?: number
|
||||
onChange?: TablePaginationConfig['onChange']
|
||||
} & Partial<TablePaginationConfig>): TablePaginationConfig {
|
||||
export function buildAdminTablePagination(
|
||||
options: {
|
||||
current?: number
|
||||
page?: number
|
||||
pageSize?: number
|
||||
total?: number
|
||||
onChange?: TablePaginationConfig['onChange']
|
||||
} & Partial<TablePaginationConfig>,
|
||||
): TablePaginationConfig {
|
||||
const { current, page, pageSize, total, onChange, ...rest } = options
|
||||
return {
|
||||
...ADMIN_TABLE_PAGINATION_BASE,
|
||||
@@ -61,13 +63,15 @@ export function buildAdminLocalTablePagination(
|
||||
}
|
||||
|
||||
/** kuaishou-lewan 发货记录分页(100–1000) */
|
||||
export function buildCloudtentaclesTablePagination(options: {
|
||||
current?: number
|
||||
page?: number
|
||||
pageSize?: number
|
||||
total?: number
|
||||
onChange?: TablePaginationConfig['onChange']
|
||||
} & Partial<TablePaginationConfig>): TablePaginationConfig {
|
||||
export function buildCloudtentaclesTablePagination(
|
||||
options: {
|
||||
current?: number
|
||||
page?: number
|
||||
pageSize?: number
|
||||
total?: number
|
||||
onChange?: TablePaginationConfig['onChange']
|
||||
} & Partial<TablePaginationConfig>,
|
||||
): TablePaginationConfig {
|
||||
const { current, page, pageSize, total, onChange, ...rest } = options
|
||||
return {
|
||||
showSizeChanger: true,
|
||||
|
||||
Reference in New Issue
Block a user