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
[Bug Report] [TypeScript] [input] [el-input] Property 'rows' does not exist on type #8068
Comments
可能是 packages/components/input/src/input.ts 里面的 inputProps 缺少了 rows ? |
I've checked prop |
This may be caused by vue-tsc link. You can try to modify the vue-tsc version or // env.d.ts
declare module '@vue/runtime-core' {
interface AllowedComponentProps {
[key: string]: any
}
}
export { } |
This issue still exists as of today, and it doesn't seem to be related to vue-tsc:
|
There are many native attributes that are not defined in props now, which can indeed cause some type errors (eq using in tsx). You can also use the above method to temporarily handle the problem, and if there is a better solution, you can also discuss it |
Bug Type:
TypeScript
Environment
3.2.31
2.2.2
Version 102.0.5005.61 (Official Build) (arm64)
Other
Reproduction
Related Component
el-input
Reproduction Link
Element Plus Playground
Steps to reproduce
Ex:
What is Expected?
It shouldn't show the error
What is actually happening?
Property 'rows' does not exist on type 'IntrinsicAttributes & Partial<{ type: string; size: BuildPropType ...
Additional comments
(empty)
The text was updated successfully, but these errors were encountered: