From 2d5439bad1012568c3c850cd22e7a146c535a0f2 Mon Sep 17 00:00:00 2001 From: zdhxiong Date: Thu, 2 May 2024 22:02:04 +0800 Subject: [PATCH] text-field: height can be adjusted with the height style. fixed #313 --- packages/mdui/src/components/text-field/style.less | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/mdui/src/components/text-field/style.less b/packages/mdui/src/components/text-field/style.less index 2ae870f8..0184c384 100644 --- a/packages/mdui/src/components/text-field/style.less +++ b/packages/mdui/src/components/text-field/style.less @@ -15,6 +15,7 @@ position: relative; display: flex; align-items: center; + height: 100%; .transition(box-shadow, short4, standard); .padding(0, 16); @@ -186,6 +187,7 @@ .input-container { width: 100%; + height: 100%; } .label { @@ -276,6 +278,8 @@ display: flex; flex-wrap: wrap; width: 100%; + height: 100%; + min-height: 100%; border: none; outline: none; background: none; @@ -291,6 +295,7 @@ &.hide-input { opacity: 0; height: 0; + min-height: 0; padding: 0 !important; overflow: hidden; }