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],
|
||||
|
||||
props: {
|
||||
defaultVisible: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
toggle: function(e) {
|
||||
if (this.$el.contains(e.target)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user