fix: Update TableAction.vue (#3619)

Clearing icon property to avoid using icon name in PopConfirmButton and delegate the icon only to the Icon component
This commit is contained in:
Carlos Andres Padillla Sainz 2024-02-21 02:09:19 -06:00 committed by GitHub
parent 246d1be89e
commit 76ffd8fdf1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,7 @@
<div :class="[prefixCls, getAlign]" @click="onCellClick">
<template v-for="(action, index) in getActions" :key="`${index}-${action.label}`">
<Tooltip v-if="action.tooltip" v-bind="getTooltip(action.tooltip)">
<PopConfirmButton v-bind="action">
<PopConfirmButton v-bind="omit(action, 'icon')">
<Icon :icon="action.icon" :class="{ 'mr-1': !!action.label }" v-if="action.icon" />
<template v-if="action.label">{{ action.label }}</template>
</PopConfirmButton>