mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
popup component
This commit is contained in:
parent
18c9d2c933
commit
3a1fca4953
@ -14,7 +14,6 @@ const getDOM = function(dom) {
|
|||||||
|
|
||||||
let scrollBarWidth;
|
let scrollBarWidth;
|
||||||
const getScrollBarWidth = () => {
|
const getScrollBarWidth = () => {
|
||||||
if (Vue.prototype.$isServer) return;
|
|
||||||
if (scrollBarWidth !== undefined) return scrollBarWidth;
|
if (scrollBarWidth !== undefined) return scrollBarWidth;
|
||||||
|
|
||||||
const outer = document.createElement('div');
|
const outer = document.createElement('div');
|
||||||
@ -76,14 +75,7 @@ export default {
|
|||||||
if (val) {
|
if (val) {
|
||||||
if (this.opening) return;
|
if (this.opening) return;
|
||||||
|
|
||||||
if (!this.rendered) {
|
|
||||||
this.rendered = true;
|
|
||||||
Vue.nextTick(() => {
|
|
||||||
this.open();
|
this.open();
|
||||||
});
|
|
||||||
} else {
|
|
||||||
this.open();
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.close();
|
this.close();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user