Merge branch '1.x' of https://github.com/youzan/vant into 1.x

This commit is contained in:
陈嘉涵 2019-05-06 09:44:30 +08:00
commit 0e45563c93
3 changed files with 4 additions and 4 deletions

View File

@ -144,7 +144,7 @@ export default sfc({
const text = this[`${status}Text`] || t(status);
const style = {
transition: `${this.duration}ms`,
transform: `translate3d(0,${this.height}px, 0)`
transform: this.height ? `translate3d(0,${this.height}px, 0)` : ''
};
const Status = this.slots(status) || [

View File

@ -3,7 +3,7 @@
exports[`renders demo correctly 1`] = `
<div>
<div class="van-pull-refresh">
<div class="van-pull-refresh__track" style="transition:0ms;transform:translate3d(0,0px, 0);">
<div class="van-pull-refresh__track" style="transition:0ms;transform:;">
<div class="van-pull-refresh__head"></div>
<div>
<p>刷新次数: 0</p>

View File

@ -46,7 +46,7 @@ exports[`change head content when pulling down 4`] = `
exports[`change head content when pulling down 5`] = `
<div class="van-pull-refresh">
<div class="van-pull-refresh__track" style="transition: 300ms; transform: translate3d(0,0px, 0);">
<div class="van-pull-refresh__track" style="transition: 300ms;">
<div class="van-pull-refresh__head"></div>
</div>
</div>
@ -54,7 +54,7 @@ exports[`change head content when pulling down 5`] = `
exports[`not in page top 1`] = `
<div class="van-pull-refresh">
<div class="van-pull-refresh__track" style="transition: 0ms; transform: translate3d(0,0px, 0);">
<div class="van-pull-refresh__track" style="transition: 0ms;">
<div class="van-pull-refresh__head"></div>
</div>
</div>