Skip to content

Commit

Permalink
feat: 输入框新增 cursorColor 属性,支持自定义光标颜色
Browse files Browse the repository at this point in the history
  • Loading branch information
SkylerXie committed Jan 2, 2025
1 parent 85f5552 commit 0e80cdf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions style/mobile/components/input/v2/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@
line-height: 20px;
padding-top: 4px;
}

&__cursorColor {
caret-color: @input-cursor-color;
}
}

.input-status(@status) {
Expand Down
1 change: 1 addition & 0 deletions style/mobile/components/input/v2/_var.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@
@input-suffix-text-color: var(--td-input-suffix-text-color, @text-color-primary); // 后置图标前的后置内容文本颜色
@input-disabled-text-color: var(--td-input-disabled-text-color, @text-color-disabled); // 输入框禁用态文本颜色
@input-border-radius: var(--td-input-border-radius, @radius-default); // 边框圆角大小
@input-cursor-color: var(--td-input-cursor-color, @brand-color); // 输入框光标颜色

0 comments on commit 0e80cdf

Please sign in to comment.