mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2026-07-25 06:05:36 +08:00
Compare commits
No commits in common. "9919e8b2cfbc971defe8870c8f5ecc0dd340e2f7" and "0b0cca10b19ae753f32fd7435b3179c40a35dd16" have entirely different histories.
9919e8b2cf
...
0b0cca10b1
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@ -20,11 +20,6 @@ jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: szenius/set-timezone@v1.0
|
||||
with:
|
||||
timezoneLinux: "Asia/Shanghai"
|
||||
timezoneMacos: "Asia/Shanghai"
|
||||
timezoneWindows: "China Standard Time"
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
|
||||
@ -6,6 +6,7 @@ function getMonths(minDate, maxDate) {
|
||||
var cursor = getDate(minDate);
|
||||
|
||||
cursor.setDate(1);
|
||||
cursor.setMinutes(cursor.getMinutes() - cursor.getTimezoneOffset());
|
||||
|
||||
do {
|
||||
months.push(cursor.getTime());
|
||||
|
||||
@ -497,7 +497,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
>
|
||||
<month
|
||||
class="month"
|
||||
data-date="{{1325347200000}}"
|
||||
data-date="{{1325376000000}}"
|
||||
id="month0"
|
||||
bind:click="onClickDay"
|
||||
>
|
||||
@ -892,7 +892,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
</month>
|
||||
<month
|
||||
class="month"
|
||||
data-date="{{1328025600000}}"
|
||||
data-date="{{1328054400000}}"
|
||||
id="month1"
|
||||
bind:click="onClickDay"
|
||||
>
|
||||
@ -1270,7 +1270,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
</month>
|
||||
<month
|
||||
class="month"
|
||||
data-date="{{1330531200000}}"
|
||||
data-date="{{1330560000000}}"
|
||||
id="month2"
|
||||
bind:click="onClickDay"
|
||||
>
|
||||
|
||||
@ -91,19 +91,19 @@ VantComponent({
|
||||
delay,
|
||||
});
|
||||
|
||||
this.scroll(true);
|
||||
this.scroll();
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
scroll(isInit = false) {
|
||||
scroll() {
|
||||
this.timer && clearTimeout(this.timer);
|
||||
this.timer = null;
|
||||
|
||||
this.setData({
|
||||
animationData: this.resetAnimation
|
||||
.translateX(isInit ? 0 : this.wrapWidth)
|
||||
.translateX(this.wrapWidth)
|
||||
.step()
|
||||
.export(),
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user