|
7 | 7 | name | type | default | description | required |
8 | 8 | -- | -- | -- | -- | -- |
9 | 9 | className | String | - | className of component | N |
10 | | -style | Object | - | CSS(Cascading Style Sheets),Typescript:`React.CSSProperties` | N |
11 | | -action | TNode | '' | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N |
12 | | -autocompleteOptions | Array | - | autocomplete words list。Typescript:`Array<AutocompleteOption>` `type AutocompleteOption = string \| { label: string \| TNode; group?: boolean }`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts)。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/search/type.ts) | N |
| 10 | +style | Object | - | CSS(Cascading Style Sheets),Typescript: `React.CSSProperties` | N |
| 11 | +action | TNode | '' | Typescript: `string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N |
| 12 | +autocompleteOptions | Array | - | autocomplete words list。Typescript: `Array<AutocompleteOption>` `type AutocompleteOption = string \| { label: string \| TNode; group?: boolean }`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts)。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/search/type.ts) | N |
13 | 13 | center | Boolean | false | \- | N |
14 | 14 | clearTrigger | String | always | show clear icon, clicked to clear input value。options: always / focus | N |
15 | 15 | clearable | Boolean | true | \- | N |
| 16 | +cursorColor | String | #0052d9 | `0.21.2` | N |
16 | 17 | disabled | Boolean | false | \- | N |
17 | 18 | focus | Boolean | false | \- | N |
18 | | -leftIcon | TNode | 'search' | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N |
| 19 | +leftIcon | TNode | 'search' | Typescript: `string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N |
19 | 20 | placeholder | String | '' | \- | N |
20 | | -prefixIcon | TElement | - | `deprecated`。Typescript:`TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N |
| 21 | +prefixIcon | TElement | - | `deprecated`。Typescript: `TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N |
21 | 22 | readonly | Boolean | undefined | \- | N |
22 | 23 | shape | String | 'square' | options: square/round | N |
23 | | -suffixIcon | TElement | - | `deprecated`。Typescript:`TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N |
| 24 | +suffixIcon | TElement | - | `deprecated`。Typescript: `TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N |
24 | 25 | value | String | - | \- | N |
25 | 26 | defaultValue | String | - | uncontrolled property | N |
26 | | -onActionClick | Function | | Typescript:`({}) => void`<br/> | N |
27 | | -onBlur | Function | | Typescript:`(context: { value: string; e: FocusEvent }) => void`<br/> | N |
28 | | -onChange | Function | | Typescript:`(value: string, context: { trigger: 'input-change' \| 'option-click'; e?: InputEvent \| MouseEvent }) => void`<br/> | N |
29 | | -onClear | Function | | Typescript:`(context: { e: MouseEvent }) => void`<br/> | N |
30 | | -onFocus | Function | | Typescript:`(context: { value: string; e: FocusEvent }) => void`<br/> | N |
31 | | -onSearch | Function | | Typescript:`(context?: { value: string; trigger: 'submit' \| 'option-click' \| 'clear'; e?: InputEvent \| MouseEvent }) => void`<br/> | N |
32 | | -onSubmit | Function | | Typescript:`(context: { value: string; e: KeyboardEvent }) => void`<br/> | N |
| 27 | +onActionClick | Function | | Typescript: `({}) => void`<br/> | N |
| 28 | +onBlur | Function | | Typescript: `(context: { value: string; e: FocusEvent }) => void`<br/> | N |
| 29 | +onChange | Function | | Typescript: `(value: string, context: { trigger: 'input-change' \| 'option-click'; e?: InputEvent \| MouseEvent }) => void`<br/> | N |
| 30 | +onClear | Function | | Typescript: `(context: { e: MouseEvent }) => void`<br/> | N |
| 31 | +onFocus | Function | | Typescript: `(context: { value: string; e: FocusEvent }) => void`<br/> | N |
| 32 | +onSearch | Function | | Typescript: `(context?: { value: string; trigger: 'submit' \| 'option-click' \| 'clear'; e?: InputEvent \| MouseEvent }) => void`<br/> | N |
| 33 | +onSubmit | Function | | Typescript: `(context: { value: string; e: KeyboardEvent }) => void`<br/> | N |
0 commit comments