修改了背景色 添加了限制事件

This commit is contained in:
luyuan 2020-11-03 10:34:22 +08:00
parent 74ccc85a0d
commit 4552d29469
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
3 changed files with 20 additions and 12 deletions

View File

@ -76,15 +76,15 @@
width: 62px; width: 62px;
height: 22px; height: 22px;
margin-top: 30px; margin-top: 30px;
background-color: #ccc; background-color: #07AD97;
text-align: center; text-align: center;
line-height: 22px; line-height: 22px;
color: #fff; color: #fff;
cursor: pointer; cursor: pointer;
font-size: 9px; font-size: 9px;
&:hover{ // &:hover{
background-color: #07AD97; // background-color: #;
} // }
} }
} }

View File

@ -424,14 +424,14 @@ export default defineComponent({
padding: 0; padding: 0;
width: 63px; width: 63px;
height: 23px; height: 23px;
background: #ccc; background: #08ae98;
border-radius: 3px; border-radius: 3px;
font-size: 10px; font-size: 10px;
font-weight: 500; font-weight: 500;
color: #ffffff; color: #ffffff;
&:hover { // &:hover {
background: #08ae98; // background: #08ae98;
} // }
} }
} }
.video-cover { .video-cover {

View File

@ -122,6 +122,7 @@
show-time show-time
format="YYYY-MM-DD HH:mm" format="YYYY-MM-DD HH:mm"
:value="form.dateline" :value="form.dateline"
:disabled-date="disabledDate"
@change="startchange" @change="startchange"
:placeholder="lan.$t('shezhikaishishijian')" :placeholder="lan.$t('shezhikaishishijian')"
:getCalendarContainer=" :getCalendarContainer="
@ -515,6 +516,12 @@ export default defineComponent({
} }
} }
function disabledDate(current: any){
console.log(current + 0)
const now = dayjs().date(dayjs().date() - 1);
return current && current < now;
}
return { return {
labelCol: { span: 4 }, labelCol: { span: 4 },
wrapperCol: { span: 14 }, wrapperCol: { span: 14 },
@ -545,6 +552,7 @@ export default defineComponent({
ifallowupload, ifallowupload,
fankui, fankui,
lan, lan,
disabledDate
}; };
}, },
}); });
@ -621,14 +629,14 @@ export default defineComponent({
padding: 0; padding: 0;
width: 63px; width: 63px;
height: 23px; height: 23px;
background: #ccc; background: #08ae98;
border-radius: 3px; border-radius: 3px;
font-size: 10px; font-size: 10px;
font-weight: 500; font-weight: 500;
color: #ffffff; color: #ffffff;
&:hover{ // &:hover{
background: #08ae98; // background: #08ae98;
} // }
} }
} }
.item-cover { .item-cover {