Browse Source
fix: Update TableAction.vue (#3619)
Clearing icon property to avoid using icon name in PopConfirmButton and delegate the icon only to the Icon component
pull/3625/head
Carlos Andres Padillla Sainz
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
src/components/Table/src/components/TableAction.vue
|
|
@ -2,7 +2,7 @@ |
|
|
<div :class="[prefixCls, getAlign]" @click="onCellClick"> |
|
|
<div :class="[prefixCls, getAlign]" @click="onCellClick"> |
|
|
<template v-for="(action, index) in getActions" :key="`${index}-${action.label}`"> |
|
|
<template v-for="(action, index) in getActions" :key="`${index}-${action.label}`"> |
|
|
<Tooltip v-if="action.tooltip" v-bind="getTooltip(action.tooltip)"> |
|
|
<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" /> |
|
|
<Icon :icon="action.icon" :class="{ 'mr-1': !!action.label }" v-if="action.icon" /> |
|
|
<template v-if="action.label">{{ action.label }}</template> |
|
|
<template v-if="action.label">{{ action.label }}</template> |
|
|
</PopConfirmButton> |
|
|
</PopConfirmButton> |
|
|
|