Skip to content

Commit

Permalink
Merge pull request #2 from ekanant/camel-case-event-to-kebab-case
Browse files Browse the repository at this point in the history
🐛 mbj36#72 rename event name to kebab-case
  • Loading branch information
ekanant authored Jul 24, 2020
2 parents c299864 + 9d7f2ea commit 4f6e03c
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 34 deletions.
4 changes: 2 additions & 2 deletions src/components/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
},
methods: {
openMenu() {
this.$emit('openMenu');
this.$emit('open-menu');
this.isSideBarOpen = true;
if (!this.noOverlay) {
Expand All @@ -93,7 +93,7 @@
},
closeMenu() {
this.$emit('closeMenu');
this.$emit('close-menu');
this.isSideBarOpen = false;
document.body.classList.remove('bm-overlay');
this.$refs.sideNav.style.width = '0px';
Expand Down
10 changes: 5 additions & 5 deletions src/components/Menu/bubble.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<Menu ref="sideNav" v-bind="this.$attrs" @openMenu="openMenu" @closeMenu="closeMenu">
<Menu ref="sideNav" v-bind="this.$attrs" @open-menu="openMenu" @close-menu="closeMenu">
<slot></slot>
</Menu>
</div>
Expand All @@ -27,7 +27,7 @@
},
methods : {
openMenu () {
//this.$emit("openMenu")
//this.$emit("open-menu")
let set= this.$refs.sideNav.$el.querySelector('.bm-menu');
//console.log(set,"lallan")
set.style.borderRadius='150% / 70%';
Expand All @@ -40,7 +40,7 @@
set.style.borderBottomLeftRadius='0px';
}
set.style.transitionTimingFunction='easy-in';
this.$emit("openMenu");
this.$emit("open-menu");
setTimeout(function(){
set.style.transitionTimingFunction='cubic-bezier(.29, 1.01, 1, -0.68)';
Expand All @@ -49,10 +49,10 @@
}, 300);
},
closeMenu () {
//this.$emit("closeMenu")
//this.$emit("close-menu")
let set= this.$refs.sideNav.$el.querySelector('.bm-menu');
set.style.transitionTimingFunction=null;
this.$emit("closeMenu")
this.$emit("close-menu")
}
}
};
Expand Down
6 changes: 3 additions & 3 deletions src/components/Menu/elastic.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<Menu v-bind="propsToPass" openMenu="openMenu" @closeMenu="closeMenu">
<Menu v-bind="propsToPass" @open-menu="openMenu" @close-menu="closeMenu">
<slot></slot>
</Menu>
</div>
Expand All @@ -27,10 +27,10 @@
},
methods : {
openMenu () {
this.$emit("openMenu")
this.$emit("open-menu")
},
closeMenu () {
this.$emit("closeMenu")
this.$emit("close-menu")
}
}
};
Expand Down
6 changes: 3 additions & 3 deletions src/components/Menu/fallDown.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<Menu ref="sideNav" v-bind="this.$attrs" @openMenu="openMenu" @closeMenu="closeMenu">
<Menu ref="sideNav" v-bind="this.$attrs" @open-menu="openMenu" @close-menu="closeMenu">
<slot></slot>
</Menu>
</div>
Expand Down Expand Up @@ -28,7 +28,7 @@
},
methods : {
openMenu () {
this.$emit("openMenu")
this.$emit("open-menu")
let width = this.$attrs.width ? this.$attrs.width + 'px' : '300px';
this.$refs.sideNav.$el.querySelector('.bm-menu').style.overflowY = 'hidden';
this.bodyOldStyle = document.body.getAttribute('style') || '';
Expand All @@ -54,7 +54,7 @@
},
closeMenu () {
this.$emit("closeMenu")
this.$emit("close-menu")
document.querySelector('#page-wrap').style.transition =
'all 0.5s ease 0s';
document.querySelector('#page-wrap').style.transform = '';
Expand Down
6 changes: 3 additions & 3 deletions src/components/Menu/push.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<Menu v-bind="this.$attrs" @openMenu="push" @closeMenu="pull">
<Menu v-bind="this.$attrs" @open-menu="push" @close-menu="pull">
<slot></slot>
</Menu>
</div>
Expand All @@ -20,10 +20,10 @@
},
methods: {
openMenu () {
this.$emit("openMenu")
this.$emit("open-menu")
},
closeMenu () {
this.$emit("closeMenu")
this.$emit("close-menu")
},
push() {
this.openMenu()
Expand Down
6 changes: 3 additions & 3 deletions src/components/Menu/pushRotate.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<Menu v-bind="this.$attrs" @openMenu="push" @closeMenu="pull">
<Menu v-bind="this.$attrs" @open-menu="push" @close-menu="pull">
<slot></slot>
</Menu>
</div>
Expand All @@ -21,10 +21,10 @@
},
methods: {
openMenu () {
this.$emit("openMenu")
this.$emit("open-menu")
},
closeMenu () {
this.$emit("closeMenu")
this.$emit("close-menu")
},
push() {
this.openMenu()
Expand Down
6 changes: 3 additions & 3 deletions src/components/Menu/reveal.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<Menu v-bind="this.$attrs" @openMenu="push" @closeMenu="pull">
<Menu v-bind="this.$attrs" @open-menu="push" @close-menu="pull">
<slot></slot>
</Menu>
</div>
Expand All @@ -20,10 +20,10 @@
},
methods: {
openMenu () {
this.$emit("openMenu")
this.$emit("open-menu")
},
closeMenu () {
this.$emit("closeMenu")
this.$emit("close-menu")
},
push() {
this.openMenu()
Expand Down
6 changes: 3 additions & 3 deletions src/components/Menu/scaleDown.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<Menu v-bind="this.$attrs" @openMenu="push" @closeMenu="pull">
<Menu v-bind="this.$attrs" @open-menu="push" @close-menu="pull">
<slot></slot>
</Menu>
</div>
Expand All @@ -21,10 +21,10 @@
},
methods: {
openMenu () {
this.$emit("openMenu")
this.$emit("open-menu")
},
closeMenu () {
this.$emit("closeMenu")
this.$emit("close-menu")
},
push() {
this.openMenu()
Expand Down
6 changes: 3 additions & 3 deletions src/components/Menu/scaleRotate.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<Menu v-bind="this.$attrs" @openMenu="push" @closeMenu="pull">
<Menu v-bind="this.$attrs" @open-menu="push" @close-menu="pull">
<slot></slot>
</Menu>
</div>
Expand All @@ -21,10 +21,10 @@
},
methods: {
openMenu () {
this.$emit("openMenu")
this.$emit("open-menu")
},
closeMenu () {
this.$emit("closeMenu")
this.$emit("close-menu")
},
push() {
this.openMenu()
Expand Down
6 changes: 3 additions & 3 deletions src/components/Menu/slide.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<Menu v-bind="this.$attrs" @openMenu="openMenu" @closeMenu="closeMenu">
<Menu v-bind="this.$attrs" @open-menu="openMenu" @close-menu="closeMenu">
<slot></slot>
</Menu>
</div>
Expand All @@ -15,10 +15,10 @@
},
methods: {
openMenu() {
this.$emit('openMenu');
this.$emit('open-menu');
},
closeMenu() {
this.$emit('closeMenu');
this.$emit('close-menu');
}
}
};
Expand Down
6 changes: 3 additions & 3 deletions src/components/Menu/stack.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<Menu v-bind="propsToPass" openMenu="openMenu" @closeMenu="closeMenu">
<Menu v-bind="propsToPass" @open-menu="openMenu" @close-menu="closeMenu">
<slot></slot>
</Menu>
</div>
Expand All @@ -27,10 +27,10 @@
},
methods : {
openMenu () {
this.$emit("openMenu")
this.$emit("open-menu")
},
closeMenu () {
this.$emit("closeMenu")
this.$emit("close-menu")
}
}
};
Expand Down

0 comments on commit 4f6e03c

Please sign in to comment.