trexim
TypeScript icon, indicating that this package has built-in type declarations

1.3.14 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i trexim

Weekly Downloads

3

Version

1.3.14

License

MIT

Unpacked Size

374 kB

Total Files

164

Last publish

Collaborators

  • renderio