tdesign-vue is the official Vue 2.x component library from Tencent's TDesign specification. It provides a comprehensive set of high-quality UI components designed for desktop applications, featuring consistent APIs and UI across various TDesign framework libraries. The library supports dark mode, customizable themes, and tree-shaking for optimized bundle sizes. Currently at version 1.14.5, it observes a frequent release cadence with regular bug fixes and feature additions. Key differentiators include its backing by Tencent, enterprise-grade component suite, and robust TypeScript support, making it suitable for large-scale business applications targeting Vue 2 environments. It is distinct from `tdesign-vue-next`, which targets Vue 3.x.
npm install tdesign-vueVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to globally import and register TDesign Vue components and styles, then use a `TButton` and `TDatePicker` in a basic Vue 2 application.
Review your application for usage of the removed icons. Update your icon references to available alternatives or remove them. Consult the `tdesign-icons-vue` documentation for the latest icon set.
For `ColorPicker` users, verify your implementation if using gradient mode or the `HSB` format. Adjust your color format conversions to `HEX8` or other supported formats as necessary. Refer to the `ColorPicker` documentation for updated API details.
Migrate your `Alert` component usage from the `close` prop to `closeBtn` to ensure future compatibility. For example, change `<t-alert close />` to `<t-alert closeBtn />`.
Ensure your project is running Vue 2.x. If you are developing for Vue 3.x, use `tdesign-vue-next` instead. If migrating a Vue 2 project using `tdesign-vue` to Vue 3, a full migration to `tdesign-vue-next` or careful use of Vue 3's compatibility build (`@vue/compat`) would be required, though direct `tdesign-vue` integration with `@vue/compat` is not officially supported by TDesign.
Ensure you have `import Vue from 'vue'; import TDesign from 'tdesign-vue'; import 'tdesign-vue/es/style/index.css'; Vue.use(TDesign);` in your main application entry file (e.g., `main.js`). If using individual imports, make sure each component is imported and registered (either globally or in the component's `components` option).
Verify that `tdesign-vue` is correctly installed (`npm install tdesign-vue`) and ensure the import path `import 'tdesign-vue/es/style/index.css';` is correct in your main application entry point. Also, check your build configuration (e.g., Webpack, Vite) for CSS loading.
Ensure that TDesign's global type declarations are included in your TypeScript configuration. For `tdesign-vue`, you might need to add `node_modules/tdesign-vue/global.d.ts` to your `tsconfig.json`'s `include` array or create a custom `d.ts` file to augment the `Vue` interface if auto-detection fails.