Skip to content

Commit 1cb2f26

Browse files
committed
fix: restored default values to those of the readme
1 parent a399605 commit 1cb2f26

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

example/src/App.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
:player-size="options.playerSize"
1313
:player-controls="true"
1414
:showColorPicker="true"
15+
:loop="true"
16+
:autoplay="true"
1517
style="width: 100%; height:400px"></lottie-vue-player>
1618
</div>
1719
</template>

src/Player.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
props: {
4141
autoplay: {
4242
type: Boolean,
43-
default: true
43+
default: false
4444
},
4545
loop: {
4646
type: Boolean,
47-
default: true
47+
default: false
4848
},
4949
showColorPicker: {
5050
type: Boolean,
@@ -121,6 +121,7 @@
121121
}.bind(this));
122122
this.options.backgroundColor = this.backgroundColor;
123123
this.options.speed = this.speed;
124+
this.options.loop = this.loop;
124125
},
125126
methods: {
126127
togglePlayPause() {

0 commit comments

Comments
 (0)