Issues related to area scrolling using cli+mui in Vue

亚连
Release: 2018-06-09 15:52:51
Original
1867 people have browsed it

Below I will share with you an example code of Vue cli mui area scrolling. It has a good reference value and I hope it will be helpful to everyone.

vue cli mui is used together to achieve the effect of area rolling. The method is as follows

The first step is to introduce mui css js

@import url("/static/mui.min.css");
Copy after login

JS

import mui from '../../../static/mui.min.js';
Copy after login

Step 2

Write the area scrolling structure of structure mui It’s like this

*写需要滚动的内容

Copy after login

Paste part of my code below

  • {{item.name}}
    • {{food.name}}

      {{food.description}}

      月售{{food.sellCount}} 好评率{{food.rating}}%

      ¥{{food.price}} ¥{{food.oldPrice}}

Copy after login

Write JS below

Copy after login

This will implement vue cli The mui area is scrolled.

The above is what I compiled for everyone. I hope it will be helpful to everyone in the future.

Related articles:

How to use ztree in vue (detailed tutorial)

How to implement waterfall flow plug-in using JS

How to implement the function of converting html to pdf in JS

How to implement the pasteboard copy function using JS

The above is the detailed content of Issues related to area scrolling using cli+mui in Vue. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn