[Improvement] optimize utils (#661)

This commit is contained in:
neverland
2018-03-02 14:39:26 +08:00
committed by GitHub
parent 39cdaf0907
commit 92b116c071
7 changed files with 24 additions and 22 deletions

View File

@@ -8,10 +8,10 @@ import install from './install';
import Loading from '../loading';
export default function(sfc) {
sfc.mixins = sfc.mixins || [];
sfc.components = sfc.components || {};
sfc.install = sfc.install || install;
sfc.mixins = sfc.mixins || [];
sfc.mixins.push(i18n);
sfc.components = sfc.components || {};
sfc.components.icon = Icon;
sfc.components.loading = Loading;