FixRangePanelShift.jsx 909 B

123456789101112131415161718192021222324
  1. import React from 'react';
  2. import DatePicker from '../../index';
  3. /**
  4. * test with cypress
  5. *
  6. * fix issue 1221
  7. * @see https://github.com/DouyinFE/semi-design/issues/1221
  8. */
  9. export default function App() {
  10. return (
  11. <div>
  12. <DatePicker type="dateRange" defaultPickerValue={'2019-07-01'} style={{ width: 260 }} onChange={console.log} />
  13. <br /><br />
  14. <DatePicker type="dateTimeRange" defaultPickerValue={'2019-07-01'} style={{ width: 260 }} onChange={console.log} />
  15. <br /><br />
  16. <DatePicker type="dateRange" defaultValue={['2019-07-01', '2019-08-02']} style={{ width: 260 }} onChange={console.log} />
  17. <br /><br />
  18. <DatePicker type="dateTimeRange" defaultValue={['2019-07-01', '2019-08-02']} style={{ width: 260 }} onChange={console.log} />
  19. </div>
  20. );
  21. }
  22. App.storyName = '修复范围面板漂移问题';