Commit d207b95b29c380b46ff31e7a9f7f9d0f5842d7be
1 parent
fbb154f9
fix: topAction bug
Showing
1 changed file
with
4 additions
and
3 deletions
yudao-ui-admin-vue3/src/components/XTable/src/XTable.vue
| @@ -255,16 +255,17 @@ const getToolBarConfig = (options: XTableProps) => { | @@ -255,16 +255,17 @@ const getToolBarConfig = (options: XTableProps) => { | ||
| 255 | if (toolbarConfig) return | 255 | if (toolbarConfig) return |
| 256 | if (toolBar) { | 256 | if (toolBar) { |
| 257 | if (!isBoolean(toolBar)) { | 257 | if (!isBoolean(toolBar)) { |
| 258 | + console.info(2) | ||
| 258 | options.toolbarConfig = toolBar | 259 | options.toolbarConfig = toolBar |
| 259 | return | 260 | return |
| 260 | } | 261 | } |
| 261 | - } else if (!topActionSlots) { | 262 | + } else if (topActionSlots != false) { |
| 262 | options.toolbarConfig = { | 263 | options.toolbarConfig = { |
| 263 | - enabled: true | 264 | + slots: { buttons: 'toolbar_buttons' } |
| 264 | } | 265 | } |
| 265 | } else { | 266 | } else { |
| 266 | options.toolbarConfig = { | 267 | options.toolbarConfig = { |
| 267 | - slots: { buttons: 'toolbar_buttons' } | 268 | + enabled: true |
| 268 | } | 269 | } |
| 269 | } | 270 | } |
| 270 | } | 271 | } |