File tree Expand file tree Collapse file tree 1 file changed +5
-20
lines changed Expand file tree Collapse file tree 1 file changed +5
-20
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ export default {
28
28
visible: this .show
29
29
}
30
30
},
31
+ mounted () {
32
+ if (this .show )
33
+ this .createPopper
34
+ },
31
35
props: {
32
36
text: {
33
37
type: String ,
@@ -40,25 +44,6 @@ export default {
40
44
menuClasses: String ,
41
45
toggleClasses: String ,
42
46
popperConfig: Object
43
- // popperConfig: {
44
- // type: Object,
45
- // default () {
46
- // return {
47
- // modifiers: {
48
- // placement: 'bottom-end',
49
- // offset: {
50
- // offset: '20px'
51
- // },
52
- // computeStyle: {
53
- // enabled: true
54
- // },
55
- // flip: {
56
- // enabled: true
57
- // }
58
- // }
59
- // }
60
- // }
61
- // }
62
47
},
63
48
mounted () {
64
49
this .checkForPopper ()
@@ -88,7 +73,7 @@ export default {
88
73
}
89
74
this ._popper = null
90
75
},
91
- createPopper () {
76
+ createPopper (element ) {
92
77
this .removePopper ()
93
78
this ._popper = new Popper (this .$refs .toggle , this .$refs .menu , this .popperConfig )
94
79
}
You can’t perform that action at this time.
0 commit comments