Skip to content

ant-design-vue v4版本新增组件自动导入不生效 #631

@MinMr

Description

@MinMr

Describe the bug

ant-design-vue 在v4版本中新增的组件Watermark、FloatButton、QRCode、Segmented 无法自动导入,其它组件能正常自动导入

unplugin-vue-components 版本:0.24.1
ant-desing-vue版本: 4.0.0-beta.2
vue版本:3.3.0-beta.5

vite.config.ts 插件配置:
Components({
dirs: ['src/components'],
directoryAsNamespace: true,
dts: 'types/components.d.ts',
resolvers: [
AntDesignVueResolver({
importStyle: false
})
]
}),

Reproduction

no

System Info

mac

Used Package Manager

yarn

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions