Skip to content
New issue

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

[comp:date-picker] 使用unplugin-vue-components自动导入报错 #902

Closed
1 task done
fullspeedforward opened this issue May 12, 2022 · 1 comment · Fixed by unplugin/unplugin-vue-components#384
Closed
1 task done
Assignees

Comments

@fullspeedforward
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://stackblitz.com/edit/idux-starter?file=package.json

Steps to reproduce

在vue文件中template中使用

What is expected?

按需加载IxDateRangePicker ,components.d.ts中
IxDateRangePicker: typeof import('@idux/components/date-picker')['IxDateRangePicker']

What is actually happening?

生成的components.d.ts中 显示的内容是 IxDateRangePicker: typeof import('@idux/components/date')['IxDateRangePicker']
页面提示加载失败

Environment Info

  Browsers:
    Edge: Spartan (44.19041.1023.0), Chromium (92.0.902.55)
    Internet Explorer: 11.0.19041.1
  npmPackages:
    @idux/cdk: ^1.0.0-beta.3 => 1.0.0-beta.3
    @idux/components: ^1.0.0-beta.8 => 1.0.0-beta.8
    @idux/pro: ^1.0.0-beta.3 => 1.0.0-beta.3
    vue: ^3.2.29 => 3.2.29
@idux-bot
Copy link

idux-bot bot commented May 12, 2022

Translation of this issue:

[Comp: Date-Picker] Use Unplugin-Vue-components to automatically import an error

REPRODUCTION LINK

[https://stackblitz.com/edit/idux-starter?file=package.json]

STEPS To Reproduce

In the Vue file, use

What is exfected?

Load ixdatengepicker, components.d.ts as required
Ixdatengepicker: Typeof Import ('@IDUX/Components/Date-Picker') ['iexdaterangepicker'] `` `

What is actually happy?

The content displayed in the components.d.ts is Ixdaterangepicker: Typeof Import ('@IDUX/Components/Date') ['iexdaterangepicker'] ``
Page prompt loading failed

ENVIRONMENT Info

  Browsers:
    Edge: Spartan (44.19041.1023.0), Chromium (92.0.902.55)
    Internet Explorer: 11.0.19041.1
  npmPackages:
    @idux/cdk: ^1.0.0-beta.3 => 1.0.0-beta.3
    @idux/components: ^1.0.0-beta.8 => 1.0.0-beta.8
    @idux/pro: ^1.0.0-beta.3 => 1.0.0-beta.3
    vue: ^3.2.29 => 3.2.29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants