Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Commit

Permalink
Create addClass prop for Trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Chng-Zhi-Xuan committed Jul 24, 2018
1 parent dcc70b2 commit 8a17024
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/trigger.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<span ref="trigger"><slot></slot></span>
<span ref="trigger" :class="[addClass]"><slot></slot></span>
</template>

<script>
Expand All @@ -16,6 +16,10 @@
},
_triggerBy: {
type: Object
},
addClass: {
type: String,
default: ''
}
},
mounted () {
Expand Down

0 comments on commit 8a17024

Please sign in to comment.