uu
This commit is contained in:
parent
7faea925b4
commit
95eac8bd13
@ -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 ''
|
||||
|
||||
Loading…
Reference in New Issue
Block a user