unplugin-vue-components icon indicating copy to clipboard operation
unplugin-vue-components copied to clipboard

Vant配置按需导入后,无法及时生成组件props类型提示

Open yanbowe opened this issue 3 years ago • 1 comments

image image image

tsconfig.json已设置引入components.d.ts,但是无法实时获得props提示,我每次需要手动去保存下tsconfig.json才会有对应的类型提示

yanbowe avatar Dec 31 '21 02:12 yanbowe

image components.d.ts与src同级

yanbowe avatar Dec 31 '21 02:12 yanbowe

试下配置加下

ComponentsPlugin({
    dst: true,
 }),

luocong2016 avatar Nov 02 '22 05:11 luocong2016

试下配置加下

ComponentsPlugin({
    dst: true,
 }),

谢谢您,已解决

yanbowe avatar Nov 03 '22 07:11 yanbowe

试下配置加下

ComponentsPlugin({
    dst: true,
 }),

是dts

loakliu avatar Nov 14 '23 09:11 loakliu