From bb50dc80e514143317b9a24a73f265ab6b123321 Mon Sep 17 00:00:00 2001 From: webzhao Date: Mon, 27 Aug 2018 15:51:12 +0800 Subject: [PATCH] fix: Export mixins on Clair --- src/scripts/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/scripts/index.js b/src/scripts/index.js index 5591bc43..5f8a3132 100644 --- a/src/scripts/index.js +++ b/src/scripts/index.js @@ -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)) { @@ -27,7 +30,7 @@ export const Clair = { get () { return $clair } }) - $clair.mixins = { validatable, resettable } + $clair.mixins = mixins Vue.prototype.noop = () => {} }