mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-23 04:54:32 +08:00
fix: 为时间范围选择器设置默认值为null以修复表单重置问题
修复多个查询表单中时间范围选择器在表单重置时无法正常清空的问题。 为所有使用RangePicker的查询表单字段添加defaultValue: [null, null], 确保调用formReset时能正确重置时间选择器状态。
This commit is contained in:
@@ -45,6 +45,7 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
componentProps: {
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
defaultValue: [null, null],
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user