Skip to content

Commit

Permalink
feat(form): datetime移出默认defaultTime,支持defaultTime配置
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen authored and jia000 committed Jun 30, 2022
1 parent 1950c11 commit e1705c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/form/src/fields/DateTime.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
:disabled="disabled"
:format="config.format || 'YYYY-MM-DD HH:mm:ss'"
:value-format="config.valueFormat || 'YYYY-MM-DD HH:mm:ss'"
:default-time="config.defaultTime || [new Date(2000, 1, 1, 23, 59, 59)]"
:default-time="config.defaultTime"
@change="changeHandler"
></el-date-picker>
</template>
Expand Down
2 changes: 1 addition & 1 deletion packages/form/src/fields/Daterange.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
:size="size"
:unlink-panels="true"
:disabled="disabled"
:default-time="config.defaultTime || [new Date(2000, 1, 1, 23, 59, 59)]"
:default-time="config.defaultTime"
@change="changeHandler"
></el-date-picker>
</template>
Expand Down

0 comments on commit e1705c3

Please sign in to comment.