added scrolling property to toggle CSS for creating or hiding scrollbars
This commit is contained in:
parent
ff16f09614
commit
f9a2e6114d
2 changed files with 20 additions and 2 deletions
|
@ -76,6 +76,10 @@
|
|||
footerHide: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
scrolling: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data () {
|
||||
|
@ -204,13 +208,22 @@
|
|||
} else {
|
||||
if (this.timer) clearTimeout(this.timer);
|
||||
this.wrapShow = true;
|
||||
this.addScrollEffect();
|
||||
if (!this.scrolling) {
|
||||
this.addScrollEffect();
|
||||
}
|
||||
}
|
||||
},
|
||||
loading (val) {
|
||||
if (!val) {
|
||||
this.buttonLoading = false;
|
||||
}
|
||||
},
|
||||
scrolling (val) {
|
||||
if (!this.scrolling) {
|
||||
this.addScrollEffect();
|
||||
} else {
|
||||
this.removeScrollEffect();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue