Browse Source

fix: expandIcon slot of BasicTable component is invalid (#975)

Lowell 3 years ago
parent
commit
98c206d9c9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/Table/src/BasicTable.vue

+ 1 - 1
src/components/Table/src/BasicTable.vue

@@ -211,7 +211,7 @@
           // ...(dataSource.length === 0 ? { getPopupContainer: () => document.body } : {}),
           ...attrs,
           customRow,
-          expandIcon: expandIcon(),
+          expandIcon: slots.expandIcon ? null : expandIcon(),
           ...unref(getProps),
           ...unref(getHeaderProps),
           scroll: unref(getScrollRef),