diff --git a/build/bin/build-entry.js b/build/bin/build-entry.js index 0d03f2922..84e38cb12 100644 --- a/build/bin/build-entry.js +++ b/build/bin/build-entry.js @@ -6,7 +6,7 @@ var path = require('path'); var OUTPUT_PATH = path.join(__dirname, '../../src/index.js'); var IMPORT_TEMPLATE = 'import {{name}} from \'../packages/{{package}}/index.js\';'; -var ISNTALL_COMPONENT_TEMPLATE = ' Vue.component({{name}}.name, {{name}});'; +var INSTALL_COMPONENT_TEMPLATE = ' Vue.component({{name}}.name, {{name}});'; var MAIN_TEMPLATE = `{{include}} const install = function(Vue) { @@ -52,8 +52,8 @@ ComponentNames.forEach(name => { package: name })); - if (['Loading', 'MessageBox', 'Notification'].indexOf(componentName) === -1) { - installTemplate.push(render(ISNTALL_COMPONENT_TEMPLATE, { + if (['Loading', 'MessageBox', 'Notification', 'Message'].indexOf(componentName) === -1) { + installTemplate.push(render(INSTALL_COMPONENT_TEMPLATE, { name: componentName, component: name })); diff --git a/src/index.js b/src/index.js index f828f6d57..40a472b04 100644 --- a/src/index.js +++ b/src/index.js @@ -105,7 +105,6 @@ const install = function(Vue) { Vue.component(Upload.name, Upload); Vue.component(Progress.name, Progress); Vue.component(Spinner.name, Spinner); - Vue.component(Message.name, Message); Vue.component(Badge.name, Badge); Vue.component(Card.name, Card); Vue.component(Rate.name, Rate);