Skip to content

Commit

Permalink
feat: added new prop onStateChange
Browse files Browse the repository at this point in the history
  • Loading branch information
mbj36 committed Aug 26, 2018
1 parent 2a6992e commit b5b5925
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 14 deletions.
8 changes: 4 additions & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<template>
<div>
<Slide right noOverlay isOpen>
<Stack>
<a href="#">Services</a>
<a href="#">Clients</a>
<a href="#">Contact</a>
<a href="#">Refer </a>
</Slide>
</Stack>
</div>
</template>

<script>
import Slide from './components/Menu/slide';
import Stack from './components/Menu/stack';
export default {
components: {
Slide: Slide
Stack: Stack
}
};
</script>
Expand Down
4 changes: 4 additions & 0 deletions src/components/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
noOverlay: {
type: Boolean,
required: false
},
onStateChange: {
type: Function,
required: false
}
},
methods: {
Expand Down
3 changes: 2 additions & 1 deletion src/components/Menu/bubble.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
right: this.$attrs.right,
width: this.$attrs.width,
disableEsc: this.$attrs.disableEsc,
noOverlay: this.$attrs.noOverlay
noOverlay: this.$attrs.noOverlay,
onStateChange: this.$attrs.onStateChange
}
};
}
Expand Down
3 changes: 2 additions & 1 deletion src/components/Menu/elastic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
right: this.$attrs.right,
width: this.$attrs.width,
disableEsc: this.$attrs.disableEsc,
noOverlay: this.$attrs.noOverlay
noOverlay: this.$attrs.noOverlay,
onStateChange: this.$attrs.onStateChange
}
};
}
Expand Down
3 changes: 2 additions & 1 deletion src/components/Menu/fallDown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
right: this.$attrs.right,
width: this.$attrs.width,
disableEsc: this.$attrs.disableEsc,
noOverlay: this.$attrs.noOverlay
noOverlay: this.$attrs.noOverlay,
onStateChange: this.$attrs.onStateChange
}
};
}
Expand Down
3 changes: 2 additions & 1 deletion src/components/Menu/push.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
right: this.$attrs.right,
width: this.$attrs.width,
disableEsc: this.$attrs.disableEsc,
noOverlay: this.$attrs.noOverlay
noOverlay: this.$attrs.noOverlay,
onStateChange: this.$attrs.onStateChange
}
};
}
Expand Down
3 changes: 2 additions & 1 deletion src/components/Menu/pushRotate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
right: this.$attrs.right,
width: this.$attrs.width,
disableEsc: this.$attrs.disableEsc,
noOverlay: this.$attrs.noOverlay
noOverlay: this.$attrs.noOverlay,
onStateChange: this.$attrs.onStateChange
}
};
}
Expand Down
3 changes: 2 additions & 1 deletion src/components/Menu/reveal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
right: this.$attrs.right,
width: this.$attrs.width,
disableEsc: this.$attrs.disableEsc,
noOverlay: this.$attrs.noOverlay
noOverlay: this.$attrs.noOverlay,
onStateChange: this.$attrs.onStateChange
}
};
}
Expand Down
3 changes: 2 additions & 1 deletion src/components/Menu/scaleDown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
right: this.$attrs.right,
width: this.$attrs.width,
disableEsc: this.$attrs.disableEsc,
noOverlay: this.$attrs.noOverlay
noOverlay: this.$attrs.noOverlay,
onStateChange: this.$attrs.onStateChange
}
};
}
Expand Down
3 changes: 2 additions & 1 deletion src/components/Menu/scaleRotate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
right: this.$attrs.right,
width: this.$attrs.width,
disableEsc: this.$attrs.disableEsc,
noOverlay: this.$attrs.noOverlay
noOverlay: this.$attrs.noOverlay,
onStateChange: this.$attrs.onStateChange
}
};
}
Expand Down
5 changes: 4 additions & 1 deletion src/components/Menu/slide.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@
right: this.$attrs.right,
width: this.$attrs.width,
disableEsc: this.$attrs.disableEsc,
noOverlay: this.$attrs.noOverlay
noOverlay: this.$attrs.noOverlay,
onStateChange: this.$attrs.onStateChange
}
};
}
};
</script>


6 changes: 5 additions & 1 deletion src/components/Menu/stack.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@
right: this.$attrs.right,
width: this.$attrs.width,
disableEsc: this.$attrs.disableEsc,
noOverlay: this.$attrs.noOverlay
noOverlay: this.$attrs.noOverlay,
onStateChange: this.$attrs.onStateChange
}
};
}
};
</script>



0 comments on commit b5b5925

Please sign in to comment.