element icon indicating copy to clipboard operation
element copied to clipboard

createelement() has been called outside of render function

Open xu455255849 opened this issue 2 years ago • 3 comments

Existing Component

Component Name

el-table

Description

vue2.6 是正常的, 升级到2.7后 就报标题的错误了

const columns = [ { label: '客服名称', prop: 'name', }, { label: '联系方式', render: (h: any, scope: { row: OrgCustomerService}) => { return h('span', null, scope.row.contactType === ContractType.Phone ? '电话客服' : '微信客服') } }, ]

xu455255849 avatar Jul 04 '22 09:07 xu455255849

duplicate of #21968

KimYangOfCat avatar Jul 04 '22 13:07 KimYangOfCat

#21968

看了下, 好像不能解决我的问题。。老项目用的还是webpack。没办法升级vite的包 vue2的table 用render 函数封装了下,支持自定义columns,@vue/compositon-api 都是好的,升级到2.7不行了

xu455255849 avatar Jul 08 '22 02:07 xu455255849

我试了N次,2.8.2以上版本都不行,这个问题好诡异

GavinHome avatar Jul 19 '22 08:07 GavinHome