From d207b95b29c380b46ff31e7a9f7f9d0f5842d7be Mon Sep 17 00:00:00 2001 From: xingyu Date: Thu, 19 Jan 2023 13:44:04 +0800 Subject: [PATCH] fix: topAction bug --- yudao-ui-admin-vue3/src/components/XTable/src/XTable.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/yudao-ui-admin-vue3/src/components/XTable/src/XTable.vue b/yudao-ui-admin-vue3/src/components/XTable/src/XTable.vue index d093489db..340497512 100644 --- a/yudao-ui-admin-vue3/src/components/XTable/src/XTable.vue +++ b/yudao-ui-admin-vue3/src/components/XTable/src/XTable.vue @@ -255,16 +255,17 @@ const getToolBarConfig = (options: XTableProps) => { if (toolbarConfig) return if (toolBar) { if (!isBoolean(toolBar)) { + console.info(2) options.toolbarConfig = toolBar return } - } else if (!topActionSlots) { + } else if (topActionSlots != false) { options.toolbarConfig = { - enabled: true + slots: { buttons: 'toolbar_buttons' } } } else { options.toolbarConfig = { - slots: { buttons: 'toolbar_buttons' } + enabled: true } } }