@studiometa/js-toolkit 2.0.0-rc.1 → 2.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/decorators/withVue2.cjs
CHANGED
|
@@ -33,7 +33,8 @@ var withVue2_default = (BaseClass, Vue) => {
|
|
|
33
33
|
constructor(element) {
|
|
34
34
|
super(element);
|
|
35
35
|
__publicField(this, "$vue");
|
|
36
|
-
|
|
36
|
+
var _a2;
|
|
37
|
+
const vueConfig = (_a2 = this.vueConfig) != null ? _a2 : this.constructor.vueConfig;
|
|
37
38
|
if (!vueConfig) {
|
|
38
39
|
throw new Error("[withVue] You must define a `vueConfig` object.");
|
|
39
40
|
}
|
package/decorators/withVue2.js
CHANGED
|
@@ -10,7 +10,8 @@ var withVue2_default = (BaseClass, Vue) => {
|
|
|
10
10
|
constructor(element) {
|
|
11
11
|
super(element);
|
|
12
12
|
__publicField(this, "$vue");
|
|
13
|
-
|
|
13
|
+
var _a2;
|
|
14
|
+
const vueConfig = (_a2 = this.vueConfig) != null ? _a2 : this.constructor.vueConfig;
|
|
14
15
|
if (!vueConfig) {
|
|
15
16
|
throw new Error("[withVue] You must define a `vueConfig` object.");
|
|
16
17
|
}
|