Commit 21c771b59cb45defbff37de21c5c1950370b8f92

Authored by JinMao
1 parent 49b66e83

fix: fix if getDropdownList.length==0 show Dropdown component

src/components/Table/src/components/TableAction.vue
... ... @@ -8,14 +8,18 @@
8 8 <Divider
9 9 type="vertical"
10 10 class="action-divider"
11   - v-if="divider && index < getActions.length - (dropDownActions ? 0 : 1)"
  11 + v-if="
  12 + divider &&
  13 + index < getActions.length - (dropDownActions ? 0 : 1) &&
  14 + getDropdownList.length > 0
  15 + "
12 16 />
13 17 </template>
14 18 <Dropdown
15 19 :trigger="['hover']"
16 20 :dropMenuList="getDropdownList"
17 21 popconfirm
18   - v-if="dropDownActions"
  22 + v-if="dropDownActions && getDropdownList.length > 0"
19 23 >
20 24 <slot name="more"></slot>
21 25 <a-button type="link" size="small" v-if="!$slots.more">
... ...