type.d.ts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. export interface TdSearchProps {
  2. action?: {
  3. type: StringConstructor;
  4. value?: string;
  5. };
  6. adjustPosition?: {
  7. type: BooleanConstructor;
  8. value?: boolean;
  9. };
  10. alwaysEmbed?: {
  11. type: BooleanConstructor;
  12. value?: boolean;
  13. };
  14. center?: {
  15. type: BooleanConstructor;
  16. value?: boolean;
  17. };
  18. clearTrigger?: {
  19. type: StringConstructor;
  20. value?: 'always' | 'focus';
  21. };
  22. clearable?: {
  23. type: BooleanConstructor;
  24. value?: boolean;
  25. };
  26. confirmHold?: {
  27. type: BooleanConstructor;
  28. value?: boolean;
  29. };
  30. confirmType?: {
  31. type: StringConstructor;
  32. value?: 'send' | 'search' | 'next' | 'go' | 'done';
  33. };
  34. cursor: {
  35. type: NumberConstructor;
  36. value?: number;
  37. required?: boolean;
  38. };
  39. cursorSpacing?: {
  40. type: NumberConstructor;
  41. value?: number;
  42. };
  43. disabled?: {
  44. type: BooleanConstructor;
  45. value?: boolean;
  46. };
  47. focus?: {
  48. type: BooleanConstructor;
  49. value?: boolean;
  50. };
  51. holdKeyboard?: {
  52. type: BooleanConstructor;
  53. value?: boolean;
  54. };
  55. leftIcon?: {
  56. type: StringConstructor;
  57. value?: string;
  58. };
  59. maxcharacter?: {
  60. type: NumberConstructor;
  61. value?: number;
  62. };
  63. maxlength?: {
  64. type: NumberConstructor;
  65. value?: number;
  66. };
  67. placeholder?: {
  68. type: StringConstructor;
  69. value?: string;
  70. };
  71. placeholderClass?: {
  72. type: StringConstructor;
  73. value?: string;
  74. };
  75. placeholderStyle: {
  76. type: StringConstructor;
  77. value?: string;
  78. required?: boolean;
  79. };
  80. readonly?: {
  81. type: BooleanConstructor;
  82. value?: boolean;
  83. };
  84. resultList?: {
  85. type: ArrayConstructor;
  86. value?: Array<string>;
  87. };
  88. selectionEnd?: {
  89. type: NumberConstructor;
  90. value?: number;
  91. };
  92. selectionStart?: {
  93. type: NumberConstructor;
  94. value?: number;
  95. };
  96. shape?: {
  97. type: StringConstructor;
  98. value?: 'square' | 'round';
  99. };
  100. type?: {
  101. type: StringConstructor;
  102. value?: 'text' | 'number' | 'idcard' | 'digit' | 'nickname';
  103. };
  104. value?: {
  105. type: StringConstructor;
  106. value?: string;
  107. };
  108. }