日历计算
<RangePicker onChange={(e: any) => { console.log('formatString', e); const duration = moment.duration(e[1].diff(e[0])); const days = duration.asDays(); form.validateFields().then((res: any) => { res.maeProductionPlanDTOList[index].machiningPlanDay = days; console.log('res', res); form.setFieldsValue(res); }); }} style={{ width: 220 }} />
本文来自博客园,作者:zjxgdq,转载请注明原文链接:https://www.cnblogs.com/zjxzhj/p/18222583