赞
踩
思路:给tooltip加上overlayClassName属性,并在less中加上:global
<a-tooltip :trigger="['focus']" placement="topLeft" overlayClassName="memo-tooltip">
<template v-if="databyScoreList[index].memo" #title>
<span> {{ databyScoreList[index].memo }} </span>
</template>
<a-input v-model:value="databyScoreList[index].memo" placeholder="请输入" class="big-inp"></a-input>
</a-tooltip>
.memo-tooltip {
:global(.ant-tooltip-inner) {
max-width: 172px;
}
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。