vant-weapp Youzan applet external style custom-class usage

external style class
As shown in the figure, each component has many external style classes, so how are these external style classes used? The official did not have a specific explanation, and Baidu could not find a specific explanation. This made a back-end programmer very headache, but fortunately, after continuous trials and explorations, I finally found out how to use these external styles correctly. method of the class.

Take custom-class as an example. For example, if I want to modify the style of van-col, I can do this:

<van-col span="8" custom-class="desc_info">任务说明</van-col>

Then use: .desc_info in the wxss file
to control the style of col.
Then the title-calss is similar, and the others are the same.

Guess you like

Origin blog.csdn.net/Z_PTOPONE/article/details/124238781