mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix SwipeItem size prop
This commit is contained in:
parent
70caee3dd5
commit
cb69bcbb99
@ -18,11 +18,11 @@ export default sfc({
|
||||
},
|
||||
|
||||
render(h) {
|
||||
const { vertical } = this.$parent;
|
||||
const { vertical, computedWidth, computedHeight } = this.$parent;
|
||||
|
||||
const style = {
|
||||
width: this.computedWidth + 'px',
|
||||
height: vertical ? this.computedHeight + 'px' : '100%',
|
||||
width: computedWidth + 'px',
|
||||
height: vertical ? computedHeight + 'px' : '100%',
|
||||
transform: `translate${vertical ? 'Y' : 'X'}(${this.offset}px)`
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user