trexim
v1.3.14
Published
Common components based on ant-design 4.0
Downloads
11
Readme
trexim
Getting Started
# Install
$ yarn add trexim
ConfigProvider && Layout
import { ConfigProvider, Layout } from 'trexim';
const enumList = {
transactionType: {
income: '收入',
outgoing: '支出',
},
sex: {
0: '男',
1: '女'
}
};
const menuData = [
{
name: 'parent1',
path: '/parent1',
icon: 'test',
children: [
{
name: 'children1',
path: '/path1',
},
{
name: 'hideChildren',
path: '/path2',
hide: true,
},
{
name: 'children2',
path: 'https://www.baidu.com',
},
],
},
];
export default ({ children }) => <ConfigProvider enumList={enumList} menuData={menuData}><Layout>{children}</Layout></ConfigProvider>
Read the Doc To See More Detail