import { CSSProperties } from "react"; import "./index.less"; import { Collapse, CollapseProps, theme } from "antd"; import { CaretRightOutlined } from "@ant-design/icons"; interface LabelProps { children?: JSX.Element; } const content = ( ); const getItems: (panelStyle: CSSProperties) => CollapseProps["items"] = ( panelStyle ) => [ { key: "1", label: "影像质量", children: content, style: panelStyle, }, { key: "2", label: "其他", children:

1

, style: panelStyle, }, ]; export const Label = (props: LabelProps) => { const { token } = theme.useToken(); const panelStyle: React.CSSProperties = { marginBottom: 12, background: token.colorFillAlter, borderRadius: token.borderRadiusLG, border: "none", }; return (
标签相关数据
); };