需求:实现前面的日期禁用,后面的可选
<a-form-item
label="缴费周期"
name="range-picker"
:rules="[{ required: true, message: '请选择日期' }]"
>
<a-range-picker :disabled="rentType === 1 ? [true, false] : [false, false]" :locale="locale" :disabledDate="disabledDate" v-model:value="formState['range-picker']" value-format="YYYY-MM-DD" @change="TimeChange"/>
</a-form-item>
// dayjs日期添加一天的写法:
formState2.cardStartDate = dayjs().add(1, 'day').format('YYYY-MM-DD');
formState2.cardEndDate = '';
formState2['range-picker'] = [res.data.cardStartDate, res.data.cardEndDate];