LayoutSetting.js 740 Bytes
Newer Older
jim's avatar
jim committed
1
import { Tooltip } from 'antd';
jim's avatar
jim committed
2 3
import React from 'react';
import NavSate from './navState';
jim's avatar
jim committed
4
import style from './index.less';
jim's avatar
jim committed
5 6 7

const LayoutSetting = ({ value, onChange }) => {
  return (
jim's avatar
jim committed
8
    <div className={style.layoutSetting}>
jim's avatar
jim committed
9
      {['sidemenu', 'topmenu'].map(layout => (
jim's avatar
jim committed
10
        <div className={style.item} onClick={() => onChange && onChange(layout)} key={layout}>
jim's avatar
jim committed
11
          <NavSate type={layout} state={value === layout ? 'active' : 'default'} alt={layout} />
jim's avatar
jim committed
12 13
        </div>
      ))}
jim's avatar
jim committed
14
      <Tooltip title="等待后期实现!">
jim's avatar
jim committed
15
        <div key="topside" className={style.item}>
jim's avatar
jim committed
16 17 18
          <NavSate type="topside" state="disable" alt="topside" />
        </div>
      </Tooltip>
jim's avatar
jim committed
19 20 21 22 23
    </div>
  );
};

export default LayoutSetting;