xingyu 2 лет назад
Родитель
Сommit
91e8da47e5
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      yudao-ui-admin-vue3/src/components/XTable/src/XTable.vue

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

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