Skip to content

使用typescrpt时,按需引入Space 组件会报错。 #2923

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

Closed
1 task done
fangyang921017 opened this issue Sep 29, 2020 · 3 comments
Closed
1 task done

使用typescrpt时,按需引入Space 组件会报错。 #2923

fangyang921017 opened this issue Sep 29, 2020 · 3 comments

Comments

@fangyang921017
Copy link

fangyang921017 commented Sep 29, 2020

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

Version

1.6.5

Environment

window10 chrome85, vue2.6

Reproduction link

Edit on CodeSandbox

Steps to reproduce

import { Space } from 'ant-design-vue'

What is expected?

能够正常导出,并不报错

What is actually happening?

能够正常导出,但报错:模块 ""../../../node_modules/ant-design-vue/types"" 没有导出的成员 "Space"。

@sendya sendya added the ts label Sep 29, 2020
@fangyang921017 fangyang921017 changed the title 使用typescrpt时,按需引用 Space 组件会报错。 使用typescrpt时,按需引用入Space 组件会报错。 Oct 16, 2020
@fangyang921017 fangyang921017 changed the title 使用typescrpt时,按需引用入Space 组件会报错。 使用typescrpt时,按需引入Space 组件会报错。 Oct 16, 2020
@kkjj-kj
Copy link

kkjj-kj commented Nov 9, 2020

直接使用a-space 报未注册组件 递归组件需要使用name属性
在空白页面不是递归组件 直接调用报错

sendya added a commit to sendya/ant-design-vue that referenced this issue Dec 10, 2020
tangjinzhou pushed a commit that referenced this issue Dec 15, 2020
* fix(d.ts): space.d.ts  #2923

* fix: add Space ts export
@github-actions
Copy link

github-actions bot commented Jan 8, 2021

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants