@@ -18,9 +18,11 @@ export default create({
|
||||
|
||||
computed: {
|
||||
style() {
|
||||
const { vertical, width, height } = this.$parent;
|
||||
return {
|
||||
width: this.$parent.width + 'px',
|
||||
transform: `translate(${this.offset}px, 0)`
|
||||
width: width + 'px',
|
||||
height: vertical ? height + 'px' : '100%',
|
||||
transform: `translate${vertical ? 'Y' : 'X'}(${this.offset}px)`
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user