WeChat applet introduces WeUI component library (detailed success cases, with pictures)

WeChat applet introduces WeUI component library (detailed success cases, with pictures)

Insert image description here
This chapter chooses the official way to introduce component libraries. The first way is
to introduce the WeUI channel through npm (the second way).

Notes on the first step (introducing the WeUI library)
:
1. Introduced through this method, the import style library can be omitted
2. The first step is the most important step, a step that cannot be seen in the official documentation [ Quick Start ]
Insert image description here

Step 2 (page wxml file, write component code)
Insert image description here

Step 3 (page json file, register component)
Insert image description here

Step 4 (see the effect)
Insert image description here

Summary: I highly recommend the method in this chapter, it is convenient, quick, simple and easy to use. If you like it, please like it! ! !


Correct opening posture of the official website
Insert image description here

Guess you like

Origin blog.csdn.net/TurtleOrange/article/details/121139052