Skip to content

Commit

Permalink
fix: fix if getDropdownList.length==0 show Dropdown component
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmao88 committed Jun 17, 2021
1 parent 49b66e8 commit 21c771b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/Table/src/components/TableAction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@
<Divider
type="vertical"
class="action-divider"
v-if="divider && index < getActions.length - (dropDownActions ? 0 : 1)"
v-if="
divider &&
index < getActions.length - (dropDownActions ? 0 : 1) &&
getDropdownList.length > 0
"
/>
</template>
<Dropdown
:trigger="['hover']"
:dropMenuList="getDropdownList"
popconfirm
v-if="dropDownActions"
v-if="dropDownActions && getDropdownList.length > 0"
>
<slot name="more"></slot>
<a-button type="link" size="small" v-if="!$slots.more">
Expand Down

0 comments on commit 21c771b

Please sign in to comment.