import React from 'react'; import { IFormatterType, ICurrencySymbol } from '../../hooks/useFormatter'; import { ICurrentPage } from './hooks/useInnerPagination'; /**配置列属性 */ export interface IEditableConfig { type: 'input' | 'select' | 'inputNumber' | 'textArea'; data?: any; keyValue?: { key: string; label: string; }; maxHandle?: (record: any) => any; minHandle?: (record: any) => any; /** 超出最大值提示 */ overMaxTip?: string | ((record: any, index: any) => string); /** 低于最小值提示 */ lowMinTip?: string | ((record: any, index: any) => string); /**是否禁用 */ disabledHandle?: (record: any, index?: number) => boolean; /**数字输入框的转换类型:内置 货币和百分比 */ formatterType?: IFormatterType; /**货币的前缀 可以为 $ 或 ¥ */ currencySymbol?: ICurrencySymbol; /**数字输入框的小数位数 */ precision?: number; [props: string]: any; } interface IEditableCellProps { title: React.ReactNode; index?: number; editable: boolean; editableConfig: IEditableConfig; children: React.ReactNode; dataIndex: string; record: any; handleSave: (record: any, index: number | undefined, dataIndex: string, otherInfo?: { isInner?: boolean; }) => void; columns: any; onTableChange: any; currentpage: ICurrentPage; [props: string]: any; } declare const _default: React.NamedExoticComponent; export default _default;