Skip to content

Commit c07f84c

Browse files
rotateY rtl
1 parent af7eda4 commit c07f84c

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/components/VueContentLoading.vue

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<template>
2-
<svg :viewBox="viewbox" preserveAspectRatio="xMidYMid meet">
2+
<svg
3+
:viewBox="viewbox"
4+
:style="svg"
5+
preserveAspectRatio="xMidYMid meet">
36
<rect
47
:style="rect.style"
58
:clip-path="rect.clipPath"
@@ -45,6 +48,10 @@
4548
name: 'VueContentLoading',
4649
4750
props: {
51+
rtl: {
52+
default: false,
53+
type: Boolean,
54+
},
4855
4956
speed: {
5057
default: 2,
@@ -91,6 +98,14 @@
9198
return `clipPath-${this._uid}`;
9299
},
93100
101+
svg () {
102+
if (this.rtl) {
103+
return {
104+
transform: 'rotateY(180deg)',
105+
};
106+
}
107+
},
108+
94109
rect () {
95110
return {
96111
style: {

0 commit comments

Comments
 (0)