mirror of https://github.com/ElemeFE/element
Carousel: fix async item not refreshing view issue (#3159)
parent
2a11579dbc
commit
df46ca5c42
|
@ -96,8 +96,8 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
items() {
|
items(val) {
|
||||||
this.setActiveItem(0);
|
if (val.length > 0) this.setActiveItem(0);
|
||||||
},
|
},
|
||||||
|
|
||||||
activeIndex(val, oldVal) {
|
activeIndex(val, oldVal) {
|
||||||
|
|
Loading…
Reference in New Issue