Skip to content

Commit

Permalink
fix(Picker): fixed the problem that sub-items cannot be adapted (#2782)
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao authored May 20, 2024
1 parent c6c857f commit 480c67b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/picker-item/picker-item.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@picker-item-height: var(--td-picker-item-height, 80rpx);
@picker-item-color: var(--td-picker-item-color, @text-color-secondary);
@picker-item-active-color: var(--td-picker-item-active-color, @text-color-primary);
@picker-item-font-size: var(--td-picker-item-font-size, @font-size-m);

:host {
display: flex;
Expand All @@ -32,6 +33,7 @@
text-overflow: ellipsis;
overflow: hidden;
color: @picker-item-color;
font-size: @picker-item-font-size;

&--active {
color: @picker-item-active-color;
Expand Down
1 change: 1 addition & 0 deletions src/picker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,5 @@ options | Array | [] | 数据源。TS 类型:`PickerItemOption[]` `interface P
--td-picker-toolbar-height | 116rpx | -
--td-picker-item-active-color | @font-gray-1 | -
--td-picker-item-color | @font-gray-2 | -
--td-picker-item-font-size | @font-size-m | -
--td-picker-item-height | 80rpx | -

0 comments on commit 480c67b

Please sign in to comment.