Skip to content

Commit f7fb512

Browse files
ffff
authored andcommitted
docs: 优化SearchBar文档
1 parent c98abe1 commit f7fb512

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

packages/core/src/SearchBar/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
SearchBar 模糊搜素组件
2-
3-
![](https://user-images.githubusercontent.com/66067296/140004480-cadbd892-afb3-483f-95a3-3bfe43a4bdfc.gif)<!--rehype:style=zoom: 33%;float: right; margin-left: 15px;-->
4-
52
---
63

74
### 基础示例
85

9-
```jsx
6+
```jsx mdx:preview
107
import { SearchBar } from '@uiw/react-native';
8+
import React from 'react';
119

1210
function Demo() {
1311
return (
@@ -18,10 +16,14 @@ function Demo() {
1816
{label:'南京',value:2}
1917
]}
2018
onFocus={()=>{}}
21-
onChange={val=>console.log('val',val)}
19+
onChange={val=>console.log('val',val)}
20+
placeholder="请输入搜索"
2221
/>
2322
);
2423
}
24+
25+
export default Demo
26+
2527
```
2628

2729
### props

0 commit comments

Comments
 (0)