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

18 lines
631 B
JavaScript
Raw Normal View History

2022-03-12 17:07:11 +08:00
import React from 'react';
import "./index.less"
export default class TipLabel extends React.Component {
render() {
return (
<div className="tipLabelWrapper">
<div className="titleWrapper">
2022-03-15 17:50:54 +08:00
<span className="title">{this.props.title ? this.props.title : "小提示"}</span>
2022-03-12 17:07:11 +08:00
</div>
<div className="tipContentWrapper">
2022-03-15 17:50:54 +08:00
{this.props.tipList && this.props.tipList.map(item => <div className="tipContentItem">{item}</div>)}
{this.props.children}
2022-03-12 17:07:11 +08:00
</div>
</div>
)
}
}