Parcourir la source

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

Lowell il y a 3 ans
Parent
commit
98c206d9c9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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),