chore: adjust deployment modal form

This commit is contained in:
jialin
2025-09-16 11:26:17 +08:00
parent ed49e03802
commit 29b74f85c5
39 changed files with 1574 additions and 786 deletions
+25 -3
View File
@@ -6,6 +6,9 @@ interface CardProps {
height?: string | number;
className?: string;
children?: React.ReactNode;
clickable?: boolean;
ghost?: boolean;
onClick?: () => void;
}
const CardWrapper = styled.div`
@@ -17,24 +20,43 @@ const CardWrapper = styled.div`
align-items: flex-start;
border: 1px solid var(--ant-color-border);
border-radius: var(--border-radius-base);
cursor: pointer;
cursor: default;
width: 100%;
&:hover {
background-color: var(--ant-color-fill-tertiary);
transition: background-color 0.2s ease;
}
&.ghost {
background-color: transparent;
}
&.active {
background-color: var(--ant-color-fill-tertiary);
}
&.clickable {
cursor: pointer;
}
`;
const Card: React.FC<CardProps> = (props) => {
const { className, height, children } = props;
const {
className,
height,
children,
clickable = true,
ghost = false,
onClick
} = props;
return (
<CardWrapper
className={classNames('card-wrapper', className)}
className={classNames(className, {
clickable: clickable,
ghost: ghost
})}
style={{ height: height || '180px' }}
onClick={onClick}
>
{children}
</CardWrapper>