mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-11-30 14:32:09 +08:00
style(form): table新增按钮放到右边
This commit is contained in:
parent
d22e520fbf
commit
cd1a876aac
@ -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">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user