Skip to content

Commit

Permalink
feat(TreeSelect): support label super long ellipsis (#2208)
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao authored Jul 21, 2023
1 parent 22a3645 commit d66e67c
Show file tree
Hide file tree
Showing 2 changed files with 4 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
2 changes: 2 additions & 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 All @@ -68,6 +69,7 @@
wx:key="value"
placement="right"
icon="line"
maxLabelRow="{{1}}"
class="{{prefix}}-class-right-item"
t-class-label="{{prefix}}-class-right-item-label"
borderless
Expand Down

0 comments on commit d66e67c

Please sign in to comment.