surely-vue / surely-table

Performant advanced table component
https://www.surely.cool
613 stars 83 forks source link

surely-table 自定义 表头里报错 #207

Open dustfreenj opened 10 months ago

dustfreenj commented 10 months ago

surely-table 自定义 表头里报错
chunk-DTI5GBCI.js?v=94e402c5:4389 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'isCE') at renderSlot (chunk-DTI5GBCI.js?v=94e402c5:4389:32) at @surely-vue_table.js?v=94e402c5:28563:200 at ReactiveEffect.fn (chunk-DTI5GBCI.js?v=94e402c5:1249:13) at ReactiveEffect.run (chunk-DTI5GBCI.js?v=94e402c5:447:19) at get value [as value] (chunk-DTI5GBCI.js?v=94e402c5:1260:64) at triggerComputed (chunk-DTI5GBCI.js?v=94e402c5:466:20) at get dirty [as dirty] (chunk-DTI5GBCI.js?v=94e402c5:421:11) at instance.update (chunk-DTI5GBCI.js?v=94e402c5:7566:19) at callWithErrorHandling (chunk-DTI5GBCI.js?v=94e402c5:1660:32) at flushJobs (chunk-DTI5GBCI.js?v=94e402c5:1866:9) 就是效果需求在表头上面展示一个文本框 ,可以展示出来,但是会报错无法输入,用的是element plus 文本框,用html input 同样报错

<template #headerCell="{ title, column }">

{{ title }}
  </template>
dustfreenj commented 10 months ago
  <template #headerCell="{ title, column }">
    <div>
      <div>{{ title }}</div>
      <div>
        <el-input v-model="input1" />
      </div>
    </div>
  </template>  刚代码给我截掉了
tangjinzhou commented 10 months ago

给在线复现示例吧,我这没问题的

dustfreenj commented 10 months ago

在线的提供不了报错,给你发压缩包吧 onlinevaliate.zip

image

headerCell 换成bodyCell就是正常的,您看下了

qidai77777 commented 6 months ago

相同的问题 表头里的数据不是响应式的

mHaoza commented 1 week ago

Vue版本大于等于3.4会出现这个问题, 实测降低版本到3.3后正常

surely-table 自定义 表头里报错 chunk-DTI5GBCI.js?v=94e402c5:4389 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'isCE') at renderSlot (chunk-DTI5GBCI.js?v=94e402c5:4389:32) at @surely-vue_table.js?v=94e402c5:28563:200 at ReactiveEffect.fn (chunk-DTI5GBCI.js?v=94e402c5:1249:13) at ReactiveEffect.run (chunk-DTI5GBCI.js?v=94e402c5:447:19) at get value [as value] (chunk-DTI5GBCI.js?v=94e402c5:1260:64) at triggerComputed (chunk-DTI5GBCI.js?v=94e402c5:466:20) at get dirty [as dirty] (chunk-DTI5GBCI.js?v=94e402c5:421:11) at instance.update (chunk-DTI5GBCI.js?v=94e402c5:7566:19) at callWithErrorHandling (chunk-DTI5GBCI.js?v=94e402c5:1660:32) at flushJobs (chunk-DTI5GBCI.js?v=94e402c5:1866:9) 就是效果需求在表头上面展示一个文本框 ,可以展示出来,但是会报错无法输入,用的是element plus 文本框,用html input 同样报错

<template #headerCell="{ title, column }">

{{ title }}