We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71be3a2 commit a8db5f4Copy full SHA for a8db5f4
components/SearchBar/index.md renamed to components/SearchBar/README.md
@@ -1,16 +1,26 @@
1
-### 模糊搜素组件
+SearchBar 模糊搜素组件
2
+---
3
4
+## 基础示例
5
+
6
+```jsx
7
+import { Result, Icon } from '@uiw/react-native';
8
9
+function Demo() {
10
+ return (
11
+ <SearchBar
12
+ labelInValue
13
+ options={[
14
+ {label:'上海',value:1},
15
+ {label:'南京',value:2}
16
+ ]}
17
+ onFocu={()=>{}}
18
+ onChange={val=>console.log('val',val)}
19
+ />
20
+ );
21
+}
22
```
- <SearchBar
- labelInValue
- options={[
- {label:'上海',value:1},
- {label:'南京',value:2}
- ]}
- onFocu={()=>{}}
- onChange={val=>console.log('val',val)}
- />
-```
23
24
### props
25
26
| 参数 | 说明 | 类型 | 默认值 |
0 commit comments