mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
32 lines
779 B
JavaScript
32 lines
779 B
JavaScript
import React from 'react'
|
|
import * as antd from 'antd'
|
|
import styles from './index.less'
|
|
|
|
export default class Sider_Mobile extends React.Component {
|
|
|
|
renderMenus(data){
|
|
return data.map(e => {
|
|
return <antd.Menu.Item key={e.id} style={{ color: '#ffffff', fontSize: '18px' }} >{e.icon}</antd.Menu.Item>
|
|
})
|
|
}
|
|
|
|
render() {
|
|
const { handleClickMenu, menus } = this.props
|
|
return (
|
|
<div className={styles.left_sider_wrapper}>
|
|
<antd.Layout.Sider
|
|
trigger={null}
|
|
width='100%'
|
|
>
|
|
<antd.Menu
|
|
mode="horizontal"
|
|
onClick={handleClickMenu}
|
|
>
|
|
{this.renderMenus(menus)}
|
|
</antd.Menu>
|
|
</antd.Layout.Sider>
|
|
</div>
|
|
)
|
|
}
|
|
}
|