SuperAPI AI 工具集

ant-design-mini

设计与创作

查看项目

更新于 10-16 03:15

技能介绍

用途:在支付宝小程序和微信小程序中使用 Ant Design Mini 组件库构建界面,遵循 Ant Design 设计规范。适用于表单、数据展示、反馈与导航类组件的开发,以及通过 CSS 变量定制主题、处理组件事件与生命周期。

主要能力:提供 Button、Form、List、Modal、Toast、Tabs、NavBar、Picker、DatePicker、Switch、Checkbox、Radio、Stepper、Avatar、Badge、Tag、Empty、Loading、Popup、ActionSheet 等 60+ 组件;支持主题定制与国际化。

使用方式:安装命令为 npm install antd-mini(或 yarn add antd-mini、pnpm add antd-mini)。在 app.json 或 page.json 中注册组件,例如 "ant-button": "antd-mini/es/Button/index"。支付宝使用 axml 与 onTap,微信使用 wxml 与 bindtap。示例:<ant-button type="primary" onTap="handleClick">Submit</ant-button>。技能按官方文档结构组织,包含 examples/(getting-started、quick-start、components 各组件)、api/(component-api.md、props-and-events.md)、templates/(installation.md、component-usage.md),可按主题加载对应文件。

限制:仅面向支付宝与微信小程序;具体收费、价格、平台支持范围等资料暂未提供。