How to solve the problem that the Mui-silder plugin in Vue+mui can't be dragged

Source: Internet
Author: User
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!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.