index.jsx 497B

1234567891011121314151617181920212223
  1. import React from 'react';
  2. import { Row, Col } from 'antd';
  3. import Page from '@/components/Page';
  4. import RoleList from './list';
  5. import MenuList from './menus';
  6. export default (props) => {
  7. const [current, setCurrent] = React.useState();
  8. return (
  9. <Page>
  10. <Row gutter={24}>
  11. <Col span={8}>
  12. <RoleList onChange={setCurrent} current={current} />
  13. </Col>
  14. <Col span={16}>
  15. <MenuList role={current} />
  16. </Col>
  17. </Row>
  18. </Page>
  19. )
  20. }