[Improvement] add BEM helper mixin (#904)

This commit is contained in:
neverland
2018-04-22 11:33:54 +08:00
committed by GitHub
parent f92caf0e5c
commit 051116df4c
17 changed files with 132 additions and 111 deletions

View File

@@ -2,6 +2,7 @@
* Create a basic component with common options
*/
import '../locale';
import bem from '../mixins/bem';
import i18n from '../mixins/i18n';
const install = function(Vue) {
@@ -12,7 +13,7 @@ export default function(sfc) {
sfc.name = 'van-' + sfc.name;
sfc.install = sfc.install || install;
sfc.mixins = sfc.mixins || [];
sfc.mixins.push(i18n);
sfc.mixins.push(i18n, bem);
return sfc;
};