🐛(component): 修复 customSlot 结合 tooltip 的问题
This commit is contained in:
@@ -35,7 +35,7 @@ import {
|
||||
shallowRef,
|
||||
computed,
|
||||
toRef,
|
||||
StyleValue,
|
||||
StyleValue
|
||||
} from "vue";
|
||||
import { onClickOutside, useEventListener, useThrottleFn } from "@vueuse/core";
|
||||
|
||||
|
||||
@@ -512,10 +512,12 @@ const radioProps = props.getRadioProps(props.data, props.index);
|
||||
|
||||
<lay-tooltip
|
||||
v-if="column.ellipsisTooltip"
|
||||
:content="data[column.key]"
|
||||
:isAutoShow="true"
|
||||
>
|
||||
<slot :name="column.customSlot" :data="data"></slot>
|
||||
<template #content>
|
||||
<slot :name="column.customSlot" :data="data"></slot>
|
||||
</template>
|
||||
</lay-tooltip>
|
||||
<slot v-else :name="column.customSlot" :data="data"></slot>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user