Skip to content

Commit 56c4a2d

Browse files
Merge pull request LucasLeandro1204#23 from binggg/patch-1
fix(VueContentLoading): make uid observerable
2 parents 6fd85be + ad2e817 commit 56c4a2d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/components/VueContentLoading.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@
9191
},
9292
9393
gradientId () {
94-
return `gradient-${this._uid}`;
94+
return `gradient-${this.uid}`;
9595
},
9696
9797
clipPathId () {
98-
return `clipPath-${this._uid}`;
98+
return `clipPath-${this.uid}`;
9999
},
100100
101101
svg () {
@@ -115,5 +115,15 @@
115115
};
116116
},
117117
},
118+
119+
data () {
120+
return {
121+
uid: null,
122+
};
123+
},
124+
125+
created () {
126+
this.uid = this._uid;
127+
},
118128
};
119129
</script>

0 commit comments

Comments
 (0)