We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to auto import ant design vue component and styles in tsx or jsx
I have imported NaiveUiResolver in two plug-ins, but there is no way to import naiveui components automatically in jsx.
import path from 'node:path'; import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'; import Components from 'unplugin-vue-components/vite'; export default Components({ dirs: ['src/components'], include: [/\.vue$/, /\.vue\?vue/], dts: path.resolve(process.cwd(), 'components.d.ts'), extensions: ['vue'], resolvers: [NaiveUiResolver()] });
import path from 'node:path'; import AutoImport from 'unplugin-auto-import/vite'; import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'; export default AutoImport({ dts: path.resolve(process.cwd(), 'auto-imports.d.ts'), include: [/\.[tj]sx?$/, /\.vue$/, /\.vue\?vue/, /\.md$/], imports: [ 'vue', 'vue-router', 'vue-i18n', 'pinia', ], dirs: [ 'src/constants', ], vueTemplate: true, eslintrc: { enabled: true, filepath: path.resolve(process.cwd(), '.eslintrc-auto-import.json') }, resolvers: [NaiveUiResolver()] });
-
npm
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Describe the bug
How to auto import ant design vue component and styles in tsx or jsx
I have imported NaiveUiResolver in two plug-ins, but there is no way to import naiveui components automatically in jsx.
Reproduction
System Info
Used Package Manager
npm
Validations
Reproduction
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: