Skip to content

Commit 5723f6a

Browse files
committed
[build] 6.1.0
1 parent 0bd29a0 commit 5723f6a

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

dist/vue-class-component.common.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* vue-class-component v6.0.0
2+
* vue-class-component v6.1.0
33
* (c) 2015-2017 Evan You
44
* @license MIT
55
*/
@@ -46,7 +46,8 @@ function collectDataFromConstructor(vm, Component) {
4646
if (key.charAt(0) !== '_') {
4747
Object.defineProperty(_this, key, {
4848
get: function () { return vm[key]; },
49-
set: function (value) { return vm[key] = value; }
49+
set: function (value) { return vm[key] = value; },
50+
configurable: true
5051
});
5152
}
5253
});
@@ -118,7 +119,13 @@ function componentFactory(Component, options) {
118119
var Super = superProto instanceof Vue
119120
? superProto.constructor
120121
: Vue;
121-
return Super.extend(options);
122+
var Extended = Super.extend(options);
123+
for (var staticKey in Component) {
124+
if (Component.hasOwnProperty(staticKey)) {
125+
Extended[staticKey] = Component[staticKey];
126+
}
127+
}
128+
return Extended;
122129
}
123130

124131
function Component(options) {

dist/vue-class-component.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* vue-class-component v6.0.0
2+
* vue-class-component v6.1.0
33
* (c) 2015-2017 Evan You
44
* @license MIT
55
*/
@@ -46,7 +46,8 @@ function collectDataFromConstructor(vm, Component) {
4646
if (key.charAt(0) !== '_') {
4747
Object.defineProperty(_this, key, {
4848
get: function () { return vm[key]; },
49-
set: function (value) { return vm[key] = value; }
49+
set: function (value) { return vm[key] = value; },
50+
configurable: true
5051
});
5152
}
5253
});
@@ -118,7 +119,13 @@ function componentFactory(Component, options) {
118119
var Super = superProto instanceof Vue
119120
? superProto.constructor
120121
: Vue;
121-
return Super.extend(options);
122+
var Extended = Super.extend(options);
123+
for (var staticKey in Component) {
124+
if (Component.hasOwnProperty(staticKey)) {
125+
Extended[staticKey] = Component[staticKey];
126+
}
127+
}
128+
return Extended;
122129
}
123130

124131
function Component(options) {

dist/vue-class-component.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)