Skip to content

Commit

Permalink
feat(searchbar): 增加 cursor-spacing 属性(#2458) (#2587)
Browse files Browse the repository at this point in the history
  • Loading branch information
yi-boide authored Oct 9, 2023
1 parent ec8504f commit 05094d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
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

0 comments on commit 05094d9

Please sign in to comment.