If you are looking for other alternatives, it is recommended to use the official antD applet version provided by the official
Vant Aliapp is the Alipay applet version of Vant's mobile Vue component library. The two are based on the same visual specifications and provide a consistent API interface to help developers quickly build applet applications.
Vant Aliapp is obtained through the Antmove applet converter based on Vant-Weapp conversion and has made a small amount of compatible adaptation adjustments.
Alipay scans the QR code of the mini program below to experience the component library example:
Before you start using Vant Aliapp, you need to read the relevant documentation for the custom components of the Alipay applet.
npm i vant-aliapp -S --productionyarn add vant-aliapp --productionnpm uses example (vant-alipay-area).
Download the Vant Aliapp source code directly through git and copy the alipay/npm directory to your own project
git clone https://github.com/ant-move/Vant-Aliapp.gitAdd the following code to app.js
import 'vant-aliapp/dist/__antmove/component/componentClass.js'Taking the button component as an example, you only need to introduce the custom component corresponding to the button in the json file.
{
"usingComponents" : {
"van-button" : " /path/to/vant-app/dist/button/index "
}
}npm Address:
vant-aliapp/dist/dist/button/index
Then you can use the components directly in axml
< van-button type =" primary " >按钮</ van-button > Download this project locally, use the Alipay IDE to open alipay/vant-app , install the dependencies, and then preview it.
When previewing, please enable
component2compilation in the project details settings. For details, please refer to the introduction to the custom components of the Alipay applet.
npm install antmove -g
antmove -t alipay-compiler
If you encounter problems during use, you can seek help through the following ways.
This project is based on the MIT protocol, please freely enjoy and participate in open source.
Thanks to the vant team for their contribution to vant-weapp, this project is converted based on vant-weapp and has been adapted and compatible with the Alipay mini program platform.