Skip to content

Commit

Permalink
feat(TreeSelect): support label super long ellipsis
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Jul 20, 2023
1 parent be8e097 commit a70e535
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tree-select/tree-select.less
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
}

&__item {
.ellipsisLn(1);

height: @tree-item-height;
line-height: @tree-item-height;
font-size: @tree-item-font-size;
Expand Down
1 change: 1 addition & 0 deletions src/tree-select/tree-select.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
class="{{classPrefix}}__radio-item {{prefix}}-class-right-item"
t-class-label="{{prefix}}-class-right-item-label"
value="{{item.value}}"
maxLabelRow="{{1}}"
borderless
placement="right"
>{{item.label}}</t-radio
Expand Down

0 comments on commit a70e535

Please sign in to comment.