unplugin / unplugin-vue-components

📲 On-demand components auto importing for Vue
https://www.npmjs.com/package/unplugin-vue-components
MIT License
3.77k stars 349 forks source link

能否支持自定义导出 #670

Open nigiwen opened 1 year ago

nigiwen commented 1 year ago

Describe the bug

// index.js
import VirtualScrollSelect from './src/index.vue'

export const ElSelectV2 = VirtualScrollSelect

image

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

lishaobos commented 1 year ago

为啥不直接修改文件夹名称,让他作为你的自定义名字。

SeaWaveW commented 1 year ago

可以自定义导出的,官网的api一看就懂