Skip to content

Commit

Permalink
Update and rename index.md to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 31, 2021
1 parent 71be3a2 commit a8db5f4
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions components/SearchBar/index.md → components/SearchBar/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
### 模糊搜素组件
SearchBar 模糊搜素组件
---

## 基础示例

```jsx
import { Result, Icon } from '@uiw/react-native';

function Demo() {
return (
<SearchBar
labelInValue
options={[
{label:'上海',value:1},
{label:'南京',value:2}
]}
onFocu={()=>{}}
onChange={val=>console.log('val',val)}
/>
);
}
```
<SearchBar
labelInValue
options={[
{label:'上海',value:1},
{label:'南京',value:2}
]}
onFocu={()=>{}}
onChange={val=>console.log('val',val)}
/>
```

### props

| 参数 | 说明 | 类型 | 默认值 |
Expand Down

0 comments on commit a8db5f4

Please sign in to comment.