sbt-idp/cope2n-fe/src/components/collapse/index.tsx

17 lines
375 B
TypeScript
Raw Normal View History

2024-01-31 04:08:20 +00:00
import { Collapse as AntCollapse, CollapseProps, theme } from 'antd';
import styled from 'styled-components';
function Collapse(props: CollapseProps) {
return <AntCollapse {...props} />;
}
const Panel = styled(AntCollapse.Panel)`
& .sbt-collapse-header:hover {
color: ${theme.defaultConfig.token.colorPrimary};
}
`;
Collapse.Panel = Panel;
export { Collapse };