Skip to content

Commit a8db5f4

Browse files
committed
Update and rename index.md to README.md
1 parent 71be3a2 commit a8db5f4

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

components/SearchBar/index.md renamed to components/SearchBar/README.md

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
1-
### 模糊搜素组件
1+
SearchBar 模糊搜素组件
2+
---
23

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+
}
322
```
4-
<SearchBar
5-
labelInValue
6-
options={[
7-
{label:'上海',value:1},
8-
{label:'南京',value:2}
9-
]}
10-
onFocu={()=>{}}
11-
onChange={val=>console.log('val',val)}
12-
/>
13-
```
23+
1424
### props
1525

1626
| 参数 | 说明 | 类型 | 默认值 |

0 commit comments

Comments
 (0)