How does the layDate date and time component in Layui make it optional for several days before and after a specified date?

//7
laydate.render({
  elem: "-sharptest-limit2"
  ,min: -7
  ,max: 7
});

here is an official example, where "- 7" and "7" are relative to the current date limit.

there are now two plug-ins in the project, one for setting the start time and the other for setting the end time.
now that the start time is set, the end time can only be set to a few days after the start time (assuming "7"). If the
sets the end time, the start time can only be set to 7 days before the end time.
how can I choose several days before and after a specified date with such a conditional restriction?

Aug.25,2021
Menu