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
|
display: 'inline-block', // default inline-block is important
|
||||||
...picked,
|
...picked,
|
||||||
cursor: 'not-allowed',
|
cursor: 'not-allowed',
|
||||||
|
lineHeight: 1, // use the true height of child nodes
|
||||||
width: ele.props && ele.props.block ? '100%' : null,
|
width: ele.props && ele.props.block ? '100%' : null,
|
||||||
};
|
};
|
||||||
const buttonStyle = {
|
const buttonStyle = {
|
||||||
|
@ -172,7 +173,7 @@ export default defineComponent({
|
||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<span style={spanStyle} class={`${prefixCls}-disabled-compatible-wrapper`}>
|
<span style={spanStyle} class={`${prefixCls.value}-disabled-compatible-wrapper`}>
|
||||||
{child}
|
{child}
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue