fix(Tooltip): prefixCls and span line-height while in disabled Compatible (#5627)
parent
d9b3d8057f
commit
3cbbba1020
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue