|
1 | 1 | /**
|
2 |
| - * vue-class-component v5.0.0 |
| 2 | + * vue-class-component v5.0.1 |
3 | 3 | * (c) 2015-2017 Evan You
|
4 | 4 | * @license MIT
|
5 | 5 | */
|
6 | 6 | (function (global, factory) {
|
7 |
| - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) : |
8 |
| - typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) : |
9 |
| - (factory((global.VueClassComponent = global.VueClassComponent || {}),global.Vue)); |
| 7 | + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) : |
| 8 | + typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) : |
| 9 | + (factory((global.VueClassComponent = global.VueClassComponent || {}),global.Vue)); |
10 | 10 | }(this, (function (exports,Vue) { 'use strict';
|
11 | 11 |
|
12 | 12 | Vue = 'default' in Vue ? Vue['default'] : Vue;
|
@@ -78,7 +78,7 @@ var $internalHooks = [
|
78 | 78 | var $decoratorQueue = [];
|
79 | 79 | function componentFactory(Component, options) {
|
80 | 80 | if (options === void 0) { options = {}; }
|
81 |
| - options.name = options.name || Component._componentTag; |
| 81 | + options.name = options.name || Component._componentTag || Component.name; |
82 | 82 | var proto = Component.prototype;
|
83 | 83 | Object.getOwnPropertyNames(proto).forEach(function (key) {
|
84 | 84 | if (key === 'constructor') {
|
|
0 commit comments