chore: show fallback change warning

This commit is contained in:
jialin
2026-02-09 13:26:44 +08:00
parent 83086c46e6
commit e7890dda3d
10 changed files with 113 additions and 33 deletions
+5 -1
View File
@@ -18,6 +18,9 @@ type ModalFooterProps = {
extra?: React.ReactNode;
form?: any;
description?: React.ReactNode;
styles?: {
wrapper?: React.CSSProperties;
};
};
const Wrapper = styled.div`
@@ -38,6 +41,7 @@ const ModalFooter: React.FC<ModalFooterProps> = ({
htmlType = 'button',
style,
showOkBtn = true,
styles,
description,
extra,
showCancelBtn = true,
@@ -45,7 +49,7 @@ const ModalFooter: React.FC<ModalFooterProps> = ({
}) => {
const intl = useIntl();
return (
<Wrapper>
<Wrapper style={{ ...styles?.wrapper }}>
<div>{description}</div>
<Space size={20} style={{ ...style }}>
{showCancelBtn && (