Antdv component does not display in build(production) mode and setup syntax mode
Opened this issue · 0 comments
kenetkang commented
Describe the bug
antdv 组件setup语法糖模式下生产版不显示
ACard ASteps AStep 在开发时正常, 发行后, ACard ASteps AStep组件效果没有了
临时弥补:
import { Steps as ASteps, Step as AStep } from 'ant-design-vue';
显式import 后, 问题解决
附:
// 自动引入 AntDesignVue
resolvers: [
AntDesignVueResolver({
importStyle: false,
resolveIcons: true,
}),
],
Reproduction
unplugin-vue-components@0.27.4 ant-design-vue@4.2.1
System Info
System:
OS: macOS 14.6.1
CPU: (10) arm64 Apple M1 Pro
Memory: 120.58 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.16.0 - ~/.nvm/versions/node/v20.16.0/bin/node
npm: 10.8.1 - ~/.nvm/versions/node/v20.16.0/bin/npm
pnpm: 9.7.0 - ~/.nvm/versions/node/v20.16.0/bin/pnpm
Browsers:
Chrome: 128.0.6613.121
Safari: 17.6
Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.