Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(searchbar): 增加cursor-spacing属性(#2458) #2587

Merged
merged 1 commit into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/packages/__VUE/searchbar/doc.taro.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ app.use(Searchbar);
| readonly | 输入框只读 | boolean | `false` |
| input-align | 对齐方式,可选 `left` `center` `right` | string | `left` |
| safe-area-inset-bottom`v4.1.6` | 是否开启 iphone 系列全面屏底部安全区适配 | boolean | `false` |
| cursor-spacing`v4.1.7` | 指定光标与键盘的距离,取 input 距离底部的距离和 cursor-spacing 指定的距离的最小值作为光标与键盘的距离 | number | 0 |

### Events

Expand Down
5 changes: 5 additions & 0 deletions src/packages/__VUE/searchbar/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
:disabled="disabled"
:readonly="readonly"
:style="styleSearchbar"
:cursor-spacing="cursorSpacing"
@click="clickInput"
@input="valueChange"
@focus="valueFocus"
Expand Down Expand Up @@ -124,6 +125,10 @@ export default create({
safeAreaInsetBottom: {
type: Boolean,
default: false
},
cursorSpacing: {
type: Number,
default: 0
}
},

Expand Down