Skip to content

Commit 21c771b

Browse files
committed
fix: fix if getDropdownList.length==0 show Dropdown component
1 parent 49b66e8 commit 21c771b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@
88
<Divider
99
type="vertical"
1010
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+
"
1216
/>
1317
</template>
1418
<Dropdown
1519
:trigger="['hover']"
1620
:dropMenuList="getDropdownList"
1721
popconfirm
18-
v-if="dropDownActions"
22+
v-if="dropDownActions && getDropdownList.length > 0"
1923
>
2024
<slot name="more"></slot>
2125
<a-button type="link" size="small" v-if="!$slots.more">

0 commit comments

Comments
 (0)