import { CSSProperties } from 'react'; import 'dayjs/locale/zh-cn'; import { TablePaginationConfig } from 'antd/es/table'; /** Unicode -> 字符串 */ export declare const unicodeToChar: (str: string) => string; /** 格式化金额 */ export declare const toThousands: (num: number | string) => string; /** 获取浏览器地址上?参数 */ export declare const getQueryString: (name: string) => string; /** 获取浏览器地址上/参数 */ export declare const getPathnameParamId: () => string; /** * 判断数据类型 * 'Array' | 'Number' | 'Object' | 'Undefined' | 'Null' | 'String' | 'Symbol' | 'BigInt' | 'Date' | 'Function' */ export declare const checkType: (data: any) => string; /** 判断元素是否完全在可视区域 */ export declare const isElementInViewport: (el: any, coverStyle?: CSSProperties) => boolean; /** 打开文件 */ export declare const openFile: (href: string) => void; /** 下载文件 */ export declare const loadFile: (href: string | string[]) => void; /** 导出文件 */ export declare const exportFlow: (api: (p?: any) => Promise | void, params?: { [key: string]: any; }, callback?: (msg: string) => void) => void; /** '0' -> '01' */ export declare const formatNumber: (n: string | number) => string; /** '01' -> '0' */ export declare const removeZero: (str: string) => string; export interface PaginationConfig { current?: number; pageSize?: number; total?: number; pageSizeOptions?: string[]; onChange?: (current: number, pageSize?: number) => void; } declare type Pagination = (config: PaginationConfig) => TablePaginationConfig; /** antd 分页器 */ export declare const pagination: Pagination; /** 计算总列宽 */ export declare const deconstructionWidth: (oldColumns: any[]) => number; declare type TableScrollType = (option: { oldColumns: any[]; dataSource: any[]; rowSelectionWidth?: number; maxHeight?: number; maxWidth?: number; }) => { columns: any[]; scroll?: { x?: number; y?: number; scrollToFirstRowOnChange: boolean; }; }; /** 处理antd的columns scroll */ export declare const tableScroll: TableScrollType; /** 处理返回的字符串dateString */ export declare const dateToString: (currentDates: string[]) => string; declare type ResizableColumnsType = (columns: any[], callback: (nextColumns: any[]) => void) => any[]; /** 表格拖拽列-自定义th td props */ export declare const resizableColumns: ResizableColumnsType; /** 判断是否触发省略号 */ export declare const inspectEllipsis: (clientNode: HTMLElement, innerContent: any) => boolean; /** 判断是否触发省略号-不适用于动态数据填充 */ export declare const inspectEllipsisQuick: (clientNode: HTMLElement) => boolean; /** 处理antd form与 antd-dayjs-webpack-plugin不兼容问题 */ export declare const antdDayjsPolyfill: (dj: any) => void; export {};