👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

45 lines
948 B

import React from 'react';
import NavSate from './navState';
const LayoutSetting = ({ value, onChange }) => {
return (
<div
style={{
margin: 5,
display: 'flex',
}}
>
{['sidemenu', 'topmenu'].map(layout => (
<div
onClick={() => onChange && onChange(layout)}
key={layout}
style={{
width: 70,
height: 44,
textAlign: 'center',
margin: 8,
}}
>
<NavSate
type={layout}
state={value === layout ? 'active' : 'default'}
alt={layout}
/>
</div>
))}
<div
key="topside"
style={{
width: 70,
height: 44,
textAlign: 'center',
margin: 8,
}}
>
<NavSate type="topside" state="disable" alt="topside" />
</div>
</div>
);
};
export default LayoutSetting;