All Products
Search
Document Center

Overview

Last Updated: Feb 04, 2021

The extension component library of the Mini Program is an important supplement to the Basic component library. It is an open-source UI component library developed based on Custom component specifications of the Mini Program. The extension component library helps mini-program developers with quick reuse.

Installation

  1. $ npm install mini-antui --save

Usage

Register the component in the .json file. The following example shows how to register the card component.

  1. {
  2. "usingComponents": {
  3. "card": "mini-antui/es/card/index",
  4. }
  5. }

Call the component in the .axml file.

  1. <card
  2. thumb="{{thumb}}"
  3. title="Card title 2"
  4. subTitle="Subtitle 2 is optional"
  5. onClick="onCardClick"
  6. info="Tap the second card"
  7. />

Component update log

For update logs, see changelog.