type.d.ts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. export interface TdTextareaProps {
  2. adjustPosition?: {
  3. type: BooleanConstructor;
  4. value?: boolean;
  5. };
  6. allowInputOverMax?: {
  7. type: BooleanConstructor;
  8. value?: boolean;
  9. };
  10. autofocus?: {
  11. type: BooleanConstructor;
  12. value?: boolean;
  13. };
  14. autosize?: {
  15. type: null;
  16. value?: boolean | {
  17. maxHeight?: number;
  18. minHeight?: number;
  19. };
  20. };
  21. bordered?: {
  22. type: BooleanConstructor;
  23. value?: boolean;
  24. };
  25. confirmHold?: {
  26. type: BooleanConstructor;
  27. value?: boolean;
  28. };
  29. confirmType?: {
  30. type: StringConstructor;
  31. value?: 'return' | 'send' | 'search' | 'next' | 'go' | 'done';
  32. };
  33. cursor?: {
  34. type: NumberConstructor;
  35. value?: number;
  36. };
  37. cursorColor?: {
  38. type: StringConstructor;
  39. value?: string;
  40. };
  41. cursorSpacing?: {
  42. type: NumberConstructor;
  43. value?: number;
  44. };
  45. disableDefaultPadding?: {
  46. type: BooleanConstructor;
  47. value?: boolean;
  48. };
  49. disabled?: {
  50. type: BooleanConstructor;
  51. value?: boolean;
  52. };
  53. fixed?: {
  54. type: BooleanConstructor;
  55. value?: boolean;
  56. };
  57. focus?: {
  58. type: BooleanConstructor;
  59. value?: boolean;
  60. };
  61. holdKeyboard?: {
  62. type: BooleanConstructor;
  63. value?: boolean;
  64. };
  65. indicator?: {
  66. type: BooleanConstructor;
  67. value?: boolean;
  68. };
  69. label?: {
  70. type: StringConstructor;
  71. value?: string;
  72. };
  73. maxcharacter?: {
  74. type: NumberConstructor;
  75. value?: number;
  76. };
  77. maxlength?: {
  78. type: NumberConstructor;
  79. value?: number;
  80. };
  81. placeholder?: {
  82. type: StringConstructor;
  83. value?: string;
  84. };
  85. placeholderClass?: {
  86. type: StringConstructor;
  87. value?: string;
  88. };
  89. placeholderStyle?: {
  90. type: StringConstructor;
  91. value?: string;
  92. };
  93. readonly?: {
  94. type: BooleanConstructor;
  95. value?: boolean;
  96. };
  97. selectionEnd?: {
  98. type: NumberConstructor;
  99. value?: number;
  100. };
  101. selectionStart?: {
  102. type: NumberConstructor;
  103. value?: number;
  104. };
  105. showConfirmBar?: {
  106. type: BooleanConstructor;
  107. value?: boolean;
  108. };
  109. value?: {
  110. type: null;
  111. value?: TextareaValue;
  112. };
  113. defaultValue?: {
  114. type: null;
  115. value?: TextareaValue;
  116. };
  117. }
  118. export declare type TextareaValue = string | number;