This article mainly describes how to solve the Vue+mui in the Mui-silder plug-in failure can not drag the problem, has a certain reference value, now share to everyone, the need for friends can refer to
When the Write tab is sliding. Or in this sliding menu, the picture turns into a carousel diagram.
Sometimes the MUI (". Mui-slider"). Slider ({interval:3000}), written in Ajax to get the data can be effective. But sometimes it doesn't work.
Someone recommended this. $nextTick (() =>{mui (". Mui-slider"). Slider ();}) But none of the following is good.
The best way to solve this problem is
Write that sliding operation in updated, the hook function.
Updated () { var slidermuiobj = mui (". Mui-slider");//Sliding account Slidermuiobj.slider ({ interval:3000 // If you want to automatically swipe 3000ms, write this. If it's a drag-and-drop, don't write this. Directly write Slidermuiobj.slider (); });
The above is the whole content of this article, I hope that everyone's learning has helped, more relevant content please pay attention to topic.alibabacloud.com!