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 | 255 | if (toolbarConfig) return |
| 256 | 256 | if (toolBar) { |
| 257 | 257 | if (!isBoolean(toolBar)) { |
| 258 | + console.info(2) | |
| 258 | 259 | options.toolbarConfig = toolBar |
| 259 | 260 | return |
| 260 | 261 | } |
| 261 | - } else if (!topActionSlots) { | |
| 262 | + } else if (topActionSlots != false) { | |
| 262 | 263 | options.toolbarConfig = { |
| 263 | - enabled: true | |
| 264 | + slots: { buttons: 'toolbar_buttons' } | |
| 264 | 265 | } |
| 265 | 266 | } else { |
| 266 | 267 | options.toolbarConfig = { |
| 267 | - slots: { buttons: 'toolbar_buttons' } | |
| 268 | + enabled: true | |
| 268 | 269 | } |
| 269 | 270 | } |
| 270 | 271 | } | ... | ... |