antd momentjs 设置过去小时范围

198 阅读1分钟
<RangePicker
  ranges={{
    过去1小时: [moment().subtract(1,'h'), moment().subtract(0,'h')],
  }}
  showTime
  format="YYYY/MM/DD HH:mm:ss"
/>