18910140161

Non-function value encountered for default slot. Prefer function slots for better performance

顺晟科技

2021-08-10 12:00:11

1710

Vue3+elementPlus中,在表格中有个数组,我不得用formatter这个属性,但是想给这个数组元素来个标签组件,我在formatter函数用了h函数效果出来了 但是warning了。runtime-core.esm-bundler.js:38 [Vue warn]: Non-function value encountered for default slot. Prefer function slots for better performance.at at <ElTableBody context= {uid: 69, vnode: {…}, type: {…}, parent: {…}, appContext: {…}, …} highlight=false row-class-name=undefined … >at <ElTable data= (2) [{…}, {…}] stripe="" style= {width: “”} … >at <Index onVnodeUnmounted=fn ref=Ref< Proxy {__v_skip: true} > >at at at at at at <Index onVnodeUnmounted=fn ref=Ref< Proxy {__v_skip: true} > >at at


顺晟科技:

}

const formatterNormsArr = (row: any, column: any) => {

相关文章
我们已经准备好了,你呢?
2024我们与您携手共赢,为您的企业形象保驾护航