mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 02:16:12 +08:00
fix(PullRefresh): track should be full of container (#5878)
This commit is contained in:
parent
c00b2937fb
commit
afed270c14
@ -114,11 +114,8 @@ export default {
|
|||||||
background-color: @white;
|
background-color: @white;
|
||||||
|
|
||||||
.van-pull-refresh {
|
.van-pull-refresh {
|
||||||
&,
|
|
||||||
&__track {
|
|
||||||
height: calc(100vh - 50px);
|
height: calc(100vh - 50px);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.doge {
|
.doge {
|
||||||
width: 140px;
|
width: 140px;
|
||||||
|
@ -198,14 +198,14 @@ export default createComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const style = {
|
const trackStyle = {
|
||||||
transitionDuration: `${this.duration}ms`,
|
transitionDuration: `${this.duration}ms`,
|
||||||
transform: this.distance ? `translate3d(0,${this.distance}px, 0)` : '',
|
transform: this.distance ? `translate3d(0,${this.distance}px, 0)` : '',
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class={bem()}>
|
<div class={bem()}>
|
||||||
<div ref="track" class={bem('track')} style={style}>
|
<div ref="track" class={bem('track')} style={trackStyle}>
|
||||||
<div class={bem('head')} style={this.headStyle}>
|
<div class={bem('head')} style={this.headStyle}>
|
||||||
{this.genStatus()}
|
{this.genStatus()}
|
||||||
</div>
|
</div>
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
&__track {
|
&__track {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
transition-property: transform;
|
transition-property: transform;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user