ソースを参照

fix: Update TableAction.vue (#3619)

Clearing icon property to avoid using icon name in PopConfirmButton and delegate the icon only to the Icon component
Carlos Andres Padillla Sainz 1 年間 前
コミット
76ffd8fdf1
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/components/Table/src/components/TableAction.vue

+ 1 - 1
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>