From 5764e912703435f2fcce9e90510cedac87a03588 Mon Sep 17 00:00:00 2001 From: XavierLuo <664898364@qq.com> Date: Sat, 21 May 2022 20:24:14 +0800 Subject: [PATCH] fix(Tooltip): prefixCls and span line-height while in disabled Compatible --- components/tooltip/Tooltip.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/tooltip/Tooltip.tsx b/components/tooltip/Tooltip.tsx index 36bd24843e..560ae47bd7 100644 --- a/components/tooltip/Tooltip.tsx +++ b/components/tooltip/Tooltip.tsx @@ -158,6 +158,7 @@ export default defineComponent({ display: 'inline-block', // default inline-block is important ...picked, cursor: 'not-allowed', + lineHeight: 1, // use the true height of child nodes width: ele.props && ele.props.block ? '100%' : null, }; const buttonStyle = { @@ -172,7 +173,7 @@ export default defineComponent({ true, ); return ( - + {child} );