@antdp/edit-table
Version:
基于antd封装的组件
24 lines (23 loc) • 943 B
TypeScript
import React from 'react';
import { ColumnsProps, EditableCellItemProps } from "./interface";
export interface EditableCellProps {
editing: boolean;
dataIndex: string;
title: ColumnsProps["title"];
record: any;
index: number;
inputNode: ColumnsProps["inputNode"];
rules: ColumnsProps["rules"];
children: React.ReactNode;
itemAttr: ColumnsProps["itemAttr"];
type: ColumnsProps["type"];
attr: ColumnsProps['attr'];
tip: ColumnsProps["tip"];
tipAttr: ColumnsProps["tipAttr"];
multiple: boolean;
rowKey: string;
[x: string]: any;
}
declare const EditableCell: ({ editing, dataIndex, title, record, index, inputNode, rules, children, itemAttr, type, attr, tip, tipAttr, multiple, rowKey, isList, listAttr, ...restProps }: EditableCellProps) => React.JSX.Element;
export declare const EditableCellItem: (props: EditableCellItemProps) => React.JSX.Element;
export default EditableCell;