ElemeFE / ElemeFE/element

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

Open
#23,014 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### 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 extends ElTree {}

### What is actually happening?
export class Tree extends ElTree {}

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.