fix(Tooltip): prefixCls and span line-height while in disabled Compatible (#5627)

pull/5644/head
Xavier Luo 2022-05-23 09:07:43 +08:00 committed by GitHub
parent d9b3d8057f
commit 3cbbba1020
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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 (
<span style={spanStyle} class={`${prefixCls}-disabled-compatible-wrapper`}>
<span style={spanStyle} class={`${prefixCls.value}-disabled-compatible-wrapper`}>
{child}
</span>
);