From a70e53506d395972fae57e4387d405838ee2e5a5 Mon Sep 17 00:00:00 2001 From: anlyyao Date: Thu, 20 Jul 2023 17:27:17 +0800 Subject: [PATCH] feat(TreeSelect): support label super long ellipsis --- src/tree-select/tree-select.less | 2 ++ src/tree-select/tree-select.wxml | 1 + 2 files changed, 3 insertions(+) diff --git a/src/tree-select/tree-select.less b/src/tree-select/tree-select.less index 35e5daca6..77f59237c 100644 --- a/src/tree-select/tree-select.less +++ b/src/tree-select/tree-select.less @@ -31,6 +31,8 @@ } &__item { + .ellipsisLn(1); + height: @tree-item-height; line-height: @tree-item-height; font-size: @tree-item-font-size; diff --git a/src/tree-select/tree-select.wxml b/src/tree-select/tree-select.wxml index 5a0f3505a..6f197544d 100644 --- a/src/tree-select/tree-select.wxml +++ b/src/tree-select/tree-select.wxml @@ -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}}