TDesign is a component library adapted to WeChat mini programs.
Mini program component example mini program, please use WeChat to scan the QR code to preview↓
The mini program already supports the use of NPM to install third-party packages.
For specific usage, please refer to the official website document of the mini program: "NPM Support"
npm i tdesign-miniprogram -S --production
It is recommended to use NPM, and the "source code copy method" is no longer recommended.
Taking the button component as an example, you only need to introduce the custom component corresponding to the button in the JSON
file.
{
"usingComponents" : {
"t-button" : " tdesign-miniprogram/button/button "
}
}
# 安装项目依赖
npm install
# 执行组件编译
npm run dev
Open the WeChat developer tools and add the _example
directory to preview the example.
Minimum base library version ^2.6.5
If you have any questions, it is recommended to submit feedback through Github issues or scan the QR code to join the user WeChat group.
TDesign follows the MIT license.