Commit 21c771b59cb45defbff37de21c5c1950370b8f92
1 parent
49b66e83
fix: fix if getDropdownList.length==0 show Dropdown component
Showing
1 changed file
with
6 additions
and
2 deletions
src/components/Table/src/components/TableAction.vue
@@ -8,14 +8,18 @@ | @@ -8,14 +8,18 @@ | ||
8 | <Divider | 8 | <Divider |
9 | type="vertical" | 9 | type="vertical" |
10 | class="action-divider" | 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 | </template> | 17 | </template> |
14 | <Dropdown | 18 | <Dropdown |
15 | :trigger="['hover']" | 19 | :trigger="['hover']" |
16 | :dropMenuList="getDropdownList" | 20 | :dropMenuList="getDropdownList" |
17 | popconfirm | 21 | popconfirm |
18 | - v-if="dropDownActions" | 22 | + v-if="dropDownActions && getDropdownList.length > 0" |
19 | > | 23 | > |
20 | <slot name="more"></slot> | 24 | <slot name="more"></slot> |
21 | <a-button type="link" size="small" v-if="!$slots.more"> | 25 | <a-button type="link" size="small" v-if="!$slots.more"> |