fix row column + buttonrow

This commit is contained in:
2023-05-08 17:29:22 +10:00
parent ff040eec58
commit e42c4c3023
3 changed files with 34 additions and 23 deletions

View File

@@ -53,11 +53,13 @@
</SMColumn> </SMColumn>
</SMRow> </SMRow>
<SMRow> <SMRow>
<SMButtonRow> <SMColumn>
<template #right> <SMButtonRow>
<SMButton type="submit" label="Save" /> <template #right>
</template> <SMButton type="submit" label="Save" />
</SMButtonRow> </template>
</SMButtonRow>
</SMColumn>
</SMRow> </SMRow>
</SMForm> </SMForm>
</SMContainer> </SMContainer>

View File

@@ -117,11 +117,13 @@
</SMColumn> </SMColumn>
</SMRow> </SMRow>
<SMRow> <SMRow>
<SMButtonRow> <SMColumn>
<template #right> <SMButtonRow>
<SMButton type="submit" label="Save" /> <template #right>
</template> <SMButton type="submit" label="Save" />
</SMButtonRow> </template>
</SMButtonRow>
</SMColumn>
</SMRow> </SMRow>
</SMForm> </SMForm>
</SMContainer> </SMContainer>

View File

@@ -71,19 +71,26 @@
<SMInput type="textarea" control="description" /> <SMInput type="textarea" control="description" />
</SMColumn> </SMColumn>
</SMRow> </SMRow>
<SMButtonRow> <SMRow>
<template #right> <SMColumn>
<SMButton type="submit" label="Save" :form="form" /> <SMButtonRow>
</template> <template #right>
<template #left> <SMButton
<SMButton type="submit"
:form="form" label="Save"
v-if="route.params.id" :form="form" />
type="danger" </template>
label="Delete" <template #left>
@click="handleDelete" /> <SMButton
</template> :form="form"
</SMButtonRow> v-if="route.params.id"
type="danger"
label="Delete"
@click="handleDelete" />
</template>
</SMButtonRow>
</SMColumn>
</SMRow>
</SMForm> </SMForm>
</SMContainer> </SMContainer>
</SMPage> </SMPage>