mirror of https://github.com/ElemeFE/element
exclude Message in component registration (#269)
parent
921694d346
commit
e631721155
|
@ -6,7 +6,7 @@ var path = require('path');
|
||||||
|
|
||||||
var OUTPUT_PATH = path.join(__dirname, '../../src/index.js');
|
var OUTPUT_PATH = path.join(__dirname, '../../src/index.js');
|
||||||
var IMPORT_TEMPLATE = 'import {{name}} from \'../packages/{{package}}/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}}
|
var MAIN_TEMPLATE = `{{include}}
|
||||||
|
|
||||||
const install = function(Vue) {
|
const install = function(Vue) {
|
||||||
|
@ -52,8 +52,8 @@ ComponentNames.forEach(name => {
|
||||||
package: name
|
package: name
|
||||||
}));
|
}));
|
||||||
|
|
||||||
if (['Loading', 'MessageBox', 'Notification'].indexOf(componentName) === -1) {
|
if (['Loading', 'MessageBox', 'Notification', 'Message'].indexOf(componentName) === -1) {
|
||||||
installTemplate.push(render(ISNTALL_COMPONENT_TEMPLATE, {
|
installTemplate.push(render(INSTALL_COMPONENT_TEMPLATE, {
|
||||||
name: componentName,
|
name: componentName,
|
||||||
component: name
|
component: name
|
||||||
}));
|
}));
|
||||||
|
|
|
@ -105,7 +105,6 @@ const install = function(Vue) {
|
||||||
Vue.component(Upload.name, Upload);
|
Vue.component(Upload.name, Upload);
|
||||||
Vue.component(Progress.name, Progress);
|
Vue.component(Progress.name, Progress);
|
||||||
Vue.component(Spinner.name, Spinner);
|
Vue.component(Spinner.name, Spinner);
|
||||||
Vue.component(Message.name, Message);
|
|
||||||
Vue.component(Badge.name, Badge);
|
Vue.component(Badge.name, Badge);
|
||||||
Vue.component(Card.name, Card);
|
Vue.component(Card.name, Card);
|
||||||
Vue.component(Rate.name, Rate);
|
Vue.component(Rate.name, Rate);
|
||||||
|
|
Loading…
Reference in New Issue