Browse Source

fix: xtable topAction

xingyu 2 năm trước cách đây
mục cha
commit
91e8da47e5
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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' }
     }