Skip to content

Commit d3aa040

Browse files
committed
refactor(FormKitDataEdit): add button class prop
1 parent a7d64e7 commit d3aa040

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/FormKitDataEdit.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,15 @@ const props = defineProps({
3636
type: String,
3737
default: 'Cancel',
3838
},
39+
formClass: {
40+
type: String,
41+
default: '',
42+
},
3943
actionsClass: {
4044
type: String,
4145
default: '',
4246
},
43-
formClass: {
47+
buttonClass: {
4448
type: String,
4549
default: '',
4650
},
@@ -74,7 +78,7 @@ function handleSave() {
7478
<FormKitMessages class="p-formkit-data-edit-messages" />
7579
</template>
7680
<template #submit>
77-
<Button type="submit" :label="submitLabel" @submit="handleSave" />
81+
<Button type="submit" :label="submitLabel" :class="buttonClass" @submit="handleSave" />
7882
</template>
7983
</FormKit>
8084
<FormKitDebug v-if="debugData" :data="formData" header="Data" />

0 commit comments

Comments
 (0)