arco-design-vue
arco-design-vue copied to clipboard
a-range-picker 校验和重置的问题
trafficstars
- [ ] I'm sure this does not appear in the issue list of the repository
基本信息
现有案例
现有案例太多了,大多数使用情况恰恰和现在的方式不一样。务实最好。
预期解决问题
大多数情况下,一般使用 startTime endTime 这种单个字段来存储日期,a-range-picker 只支持数组,我可以使用 computed 解决数组值到单个字段值的同步问题,但在校验和重置表单时,form-item 无法设置两个path用以校验和重置表单。 我想的是最好让 field 属性也支持数组用以支持这种情况,或者使用 v-model:first, v-model:last ,然后添加firstFiled,lastField 属性。