现象:更新上图中的p标签时出现了问题问题流程:首先看到,问题的引起原因在于,parent这个参数为null向上追查后,发现parent为空是因为它的数据源为空,其具体位置在从上往下树的第一个patch
顺晟科技
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) => {
03
2022-09
03
2022-09
19
2021-09
26
2021-08
10
2021-08
09
2021-07