This commit is contained in:
aihe 2024-05-29 14:54:35 +08:00
parent 7faea925b4
commit 95eac8bd13

View File

@ -17,7 +17,7 @@
</view>
</view>
<!-- 日历 -->
<u-calendar title="请选择日期范围" color="#B12D29" mode="range" rowHeight="90" closeOnClickOverlay :show="showCladar" :defaultDate="value" @confirm="handleClaOk" @close="handleSwitchCladar"
<u-calendar title="请选择日期范围" :minDate="minDate" :monthNum="monthNum" color="#B12D29" :mode="mode" rowHeight="90" closeOnClickOverlay :show="showCladar" :defaultDate="value" @confirm="handleClaOk" @close="handleSwitchCladar"
></u-calendar>
</template>
@ -58,6 +58,21 @@
return 26
}
},
minDate: {
default() {
return dayjs().subtract(12, 'months').format(`${formatStr}`)
}
},
monthNum: {
default() {
return 24
}
},
mode: {
default() {
return 'range' // single | multiple | range
}
},
customStyle:{
default () {
return ''