Skip to content

Commit 955c833

Browse files
committed
Use lifecycle hook compatible with SSR
1 parent 3989c65 commit 955c833

File tree

7 files changed

+14
-10
lines changed

7 files changed

+14
-10
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 0.1.8 (Feb 2, 2020)
2+
3+
* Use lifecycle hook compatible with SSR
4+
15
### 0.1.7 (Feb 2, 2020)
26

37
* Add support for `subLabelValue`

dist/vue-funnel-graph.esm.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ var script = {
189189
});
190190
}
191191
},
192-
beforeMount: function beforeMount() {
192+
created: function created() {
193193
this.graph = new FunnelGraph({
194194
height: this.height,
195195
width: this.width,
@@ -367,11 +367,11 @@ var __vue_staticRenderFns__ = [];
367367
/* style */
368368
var __vue_inject_styles__ = function (inject) {
369369
if (!inject) { return }
370-
inject("data-v-3f236e82_0", { source: ".appear-enter-active[data-v-3f236e82],.appear-leave-active[data-v-3f236e82]{transition:all .7s ease-in-out}.appear-enter-to[data-v-3f236e82],.appear-leave[data-v-3f236e82]{max-width:100%;max-height:100%;opacity:1}.appear-enter[data-v-3f236e82],.appear-leave-to[data-v-3f236e82]{max-width:0;max-height:0;opacity:0}.fade-enter-active[data-v-3f236e82],.fade-leave-active[data-v-3f236e82]{transition:all .3s ease}.fade-enter-to[data-v-3f236e82],.fade-leave[data-v-3f236e82]{opacity:1}.fade-enter[data-v-3f236e82],.fade-leave-to[data-v-3f236e82]{opacity:0}", map: undefined, media: undefined });
370+
inject("data-v-52d787cd_0", { source: ".appear-enter-active[data-v-52d787cd],.appear-leave-active[data-v-52d787cd]{transition:all .7s ease-in-out}.appear-enter-to[data-v-52d787cd],.appear-leave[data-v-52d787cd]{max-width:100%;max-height:100%;opacity:1}.appear-enter[data-v-52d787cd],.appear-leave-to[data-v-52d787cd]{max-width:0;max-height:0;opacity:0}.fade-enter-active[data-v-52d787cd],.fade-leave-active[data-v-52d787cd]{transition:all .3s ease}.fade-enter-to[data-v-52d787cd],.fade-leave[data-v-52d787cd]{opacity:1}.fade-enter[data-v-52d787cd],.fade-leave-to[data-v-52d787cd]{opacity:0}", map: undefined, media: undefined });
371371

372372
};
373373
/* scoped */
374-
var __vue_scope_id__ = "data-v-3f236e82";
374+
var __vue_scope_id__ = "data-v-52d787cd";
375375
/* module identifier */
376376
var __vue_module_identifier__ = undefined;
377377
/* functional template */

dist/vue-funnel-graph.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-funnel-graph.umd.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
});
191191
}
192192
},
193-
beforeMount: function beforeMount() {
193+
created: function created() {
194194
this.graph = new FunnelGraph({
195195
height: this.height,
196196
width: this.width,
@@ -368,11 +368,11 @@
368368
/* style */
369369
var __vue_inject_styles__ = function (inject) {
370370
if (!inject) { return }
371-
inject("data-v-3f236e82_0", { source: ".appear-enter-active[data-v-3f236e82],.appear-leave-active[data-v-3f236e82]{transition:all .7s ease-in-out}.appear-enter-to[data-v-3f236e82],.appear-leave[data-v-3f236e82]{max-width:100%;max-height:100%;opacity:1}.appear-enter[data-v-3f236e82],.appear-leave-to[data-v-3f236e82]{max-width:0;max-height:0;opacity:0}.fade-enter-active[data-v-3f236e82],.fade-leave-active[data-v-3f236e82]{transition:all .3s ease}.fade-enter-to[data-v-3f236e82],.fade-leave[data-v-3f236e82]{opacity:1}.fade-enter[data-v-3f236e82],.fade-leave-to[data-v-3f236e82]{opacity:0}", map: undefined, media: undefined });
371+
inject("data-v-52d787cd_0", { source: ".appear-enter-active[data-v-52d787cd],.appear-leave-active[data-v-52d787cd]{transition:all .7s ease-in-out}.appear-enter-to[data-v-52d787cd],.appear-leave[data-v-52d787cd]{max-width:100%;max-height:100%;opacity:1}.appear-enter[data-v-52d787cd],.appear-leave-to[data-v-52d787cd]{max-width:0;max-height:0;opacity:0}.fade-enter-active[data-v-52d787cd],.fade-leave-active[data-v-52d787cd]{transition:all .3s ease}.fade-enter-to[data-v-52d787cd],.fade-leave[data-v-52d787cd]{opacity:1}.fade-enter[data-v-52d787cd],.fade-leave-to[data-v-52d787cd]{opacity:0}", map: undefined, media: undefined });
372372

373373
};
374374
/* scoped */
375-
var __vue_scope_id__ = "data-v-3f236e82";
375+
var __vue_scope_id__ = "data-v-52d787cd";
376376
/* module identifier */
377377
var __vue_module_identifier__ = undefined;
378378
/* functional template */

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-funnel-graph-js",
3-
"version": "0.1.7",
3+
"version": "0.1.8",
44
"description": "",
55
"main": "dist/vue-funnel-graph.umd.js",
66
"module": "dist/vue-funnel-graph.esm.js",

src/lib-components/vue-funnel-graph.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
});
244244
}
245245
},
246-
beforeMount() {
246+
created() {
247247
this.graph = new FunnelGraph({
248248
height: this.height,
249249
width: this.width,

0 commit comments

Comments
 (0)