Open YLeeXIE opened 10 months ago
版本号 (version): @form-create/ant-design-vue@2.5.33
UI 框架的版本 (UI version) :ant-design@3.2.2
问题描述 (Issue): 组件field为MonthPicker 月份组件时使用api.getValue获取到的值出现异常,无法使用dayjs解析;而使用inject.rule[0].value获取到的moment对象value值可以正常进行dayjs格式化,猜测原因可能是/core/src/frame/api.js文件中getValue方法 copy(ctx.rule.value)问题,
{ type:"MonthPicker", field:"startDate", inject:true, title:'开始月份', props:{ format:"YYYY-MM", disabledDate(inject,currentDate){ const endDate = inject.api.getValue('endDate') return false } } }, { type:"MonthPicker", field:"endDate", inject:true, title:'结束月份', }
其中endDate 使用dayjs解析报错
endDate 使用dayjs解析正常
猜测原因可能是/core/src/frame/api.js文件中getValue方法 copy(ctx.rule.value)问题,copy方法问题
版本号 (version): @form-create/ant-design-vue@2.5.33
UI 框架的版本 (UI version) :ant-design@3.2.2
问题描述 (Issue): 组件field为MonthPicker 月份组件时使用api.getValue获取到的值出现异常,无法使用dayjs解析;而使用inject.rule[0].value获取到的moment对象value值可以正常进行dayjs格式化,猜测原因可能是/core/src/frame/api.js文件中getValue方法 copy(ctx.rule.value)问题,
其中endDate 使用dayjs解析报错
endDate 使用dayjs解析正常
猜测原因可能是/core/src/frame/api.js文件中getValue方法 copy(ctx.rule.value)问题,copy方法问题