Add prop for defaultVisible to the ToggleMenu vue component
This commit is contained in:
parent
e744fddbf9
commit
ff98acdb1d
@ -5,6 +5,13 @@ export default {
|
|||||||
|
|
||||||
mixins: [ToggleMixin],
|
mixins: [ToggleMixin],
|
||||||
|
|
||||||
|
props: {
|
||||||
|
defaultVisible: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
toggle: function(e) {
|
toggle: function(e) {
|
||||||
if (this.$el.contains(e.target)) {
|
if (this.$el.contains(e.target)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user