Cmen
3 years ago
3 changed files with 35 additions and 20 deletions
@ -1,5 +1,22 @@
|
||||
import { Collapse } from "antd"; |
||||
|
||||
import "./style.less"; |
||||
|
||||
const { Panel } = Collapse; |
||||
|
||||
const Catalog = () => { |
||||
return <h1>属性区域</h1>; |
||||
const callback = (key: string | string[]) => console.log(key); |
||||
return ( |
||||
<Collapse |
||||
defaultActiveKey={["1"]} |
||||
onChange={callback} |
||||
expandIconPosition="right" |
||||
> |
||||
<Panel header="矩形" key="1"></Panel> |
||||
<Panel header="多边形" key="2"></Panel> |
||||
<Panel header="线段" key="3"></Panel> |
||||
</Collapse> |
||||
); |
||||
}; |
||||
|
||||
export default Catalog; |
||||
|
@ -0,0 +1,5 @@
|
||||
.ant-collapse-icon-position-right > .ant-collapse-item > .ant-collapse-header{ |
||||
padding: 6px 8px; |
||||
font-size: 12px; |
||||
background-color: #f7fafc; |
||||
} |
Loading…
Reference in new issue