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: {
|
||||
items() {
|
||||
this.setActiveItem(0);
|
||||
items(val) {
|
||||
if (val.length > 0) this.setActiveItem(0);
|
||||
},
|
||||
|
||||
activeIndex(val, oldVal) {
|
||||
|
|
Loading…
Reference in New Issue