❤ Uniapp usage three (advanced usage configuration and various uses)

❤ Uniapp usage three (configuration and various uses)

1. uniapp introduces vant

Introduction method
1. Download vant source code
Method 1: Go to GitHub from the homepage of Vant official website to download the corresponding version of the compressed package, and unzip the file for backup Use, make sure there is a dist folder in the downloaded compressed package

2. Create the uniapp project, create a new folder wxcomponents in the root directory, and put the dist folder in the downloaded compressed package into wxcomponents. It is recommended to rename dist to vant.

3. Introduce UI style index.wxss into App.vue in the root directory, as shown below

@import "/wxcomponents/vant/common/index.wxss";

4、main.js

Guess you like

Origin blog.csdn.net/weixin_43615570/article/details/134345980