feat(cli): auto install all components

This commit is contained in:
陈嘉涵
2019-11-27 11:45:35 +08:00
parent fac1a85c87
commit e4f934dfde
13 changed files with 46 additions and 23 deletions

View File

@@ -36,7 +36,7 @@ const components = [
${names.join(',\n ')}
];
function install() {
function install(Vue) {
components.forEach(item => {
if (item.install) {
Vue.use(Component);