tdesign-vue-next icon indicating copy to clipboard operation
tdesign-vue-next copied to clipboard

[t-description-item]:TS+vue+vite, 由于没有暴露声明此组件,导致我按需引入无法找到此组件,按需插件[unplugin-vue-components]

Open UpSunAndy opened this issue 1 year ago • 2 comments

tdesign-vue-next 版本

1.8.1

重现链接

No response

重现步骤

TDropdownItem: typeof import('tdesign-vue-next')['DropdownItem']

期望结果

引入组件

实际结果

无法找到此组件

框架版本

3.3.4

浏览器版本

No response

系统版本

windown10

Node版本

16.14.2

补充说明

No response

UpSunAndy avatar Feb 23 '24 07:02 UpSunAndy

👋 @UpSunAndy,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

github-actions[bot] avatar Feb 23 '24 07:02 github-actions[bot]

请问解决了吗。 我修改项目,按需引入,build到components.d.ts文件中楼主这个位置(TDropdownItem: typeof import('tdesign-vue-next'))['DropdownItem'] 报错了, 错误提示:DescriptionsItem is not exported by node_modules/tdesign-vue-next/es/index.mjs, 啥问题啊

Qiu-Qiu avatar Mar 05 '24 02:03 Qiu-Qiu