weaver_trunk_cli/pc4mobx/hrm/coms/needAutoBtn.js

28 lines
1.5 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import {WeaCheckbox,WeaInput,WeaDatePicker,WeaSelect} from 'ecCom';
import {Button,Row,Col} from 'antd';
import {i18n} from '../public/i18n';
import {WeaLocaleProvider} from 'ecCom';
const getLabel = WeaLocaleProvider.getLabel;
class Main extends React.Component {
constructor(props) {
super(props);
}
onBtnClick() {
this.props.onBtnClick && this.props.onBtnClick(this.props.value);
}
render() {
const {props} = this;
return (
<div className="hrm-input-btn">
<Row ecId={`${this && this.props && this.props.ecId || ''}_Row@nvoldm`}>
<Col ecId={`${this && this.props && this.props.ecId || ''}_Col@5vderb`} span={2}><WeaCheckbox ecId={`${this && this.props && this.props.ecId || ''}_WeaCheckbox@e5g18z`} {...props}/></Col>
<Col ecId={`${this && this.props && this.props.ecId || ''}_Col@54t17w`} span={8}>{i18n.label.enableDate()}<WeaInput ecId={`${this && this.props && this.props.ecId || ''}_WeaInput@5sctub`} {...props}/>{getLabel('386546',"天后")}</Col>
<Col ecId={`${this && this.props && this.props.ecId || ''}_Col@16gk2h`} span={4}><WeaDatePicker ecId={`${this && this.props && this.props.ecId || ''}_WeaDatePicker@m4wp7k`} {...props}/></Col>
<Col ecId={`${this && this.props && this.props.ecId || ''}_Col@3goh5p`} span={8}>{i18n.label.enableMode()}<WeaSelect ecId={`${this && this.props && this.props.ecId || ''}_WeaSelect@rdvkxv`} {...props}/></Col>
</Row>
</div>
)
}
}
export default Main;