We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4278807 commit af7eda4Copy full SHA for af7eda4
src/components/VueContentLoading.vue
@@ -1,8 +1,8 @@
1
<template>
2
<svg :viewBox="viewbox" preserveAspectRatio="xMidYMid meet">
3
<rect
4
- :style="{ fill: 'url(#' + gradientId + ')' }"
5
- :clip-path="'url(#' + clipPathId + ')'"
+ :style="rect.style"
+ :clip-path="rect.clipPath"
6
x="0"
7
y="0"
8
:width="width"
@@ -43,7 +43,9 @@
43
44
export default {
45
name: 'VueContentLoading',
46
+
47
props: {
48
49
speed: {
50
default: 2,
51
type: Number,
@@ -88,6 +90,15 @@
88
90
clipPathId () {
89
91
return `clipPath-${this._uid}`;
92
},
93
94
+ rect () {
95
+ return {
96
+ style: {
97
+ fill: 'url(#' + this.gradientId + ')',
98
+ },
99
+ clipPath: 'url(#' + this.clipPathId + ')',
100
+ };
101
102
103
};
104
</script>
0 commit comments