docs(DatetimePicke): update demo (#8427)

This commit is contained in:
neverland 2021-03-29 19:42:55 +08:00 committed by GitHub
parent 62eda87c99
commit a3c9111130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 9 deletions

View File

@ -35,7 +35,7 @@ import { ref } from 'vue';
export default { export default {
setup() { setup() {
const currentDate = ref(new Date()); const currentDate = ref(new Date(2021, 0, 17));
return { return {
minDate: new Date(2020, 0, 1), minDate: new Date(2020, 0, 1),
maxDate: new Date(2025, 10, 1), maxDate: new Date(2025, 10, 1),

View File

@ -37,7 +37,7 @@ import { ref } from 'vue';
export default { export default {
setup() { setup() {
const currentDate = ref(new Date()); const currentDate = ref(new Date(2021, 0, 17));
return { return {
minDate: new Date(2020, 0, 1), minDate: new Date(2020, 0, 1),
maxDate: new Date(2025, 10, 1), maxDate: new Date(2025, 10, 1),

View File

@ -120,7 +120,7 @@ export default {
setup() { setup() {
const t = useTranslate(i18n); const t = useTranslate(i18n);
const value = reactive({ const value = reactive({
date: null, date: new Date(2021, 0, 17),
time: '12:00', time: '12:00',
datetime: new Date(2020, 0, 1), datetime: new Date(2020, 0, 1),
datehour: new Date(2020, 0, 1), datehour: new Date(2020, 0, 1),

View File

@ -22,13 +22,13 @@ exports[`should render demo and match snapshot 1`] = `
style="height: 264px;" style="height: 264px;"
> >
<div class="van-picker-column"> <div class="van-picker-column">
<ul style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;" <ul style="transform: translate3d(0, 66px, 0); transition-duration: 0ms; transition-property: none;"
class="van-picker-column__wrapper" class="van-picker-column__wrapper"
> >
<li role="button" <li role="button"
style="height: 44px;" style="height: 44px;"
tabindex="0" tabindex="0"
class="van-picker-column__item van-picker-column__item--selected" class="van-picker-column__item"
> >
<div class="van-ellipsis"> <div class="van-ellipsis">
2020 2020
@ -37,7 +37,7 @@ exports[`should render demo and match snapshot 1`] = `
<li role="button" <li role="button"
style="height: 44px;" style="height: 44px;"
tabindex="0" tabindex="0"
class="van-picker-column__item" class="van-picker-column__item van-picker-column__item--selected"
> >
<div class="van-ellipsis"> <div class="van-ellipsis">
2021 2021
@ -196,13 +196,13 @@ exports[`should render demo and match snapshot 1`] = `
</ul> </ul>
</div> </div>
<div class="van-picker-column"> <div class="van-picker-column">
<ul style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;" <ul style="transform: translate3d(0, -594px, 0); transition-duration: 0ms; transition-property: none;"
class="van-picker-column__wrapper" class="van-picker-column__wrapper"
> >
<li role="button" <li role="button"
style="height: 44px;" style="height: 44px;"
tabindex="0" tabindex="0"
class="van-picker-column__item van-picker-column__item--selected" class="van-picker-column__item"
> >
<div class="van-ellipsis"> <div class="van-ellipsis">
01 01
@ -346,7 +346,7 @@ exports[`should render demo and match snapshot 1`] = `
<li role="button" <li role="button"
style="height: 44px;" style="height: 44px;"
tabindex="0" tabindex="0"
class="van-picker-column__item" class="van-picker-column__item van-picker-column__item--selected"
> >
<div class="van-ellipsis"> <div class="van-ellipsis">
17 17