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

[Bug Report] types里 element-ui.d.ts 类型“D”不满足约束“TreeData” #23014

Open
lzg-night opened this issue Dec 26, 2024 · 0 comments

Comments

@lzg-night
Copy link

Element UI version

2.15.14

OS/Browsers version

win11 131.0.6778.205

Vue version

2.6.10

Reproduction Link

https://codepen.io/ziyoung/pen/LKNBqB

Steps to reproduce

项目打包时候,有报错/node_modules/element-ui/types/element-ui.d.ts 319:60 Type 'D' does not satisfy the constraint 'TreeData'.
"typescript": "^4.6.4",
"vue": "2.6.10",
"element-ui": "^2.15.14",

What is Expected?

/** Tree Component */
export class Tree<K = any, D extends TreeData = TreeData> extends ElTree<K, D> {}

What is actually happening?

export class Tree<K = any, D = TreeData> extends ElTree<K, D> {}

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

No branches or pull requests

1 participant