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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5f163-4452a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5f163-4452a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?