style(form): table新增按钮放到右边

This commit is contained in:
roymondchen 2025-10-28 15:30:44 +08:00
parent 0f3dfcf511
commit 3c3ba6525b

View File

@ -24,15 +24,11 @@
<slot></slot> <slot></slot>
<div style="display: flex; justify-content: space-between; margin: 10px 0"> <div style="display: flex; justify-content: space-between; margin: 10px 0">
<TMagicButton v-if="addable" size="small" type="primary" :disabled="disabled" plain @click="newHandler()"
>新增一行</TMagicButton
>
<div style="display: flex"> <div style="display: flex">
<TMagicButton <TMagicButton
:icon="Grid" :icon="Grid"
size="small" size="small"
type="primary" type="defalut"
@click="toggleMode" @click="toggleMode"
v-if="enableToggleMode && config.enableToggleMode !== false && !isFullscreen" v-if="enableToggleMode && config.enableToggleMode !== false && !isFullscreen"
>展开配置</TMagicButton >展开配置</TMagicButton
@ -40,7 +36,7 @@
<TMagicButton <TMagicButton
:icon="FullScreen" :icon="FullScreen"
size="small" size="small"
type="primary" type="defalut"
@click="toggleFullscreen" @click="toggleFullscreen"
v-if="config.enableFullscreen !== false" v-if="config.enableFullscreen !== false"
> >
@ -61,6 +57,9 @@
>清空</TMagicButton >清空</TMagicButton
> >
</div> </div>
<TMagicButton v-if="addable" size="small" type="primary" :disabled="disabled" plain @click="newHandler()"
>新增一行</TMagicButton
>
</div> </div>
<div class="bottom" style="text-align: right" v-if="config.pagination"> <div class="bottom" style="text-align: right" v-if="config.pagination">