mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs(DatetimePicker): update demo (#8428)
This commit is contained in:
parent
1e0429c989
commit
abb967ef71
@ -33,7 +33,7 @@ export default {
|
|||||||
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),
|
||||||
currentDate: new Date(),
|
currentDate: new Date(2021, 0, 17),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -35,7 +35,7 @@ export default {
|
|||||||
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),
|
||||||
currentDate: new Date(),
|
currentDate: new Date(2021, 0, 17),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -121,7 +121,7 @@ export default {
|
|||||||
minDate: new Date(2020, 0, 1),
|
minDate: new Date(2020, 0, 1),
|
||||||
maxDate: new Date(2025, 10, 1),
|
maxDate: new Date(2025, 10, 1),
|
||||||
value: {
|
value: {
|
||||||
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),
|
||||||
|
@ -10,11 +10,11 @@ exports[`renders demo correctly 1`] = `
|
|||||||
<!---->
|
<!---->
|
||||||
<div class="van-picker__columns" style="height: 264px;">
|
<div class="van-picker__columns" style="height: 264px;">
|
||||||
<div class="van-picker-column">
|
<div class="van-picker-column">
|
||||||
<ul class="van-picker-column__wrapper" style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;">
|
<ul class="van-picker-column__wrapper" style="transform: translate3d(0, 66px, 0); transition-duration: 0ms; transition-property: none;">
|
||||||
<li role="button" tabindex="0" class="van-picker-column__item van-picker-column__item--selected" style="height: 44px;">
|
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
|
||||||
<div class="van-ellipsis">2020</div>
|
<div class="van-ellipsis">2020</div>
|
||||||
</li>
|
</li>
|
||||||
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
|
<li role="button" tabindex="0" class="van-picker-column__item van-picker-column__item--selected" style="height: 44px;">
|
||||||
<div class="van-ellipsis">2021</div>
|
<div class="van-ellipsis">2021</div>
|
||||||
</li>
|
</li>
|
||||||
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
|
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
|
||||||
@ -72,8 +72,8 @@ exports[`renders demo correctly 1`] = `
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-picker-column">
|
<div class="van-picker-column">
|
||||||
<ul class="van-picker-column__wrapper" style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;">
|
<ul class="van-picker-column__wrapper" style="transform: translate3d(0, -594px, 0); transition-duration: 0ms; transition-property: none;">
|
||||||
<li role="button" tabindex="0" class="van-picker-column__item van-picker-column__item--selected" style="height: 44px;">
|
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
|
||||||
<div class="van-ellipsis">01</div>
|
<div class="van-ellipsis">01</div>
|
||||||
</li>
|
</li>
|
||||||
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
|
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
|
||||||
@ -121,7 +121,7 @@ exports[`renders demo correctly 1`] = `
|
|||||||
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
|
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
|
||||||
<div class="van-ellipsis">16</div>
|
<div class="van-ellipsis">16</div>
|
||||||
</li>
|
</li>
|
||||||
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
|
<li role="button" tabindex="0" class="van-picker-column__item van-picker-column__item--selected" style="height: 44px;">
|
||||||
<div class="van-ellipsis">17</div>
|
<div class="van-ellipsis">17</div>
|
||||||
</li>
|
</li>
|
||||||
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
|
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user