About this project

Vant Weapp is the WeChat Mini Program version of the Vant component library, maintained by the Youzan team and open-sourced in 2017. Vant is a lightweight and reliable mobile UI component library. The official versions include Vue 2, Vue 3, and WeChat Mini Program, while the community also maintains a React version and an Alipay Mini Program version. Vant Weapp is designed specifically for WeChat Mini Programs, providing a rich set of mobile UI components. Developers can directly use these components to build interfaces in WeChat Mini Programs. Before using it, you need to study WeChat's official Mini Program introductory tutorial and custom component introduction. There are two installation methods: npm is recommended, using npm i @vant/weapp -S --production or yarn add @vant/weapp --production; alternatively, you can download the source code via git clone and copy the dist directory into your project. To use a component, you need to import the corresponding custom component via usingComponents in the page's JSON file, and then use the component tag directly in WXML. For example, after importing the button component, you can use the van-button tag. The project supports preview in WeChat Developer Tools. After installing dependencies, run npm run dev to compile the components, then add the example directory to Developer Tools to preview demos. For the region picker component, the regional data can be imported directly from the sample database file in the cloud development environment. Vant Weapp supports a minimum Mini Program base library version of 2.6.5. The project is open-sourced under the MIT license, and free use and contributions are welcome. The core team includes multiple active contributors, and the project documentation website is accessible from both domestic (China) and GitHub entry points.