From 1b3033d73d56e558b1d95917b5924da77c7f5b7a Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Tue, 30 Jun 2020 11:40:20 +0800 Subject: [PATCH] =?UTF-8?q?list=20=20=E7=9A=84=20placeholder=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20html=E6=88=96=E8=80=85=E5=85=B6=E4=BB=96=E6=B8=B2?= =?UTF-8?q?=E6=9F=93=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scss/components/_list.scss | 2 +- src/renderers/List.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scss/components/_list.scss b/scss/components/_list.scss index 75319c29..e18e6fdb 100644 --- a/scss/components/_list.scss +++ b/scss/components/_list.scss @@ -78,7 +78,7 @@ &-placeholder { color: $text--muted-color; text-align: center; - height: $List-placeholder-height; + min-height: $List-placeholder-height; line-height: $List-placeholder-height; } } diff --git a/src/renderers/List.tsx b/src/renderers/List.tsx index da8a501c..8608162b 100644 --- a/src/renderers/List.tsx +++ b/src/renderers/List.tsx @@ -789,7 +789,9 @@ export default class List extends React.Component { )} ) : ( -
{__(placeholder)}
+
+ {render('placeholder', __(placeholder))} +
)} {this.renderFooter()}