2
0
Эх сурвалжийг харах

respect user specified component names

Evan You 10 жил өмнө
parent
commit
6726a91703

+ 1 - 1
src/directives/internal/component.js

@@ -108,7 +108,7 @@ module.exports = {
   resolveComponent: function (id, cb) {
   resolveComponent: function (id, cb) {
     var self = this
     var self = this
     this.pendingComponentCb = _.cancellable(function (Component) {
     this.pendingComponentCb = _.cancellable(function (Component) {
-      self.ComponentName = id
+      self.ComponentName = Component.options.name || id
       self.Component = Component
       self.Component = Component
       cb()
       cb()
     })
     })