props.d.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. import { IBaseProps } from '../../_util/base';
  2. /**
  3. * 有效值:return(显示“换行”)、done(显示“完成”)、go(显示“前往”)、next(显示“下一个”)、search(显示“搜索”)、send(显示“发送”)。
  4. */
  5. export type ConfirmType = 'return' | 'done' | 'go' | 'next' | 'search' | 'send';
  6. /**
  7. * @description 输入框。
  8. */
  9. export interface TextareaProps extends IBaseProps {
  10. value?: string;
  11. defaultValue: string;
  12. placeholder: string;
  13. placeholderClassName: string;
  14. placeholderStyle: string;
  15. autoHeight: boolean;
  16. showCount: boolean;
  17. allowClear: boolean;
  18. controlled: boolean;
  19. enableNative?: boolean;
  20. maxLength?: number;
  21. inputClassName: string;
  22. disabled?: boolean;
  23. inputStyle: string;
  24. focusStyle?: string;
  25. name?: string;
  26. confirmType?: ConfirmType;
  27. focus?: boolean;
  28. confirmHold?: string;
  29. onChange?: (value: string, e: any) => void;
  30. onBlur?: (value: string, e: any) => void;
  31. onFocus?: (value: string, e: any) => void;
  32. onConfirm?: (value: string, e: any) => void;
  33. }
  34. export declare const TextareaDefaultProps: TextareaProps;