Skip to content

Commit

Permalink
[fix]{GenerateFormItem}: �修复一处时间范围判断问题
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Oct 28, 2019
1 parent 8146fff commit a05d2cd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/FormDesigner/GenerateFormItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,12 @@ export default {
return {
disabledDate(time) {
if (range === 'smaller') {
return time.getTime() <= Date.now();
return time.getTime() >= Date.now();
}
return time.getTime() >= Date.now();
if (range === 'greater') {
return time.getTime() <= Date.now() - 24 * 3600 * 1000;
}
return true;
},
};
}
Expand Down

0 comments on commit a05d2cd

Please sign in to comment.