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 2 years ago
committed by GitHub
parent
commit
76ffd8fdf1
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/components/Table/src/components/TableAction.vue

2
src/components/Table/src/components/TableAction.vue

@ -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…
Cancel
Save