Commit 225bd4c39de377d93c605f33bfdf3d8fd565f12b
Committed by
GitHub
1 parent
7e6a89ff
fix: style property of actionColOpt is invalid (#997)
Showing
1 changed file
with
3 additions
and
2 deletions
src/components/Form/src/components/FormAction.vue
1 | 1 | <template> |
2 | - <a-col v-bind="actionColOpt" :style="{ textAlign: 'right' }" v-if="showActionButtonGroup"> | |
3 | - <div style="width: 100%; text-align: right"> | |
2 | + <a-col v-bind="actionColOpt" v-if="showActionButtonGroup"> | |
3 | + <div style="width: 100%" :style="{ textAlign: actionColOpt.style.textAlign }"> | |
4 | 4 | <FormItem> |
5 | 5 | <slot name="resetBefore"></slot> |
6 | 6 | <Button |
... | ... | @@ -92,6 +92,7 @@ |
92 | 92 | ? { span: actionSpan < 6 ? 24 : actionSpan } |
93 | 93 | : {}; |
94 | 94 | const actionColOpt: Partial<ColEx> = { |
95 | + style: { textAlign: 'right' }, | |
95 | 96 | span: showAdvancedButton ? 6 : 4, |
96 | 97 | ...advancedSpanObj, |
97 | 98 | ...actionColOptions, | ... | ... |