fix: 修复表单功能按钮布局问题
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Issue Close Require / close-issues (push) Has been cancelled
Close stale issues / stale (push) Has been cancelled

This commit is contained in:
2025-09-01 14:54:25 +08:00
parent 862580c156
commit c2e95ad60b
2 changed files with 9 additions and 1 deletions

View File

@@ -29,6 +29,10 @@ const props = defineProps({
type: Boolean,
default: true,
},
flex: {
type: Boolean,
default: true,
},
});
const MenuItem = Menu.Item;
@@ -128,7 +132,10 @@ const handleMenuClick = (e: any) => {
getActions?.some((item: ActionItem) => item.type === 'link') ? 0 : 8
"
>
<div v-if="getActions.length > 2" class="grid grid-cols-2 gap-3 md:gap-4">
<div
v-if="getActions.length > 2 && props.flex !== false"
class="grid grid-cols-2 gap-3 md:gap-4"
>
<template v-for="(action, index) in getActions" :key="index">
<Popconfirm
v-if="action.popConfirm"

View File

@@ -178,6 +178,7 @@ const openRefundModal = (id) => {
<Grid>
<template #toolbar-buttons>
<TableAction
:flex="false"
:actions="[
{
label: '导出',