49 lines
1.3 KiB
JavaScript
49 lines
1.3 KiB
JavaScript
|
|
import {DatePicEmpMaster} from"../../../ownLib/my-ui-lib"
|
|
export const DatePic = DatePicEmpMaster
|
|
|
|
// import { DatePicker, Space } from 'antd';
|
|
// import dayjs from 'dayjs';
|
|
// import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
// import FloatLabel from './FloatLabel/index.jsx';
|
|
|
|
// dayjs.extend(customParseFormat);
|
|
|
|
// export const DatePic = ({
|
|
// onChange,
|
|
// label,
|
|
// isOnChange,
|
|
// canSelectPast,
|
|
// valueData,
|
|
// }) => {
|
|
// const disabledDate = (current) => {
|
|
// const today = dayjs().startOf('day');
|
|
// if (canSelectPast === undefined) {
|
|
// return false;
|
|
// } else if (canSelectPast) {
|
|
// return current && current > today;
|
|
// } else {
|
|
// return current && current < today;
|
|
// }
|
|
// };
|
|
|
|
// return (
|
|
// <Space direction="vertical">
|
|
// <FloatLabel label={label} isOnChange={isOnChange}>
|
|
// <DatePicker
|
|
// style={{ height: '49px' }}
|
|
// format="DD-MM-YYYY"
|
|
// value={
|
|
// valueData != undefined
|
|
// ? dayjs(valueData, 'YYYY-MM-DDTHH:mm:ss')
|
|
// : ''
|
|
// }
|
|
// disabledDate={disabledDate}
|
|
// onChange={onChange}
|
|
// inputReadOnly={true}
|
|
// />
|
|
// </FloatLabel>
|
|
// </Space>
|
|
// );
|
|
// };
|