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

DatePicker.WeekPicker 类型错误被误写成WeekPickerker #2044

Closed
1 task
xuzhixiong886 opened this issue Apr 9, 2020 · 2 comments
Closed
1 task

DatePicker.WeekPicker 类型错误被误写成WeekPickerker #2044

xuzhixiong886 opened this issue Apr 9, 2020 · 2 comments
Labels

Comments

@xuzhixiong886
Copy link

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

Version

1.5.1

Environment

windows10,版本 Google Chrome75.0.3770.100,vue2.6.11

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Vue.component(DatePicker.name, DatePicker)//正常
Vue.component(DatePicker.MonthPicker.name, DatePicker.MonthPicker)//正常
//类型“typeof DatePicker”上不存在属性“WeekPicker” 原因是WeekPicker被误写成WeekPickerker
Vue.component(DatePicker.WeekPicker.name, DatePicker.WeekPicker)

What is expected?

Vue.component(DatePicker.WeekPicker.name, DatePicker.WeekPicker) 可以正常使用

What is actually happening?

类型“typeof DatePicker”上不存在属性“WeekPicker”

@xuzhixiong886
Copy link
Author

Vue.component(
(DatePicker as any).WeekPicker.name,
(DatePicker as any).WeekPicker
) 可以正常使用

@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 Apr 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant