Popover: add reference slot

This commit is contained in:
qingwei.li
2016-09-08 11:21:17 +08:00
parent a3cfc8a4f9
commit a77b6850e1
3 changed files with 22 additions and 20 deletions

View File

@@ -63,7 +63,7 @@ export default {
const options = this.options;
const popper = this.popper || this.$refs.popper;
const reference = this.reference || this.$refs.reference;
const reference = this.reference || this.$refs.reference || this.$slots.reference[0].elm;;
if (!popper || !reference) return;
if (this.visibleArrow) {