瀏覽代碼

fix: fix modal footerfill button marginleft

代强 1 年之前
父節點
當前提交
18d7816268
共有 1 個文件被更改,包括 4 次插入0 次删除
  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}