bun add -D unplugin-auto-import-antd unplugin-auto-import Usage Vite // vite.config.tsimportAutoImportfrom'unplugin-auto-import/vite'importAntdResolverfrom'unplugin-auto-import-antd'exportdefaultdefineConfig({plugins:[AutoImport({resolvers:[AntdResolver()]})]}) ...
🔧 unplugin-auto-import-antd is a resolver for unplugin-auto-import that enables on-demand importing of antd components. - recallwei/unplugin-auto-import-antd
1packages found Sort Packages Optimal Popularity Quality Maintenance @bit-ocean/auto-import Universal auto-import module. bit-ocean bit-ocean-infra auto-import auto-import-resolvers unplugin-auto-import unplugin-auto-import-ahooks unplugin-auto-import-antd ...
importStyle指是否需要自动随引入加载对应的组件样式,我这里设置为 false,因为某些二级组件(比如 DateRangePicker)没办法准确地识别正确路径,他的搜寻路径都是按一级组件来写的,所以我改成了全量导入 css。resolveIcons配置是否对 antd 的图标起作用。 配置完 js 引入,如果使用 ts 写项目的话,当然就要考虑类型的问题...
好文要顶 关注我 收藏该文 微信分享 Life_countdown 粉丝- 3 关注- 2 +加关注 0 0 升级成为会员 « 上一篇: vue3 基于antd3.2.20封装表格(插槽) » 下一篇: vue3项目 基于vuedraggable插件实现拖拽上下移动 posted @ 2023-09-08 15:02 Life_countdown 阅读(1029) 评论(0) 编辑 收藏 举报 ...
Antdv component does not display in build(production) mode and setup syntax mode #529 opened Sep 13, 2024 by kenetkang 5 tasks done Is it not possible to automatically import from js and components in node_modules? #528 opened Sep 13, 2024 by lgzhang 4 tasks done Place vite file ...
@bit-ocean/auto-import Universal auto-import module. bit-ocean bit-ocean-infra auto-import auto-import-resolvers unplugin-auto-import unplugin-auto-import-ahooks unplugin-auto-import-antd unplugin-auto-import-antd-pro-components brucesongpublished 0.0.48 • 4 months agopublished version 0.0.48...