2.5.17, 3.1.3
None. It's logically perceivable.
Have a data change in parenting component.
Good performance, update getting invoked only on props changed. At least add an option to skip invokations, without need to comment out the update() invokation.
Updated is invoked on any data change invoking update on swiper as often as the number of changed data elements (including computed). This results in very bad performance.
我也遇到相同的问题。
我将源码从node_modules拷贝出来了,然后修改了slide.vue,强制屏蔽了所有update操作。
或者自己基于原始的swiper封装一个vue组件。
...
updated() {
if (this.$parent.options && this.$parent.options.isUpdate) {
this.update()
}
},
Most helpful comment
我也遇到相同的问题。
我将源码从node_modules拷贝出来了,然后修改了slide.vue,强制屏蔽了所有update操作。
或者自己基于原始的swiper封装一个vue组件。