chore: panel 加上 id 属性到 dom

This commit is contained in:
2betop 2024-10-10 10:54:28 +08:00
parent 21317f8d92
commit b527309af2

View File

@ -255,7 +255,11 @@ export default class Panel extends React.Component<PanelProps> {
) : null;
return (
<div className={cx(`Panel`, className || `Panel--default`)} style={style}>
<div
id={id}
className={cx(`Panel`, className || `Panel--default`)}
style={style}
>
{header ? (
<div
className={cx(