unplugin / unplugin-vue-components

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

(vue2.7)当将element-ui中的table与pagination进行二次封装时,table不出来 #676

Closed SeaWaveW closed 11 months ago

SeaWaveW commented 11 months ago

Describe the bug

这是封装的代码块 ↓ image 但实际上是pagination显示,其中的table不显示 image

Reproduction

https://github.com/SeaWaveW/issuse.git

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (4) x64 Intel(R) Core(TM) i3-8100T CPU @ 3.10GHz
    Memory: 1.47 GB / 7.83 GB
  Binaries:
    Node: 16.20.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.19.4 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (115.0.1901.200)
    Internet Explorer: 11.0.19041.1566

Used Package Manager

npm

Validations

leedawn commented 11 months ago

本地跑了一下,是有 el-table 的。 image

SeaWaveW commented 11 months ago

本地跑了一下,是有 el-table 的。 image

收到启发,原来问题出在ref上,不能定义与组件name同样的ref。 铁汁🐮🍺

shihongxins commented 11 months ago

@SeaWaveW 老哥,你出现过开发没问题,打包之后部分 element-ui 的组件没生效(比如 el-input 或者 el-select 不渲染)的问题吗?

示例仓库:https://github.com/shihongxins/vite-vue2-element-ui

截图:

开发时 dev

打包后 dev