unplugin-vue-components
unplugin-vue-components copied to clipboard
能否支持自定义导出
Describe the bug
// index.js
import VirtualScrollSelect from './src/index.vue'
export const ElSelectV2 = VirtualScrollSelect
Reproduction
无法生成 ElSelectV2 组件类型
System Info
System:
OS: Windows 10 10.0.19044
CPU: (8) x64 Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz
Memory: 7.28 GB / 24.00 GB
Binaries:
Node: 16.16.0 - D:\nodejs\node.EXE
npm: 8.11.0 - D:\nodejs\npm.CMD
pnpm: 8.6.6 - ~\AppData\Local\pnpm\pnpm.EXE
Browsers:
Edge: Spartan (44.19041.1266.0), Chromium (115.0.1901.183)
Internet Explorer: 11.0.19041.1566
Used Package Manager
pnpm
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guide.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [X] The provided reproduction is a minimal reproducible of the bug.
为啥不直接修改文件夹名称,让他作为你的自定义名字。
可以自定义导出的,官网的api一看就懂