@dev-tcloud/tcloud-ui

中文文档
8.2.8发布于 2026/11/12TypeScriptES Module近 30 天下载 2033

In order to facilitate the development of TCloud features in Angular. The modules maintain the tcloud style for standard development.

原始使用文档
文档目录13 节
  1. Installation instructions
  2. Versões
  3. tcloud-ui modules
  4. tcloud-ui directives
  5. tcloud-ui services
  6. Example of use
  7. Standalone (recommended)
  8. NgModule
  9. Animations
  10. Add TCloud-ui components style and tcloud style
  11. Recommended: single import
  12. Legacy: individual imports
  13. Add calendar library to use datepicker

TCLOUD-UI

In order to facilitate the development of TCloud features in Angular. The modules maintain the tcloud style for standard development.

Installation instructions

Install dev-tcloud/tcloud-ui from npm

npm install @dev-tcloud/tcloud-ui --save

Versões

AngularVersão
Angular 195.x.x
Angular 184.x.x
Angular 173.x.x
Angular 162.x.x
Angular 151.x.x
Angular 140.x.x

tcloud-ui modules

  • TCloudUiModalModule
  • TCloudUiTabMenuModule
  • TCloudUiLinhaLogoModule
  • TCloudUiLineStepCircleModule
  • TCloudUiMultiSelectModule
  • TCloudUiDataListModule
  • TCloudUiMultiInputModule
  • TCloudUiChoiceIssuesModule
  • TCloudUiInputSearchModule
  • TCloudUiNotFoundModule
  • TCloudUiTableModule
  • TCloudUiNumberStepModule
  • TCloudUiScrollBoxModule
  • TCloudUiFiltersModule
  • TCloudUiAccordionModule
  • TCloudUiDatepickerComponent
  • TCloudUiDatepickerTimeComponent
  • TCloudUiMultiplesValuesModule
  • TCloudUiInputPasswordModule
  • TCloudUiWelcomeModule
  • TCloudUiLoadingModule
  • TCloudUiReorderItemsModule
  • TCloudUiLabelTokenModule
  • TCloudUiLineStepTitleModule

tcloud-ui directives

  • TCloudUiTooltipDirective
  • TCloudUiAlignDirective
  • TCloudUiHoverParentDirective
  • TCloudUiElCopyDirective
  • TCloudCurrencyDirective
  • TCloudNgCheckAccessDirective
  • TCloudNgFeatureFlagsDirective
  • TCloudCheckAccessDirective
  • TCloudUiIpMaskDirective
  • TCloudUiHighLightDirective
  • TCloudUiDigitOnlyDirective

tcloud-ui services

  • TCloudUiLoadingTransitionsService
  • TCloudUiSearchInObjectService
  • TCloudUiConfig
  • TCloudUiCustomServices
  • TCloudCheckAccessService

Example of use

main.ts

import { bootstrapApplication } from '@angular/platform-browser';
import { provideTCloudUi } from '@dev-tcloud/tcloud-ui';
import { AppComponent } from './app/app.component';

bootstrapApplication(AppComponent, {
  providers: [
    provideTCloudUi()
  ]
});

NgModule

app.module.ts

import { TCloudUiModule } from '@dev-tcloud/tcloud-ui';

@NgModule({
  imports: [
    ...
    TCloudUiModule
  ]
})

Animations

All animations in this library are CSS-based (animate.enter/animate.leave and CSS transitions). You do not need @angular/animations, provideAnimations(), or BrowserAnimationsModule — there is nothing to configure.

Add TCloud-ui components style and tcloud style

tcloud-styles.scss aggregates all library stylesheets in the official load order (components → tcloud → tcloud-revitalizacao → tcloud-ui). Register just this one file:

angular.json

  "styles": [
    "node_modules/@dev-tcloud/tcloud-ui/scss/tcloud-styles.scss"
  ],

Or, from a consumer .scss file:

@import '@dev-tcloud/tcloud-ui/scss/tcloud-styles.scss';

Legacy: individual imports

The individual stylesheets below remain available and unchanged for projects that already register them. There are four stylesheets to register, not two. Missing tcloud-revitalizacao/tc-rev-styles.scss drops the --size-* scale and components render unstyled.

angular.json

  "styles": [
    "node_modules/@dev-tcloud/tcloud-ui/scss/components/styles.scss",
    "node_modules/@dev-tcloud/tcloud-ui/scss/tcloud/styles.scss",
    "node_modules/@dev-tcloud/tcloud-ui/scss/tcloud-revitalizacao/tc-rev-styles.scss",
    "node_modules/@dev-tcloud/tcloud-ui/scss/tcloud-ui/styles.scss"
  ],
  • components/styles.scss — component styles.
  • tcloud/styles.scss — tcloud base styles.
  • tcloud-revitalizacao/tc-rev-styles.scss — revitalization layer; defines the --size-* scale (e.g. --size-52: 3.25rem).
  • tcloud-ui/styles.scss — modern design system (--c-* tokens, dark mode).

Verify in the browser console: getComputedStyle(document.documentElement).getPropertyValue('--size-52') must return 3.25rem. If it comes back empty, the tcloud-revitalizacao/tc-rev-styles.scss sheet is missing.

Add calendar library to use datepicker

  "script": [
    "node_modules/@dev-tcloud/tcloud-ui/datepicker/js/datepicker-full.min.js",
  ],

TcloudUi

This project was generated with Angular CLI version 18.1.0.

版本与发布记录

@dev-tcloud/tcloud-ui 共发布 376 个版本,首次发布于 2023/01/13;过去 12 个月发布了 169 个版本。

版本发布日期距今
8.2.8latest2026/11/122 天前
8.2.72026/11/122 天前
8.2.62026/11/113 天前
8.2.52026/11/113 天前
8.2.42026/11/113 天前
8.2.32026/11/113 天前

其他发布通道:beta → 8.0.0。

关于 @dev-tcloud/tcloud-ui 的常见问题

@dev-tcloud/tcloud-ui 是什么?

In order to facilitate the development of TCloud features in Angular. The modules maintain the tcloud style for standard development.

如何安装 @dev-tcloud/tcloud-ui?

在项目目录运行 npm install @dev-tcloud/tcloud-ui,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@angular/core(^21.0.0)、@angular/forms(^21.0.0)、@angular/common(^21.0.0)、@angular/router(^21.0.0)、@angular/elements(^21.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@dev-tcloud/tcloud-ui 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@dev-tcloud/tcloud-ui 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@dev-tcloud/tcloud-ui 可以商用吗?

@dev-tcloud/tcloud-ui 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@dev-tcloud/tcloud-ui 的下载量有多少?

根据 npm 官方下载统计,@dev-tcloud/tcloud-ui 在 2026/10/12 – 2026/11/10 这 30 天内被下载 2,033 次,日均约 68 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@dev-tcloud/tcloud-ui 还在维护吗?

最新版本 8.2.8 发布于 2026/11/12(2 天前);至今共发布 376 个版本,其中过去 12 个月发布了 169 个;首次发布于 2023/01/13。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。