vxe-table icon indicating copy to clipboard operation
vxe-table copied to clipboard

vxe-grid 局部导入 报错

Open 17607106326 opened this issue 1 year ago • 3 comments

可复现的链接:

https://codesandbox.io/p/github/17607106326/vueTest/master?layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522panelType%2522%253A%2522TABS%2522%252C%2522id%2522%253A%2522cljfnsv1p000b356n162v9g2e%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522panelType%2522%253A%2522TABS%2522%252C%2522id%2522%253A%2522cljfnsv1p000d356nt3bouj6b%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522cljfnsv1p000b356n162v9g2e%2522%253A%257B%2522id%2522%253A%2522cljfnsv1p000b356n162v9g2e%2522%252C%2522activeTabId%2522%253A%2522cljfntz7800hv356ndh2nwjzs%2522%252C%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522cljfnsv1p000a356n3g2nsh8b%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252FREADME.md%2522%257D%252C%257B%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252Fsrc%252Fviews%252Fgrid.vue%2522%252C%2522id%2522%253A%2522cljfntz7800hv356ndh2nwjzs%2522%252C%2522mode%2522%253A%2522temporary%2522%257D%255D%257D%252C%2522cljfnsv1p000d356nt3bouj6b%2522%253A%257B%2522id%2522%253A%2522cljfnsv1p000d356nt3bouj6b%2522%252C%2522activeTabId%2522%253A%2522cljfnt6jv006e356nsix666ki%2522%252C%2522tabs%2522%253A%255B%257B%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522dev%2522%252C%2522id%2522%253A%2522cljfnt6jv006e356nsix666ki%2522%252C%2522mode%2522%253A%2522permanent%2522%257D%252C%257B%2522type%2522%253A%2522TASK_PORT%2522%252C%2522taskId%2522%253A%2522dev%2522%252C%2522port%2522%253A5173%252C%2522id%2522%253A%2522cljfntcz600c2356nge4f776s%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522path%2522%253A%2522%252F%2522%257D%255D%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D

问题描述与截图:

局部导入 vxe-table 运行报错 $xetable.loadColumn is not a function

期望的结果:

不在main.ts中导入,在使用的vue页面导入

操作系统:

window 10

浏览器版本:

chrome 114.0.5735.134(正式版本) (64 位)

vue 版本:

3.2.47

vxe-table 版本:

4.3.14

17607106326 avatar Jun 28 '23 11:06 17607106326

我引用也遇上了这个问题 vxe-table 4.5.5 , 报错TypeError: $xetable.loadColumn is not a function

import { VxeTable, VxeColumn, VxeGrid, VxeToolbar } from 'vxe-table/es/index.esm';

somnusnrlq avatar Aug 28 '23 06:08 somnusnrlq

解决了吗这问题

Miraiiiii avatar Nov 24 '23 08:11 Miraiiiii

有相同的问题

PanZhangOne avatar Feb 28 '24 07:02 PanZhangOne