Editable.d.ts 608 B

1234567891011121314151617181920
  1. import * as React from 'react';
  2. import type { TextAreaProps } from 'rc-textarea';
  3. import type { DirectionType } from '../config-provider';
  4. interface EditableProps {
  5. prefixCls: string;
  6. value: string;
  7. 'aria-label'?: string;
  8. onSave: (value: string) => void;
  9. onCancel: () => void;
  10. onEnd?: () => void;
  11. className?: string;
  12. style?: React.CSSProperties;
  13. direction?: DirectionType;
  14. maxLength?: number;
  15. autoSize?: TextAreaProps['autoSize'];
  16. enterIcon?: React.ReactNode;
  17. component?: string;
  18. }
  19. declare const Editable: React.FC<EditableProps>;
  20. export default Editable;