Skip to content

Commit

Permalink
fix: Export mixins on Clair
Browse files Browse the repository at this point in the history
  • Loading branch information
webzhao committed Aug 27, 2018
1 parent ba50bc7 commit bb50dc8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ import Notification from './plugins/notification.js'
import validatable from './mixins/validatable'
import resettable from './mixins/resettable'

const mixins = { validatable, resettable }

export const Clair = {
mixins,
install (Vue) {
// inject $clair to Vue prototype
if (!('$clair' in Vue.prototype)) {
Expand All @@ -27,7 +30,7 @@ export const Clair = {
get () { return $clair }
})

$clair.mixins = { validatable, resettable }
$clair.mixins = mixins

Vue.prototype.noop = () => {}
}
Expand Down

0 comments on commit bb50dc8

Please sign in to comment.