ant-design-vue
ant-design-vue copied to clipboard
tsx DropdownButton、Table无法extends进行二次封装,
- [x] I have searched the issues of this repository and believe that this is not a duplicate.
Version
4.1.0
Environment
windows,谷歌108.22.45 vue3.0
Reproduction link
https://github.com/ZONEZH/antest.git
Steps to reproduce
1、初始化项目后,下载最新的andtv依赖; 2、二次封装DropdownButton和Table组件 在extends的时候类型报错;具体看代码里的component目录下的dropdownBtn.tsx和table.tsx
What is expected?
能正常继承组件的所有属性,便于二次封装
What is actually happening?
import { Dropdown, DropdownButton } from "ant-design-vue"; 引入的DropdownButton 无法使用extends进行拓展
现有的项目导入DropdownButton 被识别成了any类型,但是我这个项目地址是新建的,有类型但是extends报错
谷歌版本有误 更正一下 119.0.6045.200
在我xian'you现有的项目里居然是any类型 但是也能点进去,其他antdv组件都是正常的,能正常被继承
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