salary-management-front/pc4mobx/hrmSalary/pages/reportView/components/rightOptions.js

49 lines
1.5 KiB
JavaScript

/*
* Author: 黎永顺
* name: 内容操作按钮区
* Description:
* Date: 2023/4/21
*/
import React, { Component } from "react";
import { WeaLocaleProvider } from "ecCom";
import "../index.less";
const { getLabel } = WeaLocaleProvider;
class RightOptions extends Component {
constructor(props) {
super(props);
this.state = {
show: true
};
}
render() {
const { show } = this.state;
return (
<div className="layoutSide" style={{ width: show ? "30px" : 0 }}>
<div className="sideBox">
<div className="sideMain">
<div className="toll-bar-container" style={{ alignItems: show && "center" }}>
<i className="icon-coms-background" title={getLabel(111, "数据视图")}/>
<i className="icon-portal-reportform-o" title={getLabel(111, "柱状图")}/>
<i className="icon-coms-Line" title={getLabel(111, "折线图")}/>
<i className="icon-coms-Pie" title={getLabel(111, "饼图")}/>
<i className="icon-coms-Flow-setting" title={getLabel(111, "设置")}/>
</div>
</div>
<span className="show-btn-right"
onClick={() => this.setState({ show: !show })}>
{
show ? <img src={require("../../../common/leftTree-show.png")} alt=""/> :
<img src={require("../../../common/leftTree-hide.png")} alt=""/>
}
</span>
</div>
</div>
);
}
}
export default RightOptions;