You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.0 KiB
TypeScript
41 lines
1.0 KiB
TypeScript
import React from 'react';
|
|
import styles from './style/index.module.less';
|
|
import CustomCard from '@/components/CustomCard/index';
|
|
import { Tabs } from '@arco-design/web-react';
|
|
import CompGrid from './compGrid';
|
|
|
|
const TabPane = Tabs.TabPane;
|
|
|
|
function CompositeCompLibrary() {
|
|
return (
|
|
<>
|
|
<div className={styles['composite-comp-library-container']}>
|
|
<CustomCard>
|
|
<Tabs defaultActiveTab="1">
|
|
<TabPane
|
|
key="1"
|
|
title={
|
|
<span>
|
|
<span>我的复合组件</span>
|
|
</span>
|
|
}
|
|
>
|
|
<CompGrid componentType="myComplex" />
|
|
</TabPane>
|
|
<TabPane
|
|
key="2"
|
|
title={
|
|
<span>
|
|
<span>公开复合组件</span>
|
|
</span>
|
|
}>
|
|
<CompGrid componentType="publicComplex" />
|
|
</TabPane>
|
|
</Tabs>
|
|
</CustomCard>
|
|
</div>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default CompositeCompLibrary; |