Skip to content

Commit

Permalink
docs(searchbar): update #2474
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu committed Aug 3, 2023
1 parent 186ab94 commit 8314101
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/packages/__VUE/searchbar/doc.taro.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,24 +247,24 @@ app.use(Searchbar);

### Props

| 参数 | 说明 | 类型 | 默认值 |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------- | -------- | ------------- | ------ |
| v-model | 当前输入的值 | number / | string | `''` |
| label | 搜索框左侧文本 | string | `''` |
| shape | 搜索框形状,可选值为 `square` `round` | string | `round` |
| max-length | 最大输入长度 | number / | string | `9999` |
| input-type | 输入框类型 | string | `text` |
| placeholder | 输入框默认暗纹 | string | `请输入` |
| clearable | 是否展示清除按钮 | boolean | `true` |
| clear-icon | 自定义清除按钮图标(默认使用 `@nutui/nutui-icons`| Object | `CircleClose` |
| background | 输入框外部背景 | string | `#fff` |
| input-background | 输入框内部背景 | string | `#f7f7f7` |
| confirm-type | 键盘右下角按钮的文字,仅在`type='text'`时生效,可选值 `send`:发送、`search`:搜索、`next`:下一个、`go`:前往、`done`:完成 | string | `done` |
| autofocus | 是否自动聚焦 | boolean | `false` |
| focus-style | 聚焦时搜索框样式 | Object | `-` |
| disabled | 是否禁用输入框 | boolean | `false` |
| readonly | 输入框只读 | boolean | `false` |
| input-align | 对齐方式,可选 `left` `center` `right` | string | `left` |
| 参数 | 说明 | 类型 | 默认值 |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------- | ------------- |
| v-model | 当前输入的值 | number \| string | `''` |
| label | 搜索框左侧文本 | string | `''` |
| shape | 搜索框形状,可选值为 `square` `round` | string | `round` |
| max-length | 最大输入长度 | number \| string | `9999` |
| input-type | 输入框类型 | string | `text` |
| placeholder | 输入框默认暗纹 | string | `请输入` |
| clearable | 是否展示清除按钮 | boolean | `true` |
| clear-icon | 自定义清除按钮图标(默认使用 `@nutui/nutui-icons`| Object | `CircleClose` |
| background | 输入框外部背景 | string | `#fff` |
| input-background | 输入框内部背景 | string | `#f7f7f7` |
| confirm-type | 键盘右下角按钮的文字,仅在`type='text'`时生效,可选值 `send`:发送、`search`:搜索、`next`:下一个、`go`:前往、`done`:完成 | string | `done` |
| autofocus | 是否自动聚焦 | boolean | `false` |
| focus-style | 聚焦时搜索框样式 | Object | `-` |
| disabled | 是否禁用输入框 | boolean | `false` |
| readonly | 输入框只读 | boolean | `false` |
| input-align | 对齐方式,可选 `left` `center` `right` | string | `left` |

### Events

Expand Down

0 comments on commit 8314101

Please sign in to comment.