Procházet zdrojové kódy

fix: xtable topAction

xingyu před 2 roky
rodič
revize
91e8da47e5

+ 4 - 0
yudao-ui-admin-vue3/src/components/XTable/src/XTable.vue

@@ -260,6 +260,10 @@ const getToolBarConfig = (options: XTableProps) => {
     }
   } else if (!topActionSlots) {
     options.toolbarConfig = {
+      enabled: true
+    }
+  } else {
+    options.toolbarConfig = {
       slots: { buttons: 'toolbar_buttons' }
     }
   }