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

This commit is contained in:
Lowell
2021-07-28 23:09:25 +08:00
committed by GitHub
parent 7e6a89ffeb
commit 225bd4c39d

View File

@@ -1,6 +1,6 @@
<template>
<a-col v-bind="actionColOpt" :style="{ textAlign: 'right' }" v-if="showActionButtonGroup">
<div style="width: 100%; text-align: right">
<a-col v-bind="actionColOpt" v-if="showActionButtonGroup">
<div style="width: 100%" :style="{ textAlign: actionColOpt.style.textAlign }">
<FormItem>
<slot name="resetBefore"></slot>
<Button
@@ -92,6 +92,7 @@
? { span: actionSpan < 6 ? 24 : actionSpan }
: {};
const actionColOpt: Partial<ColEx> = {
style: { textAlign: 'right' },
span: showAdvancedButton ? 6 : 4,
...advancedSpanObj,
...actionColOptions,