Browse Source

type(button): add style type React.CSSProperties (#43588)

pull/43590/head
thinkasany 1 year ago
committed by GitHub
parent
commit
fc83371a00
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      components/button/button.tsx

7
components/button/button.tsx

@ -237,10 +237,13 @@ const InternalButton: React.ForwardRefRenderFunction<
button?.className,
);
const fullStyle = { ...button?.style, ...customStyle };
const fullStyle: React.CSSProperties = { ...button?.style, ...customStyle };
const iconClasses = classNames(customClassNames?.icon, button?.classNames?.icon);
const iconStyle = { ...(styles?.icon || {}), ...(button?.styles?.icon || {}) };
const iconStyle: React.CSSProperties = {
...(styles?.icon || {}),
...(button?.styles?.icon || {}),
};
const iconNode =
icon && !innerLoading ? (

Loading…
Cancel
Save