ant-design-vue
ant-design-vue copied to clipboard
time-picker 组件样式异常问题 3.2.20 版本的时候还有style文件夹 4.0.0开始就没有style文件夹 然后我用自动导入的时候就报错了
- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
Version
4.1.0
Environment
"vue": "^3.4.19","ant-design-vue": "^4.1.2",
Reproduction link
https://github.com/vueComponent/ant-design-vue/tree/main/components/time-picker
Steps to reproduce
直接在页面中使用
页面报错: [plugin:vite:import-analysis] Failed to resolve import "ant-design-vue/es/time-picker/style" from "src/views/demo-view/DemoView.vue". Does the file exist? D:/web/antd/src/views/demo-view/DemoView.vue:1:121 1 | /* unplugin-vue-components disabled */import { TimePicker as __unplugin_components_2 } from 'ant-design-vue/es';import 'ant-design-vue/es/time-picker/style'; | ^ 2 | import __unplugin_components_1 from 'D:/web/antd/src/components/dynamic-form/DynamicForm.vue'; 3 | import { Button as __unplugin_components_0 } from 'ant-design-vue/es';import 'ant-desig
What is expected?
ailed to resolve import "ant-design-vue/es/time-picker/style" from "xxxx". Does the file exist?
What is actually happening?
路径 ant-design-vue/es/time-picker/style, style文件夹不存在
vite.config.ts把
AntDesignVueResolver({ importStyle: 'less' }),
改成
AntDesignVueResolver({ importStyle: false }),
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