unplugin-vue-components icon indicating copy to clipboard operation
unplugin-vue-components copied to clipboard

能否支持自定义导出

Open nigiwen opened this issue 2 years ago • 2 comments

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

  • [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.

nigiwen avatar Aug 03 '23 08:08 nigiwen

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

lishaobos avatar Aug 08 '23 03:08 lishaobos

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

SeaWaveW avatar Aug 11 '23 09:08 SeaWaveW