import { Form, Input} from "antd" export const EditableCell = ({ editing, record, dataIndex, input, isRequired, title, formItemClass, formItemRules, children, initialValue, }) => { const inputNode = input ?? const rules = formItemRules ?? [{ required: isRequired, message: `Please Input ${title}!`, }] const editor = {inputNode} const tdStyle = editing ? { padding:0 } : null return ( {editing ? editor: children} ) }