1. Open the official website LinUi
Lin UI Lin UI is a component library based on the native syntax of WeChat applets. Follow clean, easy-to-use design guidelines. https://doc.mini.talelin.com/ 2. Open the program project folder, enter cmd in the address bar
Just press enter all the way
3. Then execute the installation of linui
npm install lin-ui
4. Build NPM
5. Register the lin-ui component (avatar avatar component) in json on the page
{
"usingComponents": {
"l-avatar":"/miniprogram_npm/lin-ui/avatar/index"
}
}
<view>
<l-avatar open-data="{
{['userAvatarUrl','userNickName']}}"/>
</view>