Commit 225bd4c39de377d93c605f33bfdf3d8fd565f12b

Authored by Lowell
Committed by GitHub
1 parent 7e6a89ff

fix: style property of actionColOpt is invalid (#997)

src/components/Form/src/components/FormAction.vue
1 <template> 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 <FormItem> 4 <FormItem>
5 <slot name="resetBefore"></slot> 5 <slot name="resetBefore"></slot>
6 <Button 6 <Button
@@ -92,6 +92,7 @@ @@ -92,6 +92,7 @@
92 ? { span: actionSpan < 6 ? 24 : actionSpan } 92 ? { span: actionSpan < 6 ? 24 : actionSpan }
93 : {}; 93 : {};
94 const actionColOpt: Partial<ColEx> = { 94 const actionColOpt: Partial<ColEx> = {
  95 + style: { textAlign: 'right' },
95 span: showAdvancedButton ? 6 : 4, 96 span: showAdvancedButton ? 6 : 4,
96 ...advancedSpanObj, 97 ...advancedSpanObj,
97 ...actionColOptions, 98 ...actionColOptions,