mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-23 17:50:25 +08:00
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:
parent
246d1be89e
commit
76ffd8fdf1
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user