Browse Source

fix: fix modal footerfill button marginleft

代强 1 year ago
parent
commit
18d7816268
1 changed files with 4 additions and 0 deletions
  1. 4 0
      packages/semi-ui/modal/Modal.tsx

+ 4 - 0
packages/semi-ui/modal/Modal.tsx

@@ -285,6 +285,10 @@ class Modal extends BaseComponent<ModalReactProps, ModalState> {
                         block={footerFill}
                         autoFocus={true}
                         {...this.props.cancelButtonProps}
+                        style={{
+                            marginLeft: "unset",
+                            ...this.props.cancelButtonProps?.style
+                        }}
                         x-semi-children-alias="cancelText"
                     >
                         {cancelText || locale.cancel}