From abb967ef71078104b8c46eefd118148a2d1e31cb Mon Sep 17 00:00:00 2001 From: neverland Date: Mon, 29 Mar 2021 19:45:04 +0800 Subject: [PATCH] docs(DatetimePicker): update demo (#8428) --- src/datetime-picker/README.md | 2 +- src/datetime-picker/README.zh-CN.md | 2 +- src/datetime-picker/demo/index.vue | 2 +- .../test/__snapshots__/demo.spec.js.snap | 12 ++++++------ 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/datetime-picker/README.md b/src/datetime-picker/README.md index 32e6dc903..9aeea3412 100644 --- a/src/datetime-picker/README.md +++ b/src/datetime-picker/README.md @@ -33,7 +33,7 @@ export default { return { minDate: new Date(2020, 0, 1), maxDate: new Date(2025, 10, 1), - currentDate: new Date(), + currentDate: new Date(2021, 0, 17), }; }, }; diff --git a/src/datetime-picker/README.zh-CN.md b/src/datetime-picker/README.zh-CN.md index 9c7e91462..9d4bd39b4 100644 --- a/src/datetime-picker/README.zh-CN.md +++ b/src/datetime-picker/README.zh-CN.md @@ -35,7 +35,7 @@ export default { return { minDate: new Date(2020, 0, 1), maxDate: new Date(2025, 10, 1), - currentDate: new Date(), + currentDate: new Date(2021, 0, 17), }; }, }; diff --git a/src/datetime-picker/demo/index.vue b/src/datetime-picker/demo/index.vue index 690cf5644..1cc40c360 100644 --- a/src/datetime-picker/demo/index.vue +++ b/src/datetime-picker/demo/index.vue @@ -121,7 +121,7 @@ export default { minDate: new Date(2020, 0, 1), maxDate: new Date(2025, 10, 1), value: { - date: null, + date: new Date(2021, 0, 17), time: '12:00', datetime: new Date(2020, 0, 1), datehour: new Date(2020, 0, 1), diff --git a/src/datetime-picker/test/__snapshots__/demo.spec.js.snap b/src/datetime-picker/test/__snapshots__/demo.spec.js.snap index 39071a4ab..b953a167e 100644 --- a/src/datetime-picker/test/__snapshots__/demo.spec.js.snap +++ b/src/datetime-picker/test/__snapshots__/demo.spec.js.snap @@ -10,11 +10,11 @@ exports[`renders demo correctly 1`] = `
-
    -
  • +
      +
    • 2020
    • -
    • +
    • 2021
    • @@ -72,8 +72,8 @@ exports[`renders demo correctly 1`] = `
-
    -
  • +
      +
    • 01
    • @@ -121,7 +121,7 @@ exports[`renders demo correctly 1`] = `
    • 16
    • -
    • +
    • 17