列表样式

This commit is contained in:
‘huanghaiixia’
2026-01-23 14:13:58 +08:00
parent 209ec8830b
commit 25a9173243
2 changed files with 7 additions and 4 deletions

View File

@ -311,7 +311,7 @@
today.setHours(0, 0, 0, 0); // 清除时分秒,确保比较时不考虑时间部分
// 获取明天的日期
const tomorrow = new Date();
tomorrow.setDate(tomorrow.getDate() + ( 2));
tomorrow.setDate(tomorrow.getDate() + (pageType.value?1: 2));
tomorrow.setHours(0, 0, 0, 0); // 清除时分秒
// 当前日期小于今天或大于明天,则禁用
return current < today || current > tomorrow;
@ -327,7 +327,7 @@
watch(
() => props.formObj,
(val) => {
if (val && !pageType.value) {
if (val) {
formState.value = val
}
},