Commit 0f55a0f4 authored by 李纪文's avatar 李纪文

feat: 曲线结束时间增加当前时间快捷方式

parent 643f4c7a
......@@ -614,6 +614,18 @@ const HistoryView = (props) => {
onCalendarChange={(val) => {
setDates(val);
}}
ranges={
dates?.[0]
? {
当前时间: () => {
return [
dates?.[0] || moment(moment().format('YYYY-MM-DD 00:00:00')),
moment(moment()),
];
},
}
: {}
}
onOpenChange={(open) => {
if (open) {
setDates([null, null]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment