TDesign Mobile Vue is a comprehensive UI component library specifically designed for Vue 3 and mobile web applications. Currently stable at version 1.13.2, the library maintains a frequent release cadence with regular minor and patch updates, often several per month, introducing new features, bug fixes, and performance enhancements. It is part of the broader TDesign enterprise design system, ensuring consistent API and UI/UX across various frameworks like React and WeChat MiniProgram. Key differentiators include its focus on mobile-first interactions, high-quality components, dark mode support, extensive theme customization options, and built-in tree-shaking support for optimized bundle sizes. It ships with TypeScript types for improved developer experience and type safety.
npm install tdesign-mobile-vueVerified import paths — ran on the pinned version, not inferred.
Sets up a basic Vue 3 application, registers TDesign globally, and demonstrates a TDesign Button component and a functional Toast API.
For the functional API, import `ActionSheetPlugin` (e.g., `import { ActionSheetPlugin } from 'tdesign-mobile-vue';`). For the component, continue to import `ActionSheet`.Review existing icon usage for removed icons. Replace them with available alternatives or update your `tdesign-icons-vue-next` dependency if you are using specific icon versions.
Ensure `CheckboxGroup`'s `value` prop is initialized with an array (e.g., `[]`) or `null` if you wish to strictly control its initial state, rather than relying on `undefined`.
If supporting older browsers is critical, consider polyfills or alternative UI libraries. Always verify browser support matrix before deployment.
Functional APIs are typically called programmatically (e.g., `ActionSheetPlugin.show()`) and are not meant to be rendered directly as `<t-action-sheet-plugin>`. Use `<t-action-sheet>` for the component.
Ensure you have `import TDesign from 'tdesign-mobile-vue';` and `app.use(TDesign);` in your main application entry file (e.g., `main.ts` or `main.js`). If using individual imports, make sure each component is imported and used correctly.
Verify that `tdesign-mobile-vue` is correctly installed (`npm install tdesign-mobile-vue`) and ensure the import path `import 'tdesign-mobile-vue/es/style/index.css';` is correct for the global styles. For component-specific styles, check the documentation.