npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@tdesign/uniapp

v0.7.0

Published

TDesign Component for UniApp

Readme

TDesign 适配 uniapp 的组件库。

文档

点此查看

预览

扫码查看 ↓

其他平台同样支持,仅因平台审核等原因未能上架预览,不影响组件库正常使用。

安装

NPM 方式

npm i @tdesign/uniapp

UNI_MODULES 方式

已上传 插件 到 DCloud 插件市场,请打开插件详情页并点击使用 HBuilderX 导入插件

使用

  1. main.ts 中引入样式文件
import '@tdesign/uniapp/common/style/theme/index.css';

也可以引入 rpx 单位的 less 文件,该文件与 tdesign-miniprogram 完全一致。

import '@tdesign/uniapp/common/style/theme/index.less';
  1. 在文件中使用
<template>
  <t-loading />
</template>

<script lang="ts" setup>
import TLoading from '@tdesign/uniapp/loading/loading.vue';
</script>

只提供按需导入方式,不支持全量导入(全量导入在小程序下有兼容性问题)。

自动导入

pages.json 配置 easycom,可实现自动导入。

CLI 模式

使用 CLI 模式,即使用 node_modules 下的 @tdesign/uniapp 时,配置如下。

{
  "easycom": {
    "custom": {
      "^t-(.*)": "@tdesign/uniapp/$1/$1.vue"
    }
  }
}

UNI_MODULES 模式

使用 uni_modules 下的 tdesign-uniapp 时,配置如下。

{
  "easycom": {
    "custom": {
      "^t-(.*)": "@/uni_modules/tdesign-uniapp/components/$1/$1.vue"
    }
  }
}

编辑器提示

安装注册 TDesign 之后,在开发项目时,可以配合插件在VSCode等主流编辑器中达到提示组件名及API的效果。

推荐安装 Volar,并在项目的 tsconfig.jsonincludes 属性中增加 node_modules/@tdesign/uniapp/global.d.ts,即可实现该效果。

平台兼容性

| 平台 | Vue2 | Vue3 | H5 | Android | iOS | App-nvue | 微信小程序 | QQ小程序 | | ------------ | ---- | ---- | --- | ------- | --- | -------- | ---------- | -------- | | 支持情况 | ✅ | ✅ | ✅ | ✅ | ✅ | ⚠️ | ✅ | ✅ |

| 平台 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 小红书小程序 | 京东小程序 | | ------------ | ------------ | ---------- | ---------- | ---------- | ------------ | ---------- | | 支持情况 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |

浏览器兼容性

| Firefox | Chrome | iOS Safari| Samsung | Opera |Android Browser| | --------- | --------- | --------- | --------- | --------- |--------- | | Firefox >=104| Chrome >=105| iOS Safari >=12.2| Samsung >=10.2 | Opera >=64 | Android Browser >=105 |

详情参见移动端组件库浏览器兼容性说明

反馈

有任何问题,建议通过 Github issues 反馈或扫码加入用户微信群。

开源协议

TDesign 遵循 MIT 协议