import { PropType } from '@vue/composition-api'; import { TableRowData, PrimaryTableCol, PrimaryTableRowEditContext, PrimaryTableRowValidateContext, TdBaseTableProps } from './type'; import { TableClassName } from './hooks/useClassName'; import { AllValidateResult } from '../form/type'; export interface OnEditableChangeContext extends PrimaryTableRowEditContext { isEdit: boolean; validateEdit: (trigger: 'self' | 'parent') => Promise; } export interface EditableCellProps { rowKey: string; row: TableRowData; rowIndex: number; col: PrimaryTableCol; colIndex: number; oldCell: PrimaryTableCol['cell']; tableBaseClass?: TableClassName['tableBaseClass']; editable?: boolean; readonly?: boolean; errors?: AllValidateResult[]; cellEmptyContent?: TdBaseTableProps['cellEmptyContent']; onChange?: (context: PrimaryTableRowEditContext) => void; onValidate?: (context: PrimaryTableRowValidateContext) => void; onRuleChange?: (context: PrimaryTableRowEditContext) => void; onEditableChange?: (context: OnEditableChangeContext) => void; } declare const _default: import("vue").ComponentOptions; isEdit: import("@vue/composition-api").Ref; cellNode: import("@vue/composition-api").ComputedRef; isAbortEditOnChange: import("@vue/composition-api").ComputedRef; listeners: import("@vue/composition-api").ComputedRef<{ [key: string]: Function; }>; componentProps: import("@vue/composition-api").ComputedRef; tableEditableCellRef: any; errorList: import("@vue/composition-api").Ref; currentRow: import("@vue/composition-api").ComputedRef<{ [x: string]: any; children?: TableRowData[]; }>; editOnListeners: import("@vue/composition-api").ComputedRef<{ [eventName: string]: Function; }>; onEditChange: (val: any, ...args: any) => void; Edit1Icon: import("tdesign-icons-vue").GlobalIconType; validateEdit: (trigger: 'self' | 'parent') => Promise; onCellClick: (e: MouseEvent) => void; cellParams: import("@vue/composition-api").ComputedRef<{ rowIndex: number; colIndex: number; col: PrimaryTableCol; row: TableRowData; }>; }> & import("@vue/composition-api").Data, {}, {}, { rowKey: StringConstructor; row: PropType; rowIndex: NumberConstructor; col: PropType>; colIndex: NumberConstructor; oldCell: PropType) => import("vue/types/vnode").ScopedSlotReturnValue)>; tableBaseClass: PropType<{ table: (string | { [x: string]: boolean; })[]; columnResizableTable: string; overflowVisible: string; body: string; content: string; topContent: string; bottomContent: string; paginationWrap: string; tdLastRow: string; tdFirstCol: string; thCellInner: string; tableRowEdit: string; cellEditable: string; cellEditWrap: string; bordered: string; striped: string; hover: string; loading: string; rowspanAndColspan: string; empty: string; emptyRow: string; headerFixed: string; columnFixed: string; widthOverflow: string; multipleHeader: string; footerAffixed: string; horizontalBarAffixed: string; affixedHeader: string; affixedHeaderElm: string; affixedFooterElm: string; affixedFooterWrap: string; scrollbarDivider: string; fullHeight: string; resizeLine: string; obviousScrollbar: string; affixedHeaderWrap: string; }>; cellEmptyContent: PropType) => import("vue/types/vnode").ScopedSlotReturnValue)>; editable: { type: BooleanConstructor; default: any; }; readonly: { type: BooleanConstructor; }; errors: { type: PropType; default: any; }; onChange: PropType<(context: PrimaryTableRowEditContext) => void>; onValidate: PropType<(context: PrimaryTableRowValidateContext) => void>; onRuleChange: PropType<(context: PrimaryTableRowEditContext) => void>; onEditableChange: PropType<(context: OnEditableChangeContext) => void>; }, import("@vue/composition-api").ExtractPropTypes<{ rowKey: StringConstructor; row: PropType; rowIndex: NumberConstructor; col: PropType>; colIndex: NumberConstructor; oldCell: PropType) => import("vue/types/vnode").ScopedSlotReturnValue)>; tableBaseClass: PropType<{ table: (string | { [x: string]: boolean; })[]; columnResizableTable: string; overflowVisible: string; body: string; content: string; topContent: string; bottomContent: string; paginationWrap: string; tdLastRow: string; tdFirstCol: string; thCellInner: string; tableRowEdit: string; cellEditable: string; cellEditWrap: string; bordered: string; striped: string; hover: string; loading: string; rowspanAndColspan: string; empty: string; emptyRow: string; headerFixed: string; columnFixed: string; widthOverflow: string; multipleHeader: string; footerAffixed: string; horizontalBarAffixed: string; affixedHeader: string; affixedHeaderElm: string; affixedFooterElm: string; affixedFooterWrap: string; scrollbarDivider: string; fullHeight: string; resizeLine: string; obviousScrollbar: string; affixedHeaderWrap: string; }>; cellEmptyContent: PropType) => import("vue/types/vnode").ScopedSlotReturnValue)>; editable: { type: BooleanConstructor; default: any; }; readonly: { type: BooleanConstructor; }; errors: { type: PropType; default: any; }; onChange: PropType<(context: PrimaryTableRowEditContext) => void>; onValidate: PropType<(context: PrimaryTableRowValidateContext) => void>; onRuleChange: PropType<(context: PrimaryTableRowEditContext) => void>; onEditableChange: PropType<(context: OnEditableChangeContext) => void>; }>> & Omit, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{ readonly: boolean; editable: boolean; errors: AllValidateResult[]; } & { col?: unknown; onChange?: (context: PrimaryTableRowEditContext) => void; onValidate?: (context: PrimaryTableRowValidateContext) => void; rowIndex?: number; row?: unknown; cellEmptyContent?: string | ((h: import("vue").CreateElement, props: import("./type").BaseTableCellParams) => import("vue/types/vnode").ScopedSlotReturnValue); rowKey?: string; colIndex?: number; tableBaseClass?: { table: (string | { [x: string]: boolean; })[]; columnResizableTable: string; overflowVisible: string; body: string; content: string; topContent: string; bottomContent: string; paginationWrap: string; tdLastRow: string; tdFirstCol: string; thCellInner: string; tableRowEdit: string; cellEditable: string; cellEditWrap: string; bordered: string; striped: string; hover: string; loading: string; rowspanAndColspan: string; empty: string; emptyRow: string; headerFixed: string; columnFixed: string; widthOverflow: string; multipleHeader: string; footerAffixed: string; horizontalBarAffixed: string; affixedHeader: string; affixedHeaderElm: string; affixedFooterElm: string; affixedFooterWrap: string; scrollbarDivider: string; fullHeight: string; resizeLine: string; obviousScrollbar: string; affixedHeaderWrap: string; }; oldCell?: string | ((h: import("vue").CreateElement, props: import("./type").PrimaryTableCellParams) => import("vue/types/vnode").ScopedSlotReturnValue); onRuleChange?: (context: PrimaryTableRowEditContext) => void; onEditableChange?: (context: OnEditableChangeContext) => void; }, import("@vue/composition-api").ShallowUnwrapRef<{ editValue: import("@vue/composition-api").Ref; isEdit: import("@vue/composition-api").Ref; cellNode: import("@vue/composition-api").ComputedRef; isAbortEditOnChange: import("@vue/composition-api").ComputedRef; listeners: import("@vue/composition-api").ComputedRef<{ [key: string]: Function; }>; componentProps: import("@vue/composition-api").ComputedRef; tableEditableCellRef: any; errorList: import("@vue/composition-api").Ref; currentRow: import("@vue/composition-api").ComputedRef<{ [x: string]: any; children?: TableRowData[]; }>; editOnListeners: import("@vue/composition-api").ComputedRef<{ [eventName: string]: Function; }>; onEditChange: (val: any, ...args: any) => void; Edit1Icon: import("tdesign-icons-vue").GlobalIconType; validateEdit: (trigger: 'self' | 'parent') => Promise; onCellClick: (e: MouseEvent) => void; cellParams: import("@vue/composition-api").ComputedRef<{ rowIndex: number; colIndex: number; col: PrimaryTableCol; row: TableRowData; }>; }>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, { readonly: boolean; editable: boolean; errors: AllValidateResult[]; } & { col?: unknown; onChange?: (context: PrimaryTableRowEditContext) => void; onValidate?: (context: PrimaryTableRowValidateContext) => void; rowIndex?: number; row?: unknown; cellEmptyContent?: string | ((h: import("vue").CreateElement, props: import("./type").BaseTableCellParams) => import("vue/types/vnode").ScopedSlotReturnValue); rowKey?: string; colIndex?: number; tableBaseClass?: { table: (string | { [x: string]: boolean; })[]; columnResizableTable: string; overflowVisible: string; body: string; content: string; topContent: string; bottomContent: string; paginationWrap: string; tdLastRow: string; tdFirstCol: string; thCellInner: string; tableRowEdit: string; cellEditable: string; cellEditWrap: string; bordered: string; striped: string; hover: string; loading: string; rowspanAndColspan: string; empty: string; emptyRow: string; headerFixed: string; columnFixed: string; widthOverflow: string; multipleHeader: string; footerAffixed: string; horizontalBarAffixed: string; affixedHeader: string; affixedHeaderElm: string; affixedFooterElm: string; affixedFooterWrap: string; scrollbarDivider: string; fullHeight: string; resizeLine: string; obviousScrollbar: string; affixedHeaderWrap: string; }; oldCell?: string | ((h: import("vue").CreateElement, props: import("./type").PrimaryTableCellParams) => import("vue/types/vnode").ScopedSlotReturnValue); onRuleChange?: (context: PrimaryTableRowEditContext) => void; onEditableChange?: (context: OnEditableChangeContext) => void; }, { readonly: boolean; editable: boolean; errors: AllValidateResult[]; }, true>); export default _default;