diff --git a/src/components/cascader/cascader.vue b/src/components/cascader/cascader.vue
index 6d8c945..22206ac 100644
--- a/src/components/cascader/cascader.vue
+++ b/src/components/cascader/cascader.vue
@@ -20,7 +20,7 @@
-
+
-
+
-
+
{
+ this.resetTransformOrigin();
}
});
});
@@ -64,6 +67,10 @@
}
}, 300);
}
+ },
+ resetTransformOrigin() {
+ let placement = this.popper.popper.getAttribute('x-placement').split('-')[0];
+ this.popper.popper.style.transformOrigin = placement==='bottom'?'center top':'center bottom';
}
},
created () {
diff --git a/src/components/select/select.vue b/src/components/select/select.vue
index 3798a39..7a8ea3f 100644
--- a/src/components/select/select.vue
+++ b/src/components/select/select.vue
@@ -35,7 +35,7 @@
-
+