salary-management-front/pc4mobx/hrmSalary/components/TipLabel/index.js

21 lines
654 B
JavaScript

import React from "react";
import { WeaLocaleProvider } from "ecCom";
import "./index.less";
const getLabel = WeaLocaleProvider.getLabel;
export default class TipLabel extends React.Component {
render() {
return (
<div className="tipLabelWrapper">
<div className="titleWrapper">
<span className="title">{this.props.title ? this.props.title : getLabel(543177, "小提示")}</span>
</div>
<div className="tipContentWrapper">
{this.props.tipList && this.props.tipList.map(item => <div className="tipContentItem">{item}</div>)}
{this.props.children}
</div>
</div>
);
}
}