Skip to content

表格columns设置responsive 如responsive: ["lg"]时,首次加载如lg宽时不报错,但缩小屏幕到xs时会报错 #8353

@lidysun

Description

@lidysun
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.2.6

Environment

"ant-design-vue": "^4.2.6", "vue": "^3.5.18" Chrome 140.0.7339.81 64 位)

Reproduction link

https://www.jilove.cn?tip=nosite

Steps to reproduce

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'key')

What is expected?

不报错

What is actually happening?

one.vue:132 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'key')
at one.vue:132:35
at Object.renderFnWithContext [as bodyCell] (runtime-core.esm-bundler.js:694:13)
at customRenderSlot (vnode.js:58:75)
at Proxy. (index.js:162:25)
at renderComponentRoot (runtime-core.esm-bundler.js:6562:16)
at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js:5441:26)
at ReactiveEffect.run (reactivity.esm-bundler.js:237:19)
at updateComponent (runtime-core.esm-bundler.js:5301:18)
at processComponent (runtime-core.esm-bundler.js:5235:7)
at patch (runtime-core.esm-bundler.js:4740:11)
(匿名) @ one.vue:132
renderFnWithContext @ runtime-core.esm-bundler.js:694
customRenderSlot @ vnode.js:58
(匿名) @ index.js:162
renderComponentRoot @ runtime-core.esm-bundler.js:6562
componentUpdateFn @ runtime-core.esm-bundler.js:5441
run @ reactivity.esm-bundler.js:237
updateComponent @ runtime-core.esm-bundler.js:5301
processComponent @ runtime-core.esm-bundler.js:5235
patch @ runtime-core.esm-bundler.js:4740
patchKeyedChildren @ runtime-core.esm-bundler.js:5641
patchChildren @ runtime-core.esm-bundler.js:5555
processFragment @ runtime-core.esm-bundler.js:5198
patch @ runtime-core.esm-bundler.js:4714
patchKeyedChildren @ runtime-core.esm-bundler.js:5641
patchChildren @ runtime-core.esm-bundler.js:5555
patchElement @ runtime-core.esm-bundler.js:5027
processElement @ runtime-core.esm-bundler.js:4873
patch @ runtime-core.esm-bundler.js:4728
patchKeyedChildren @ runtime-core.esm-bundler.js:5641
patchChildren @ runtime-core.esm-bundler.js:5555
processFragment @ runtime-core.esm-bundler.js:5198
patch @ runtime-core.esm-bundler.js:4714
componentUpdateFn @ runtime-core.esm-bundler.js:5450
run @ reactivity.esm-bundler.js:237
runIfDirty @ reactivity.esm-bundler.js:275
callWithErrorHandling @ runtime-core.esm-bundler.js:199
flushJobs @ runtime-core.esm-bundler.js:408
Promise.then
queueFlush @ runtime-core.esm-bundler.js:322
queueJob @ runtime-core.esm-bundler.js:317
baseWatchOptions.scheduler @ runtime-core.esm-bundler.js:6265
effect2.scheduler @ reactivity.esm-bundler.js:1853
trigger @ reactivity.esm-bundler.js:265
endBatch @ reactivity.esm-bundler.js:323
notify @ reactivity.esm-bundler.js:614
trigger @ reactivity.esm-bundler.js:588
set value @ reactivity.esm-bundler.js:1471
(匿名) @ useBreakpoint.js:9
(匿名) @ responsiveObserve.js:25
dispatch @ responsiveObserve.js:25
listener @ responsiveObserve.js:54
runtime-core.esm-bundler.js:7468 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'type')
at isSameVNodeType (runtime-core.esm-bundler.js:7468:13)
at patchKeyedChildren (runtime-core.esm-bundler.js:5640:11)
at patchChildren (runtime-core.esm-bundler.js:5555:11)
at processFragment (runtime-core.esm-bundler.js:5198:9)
at patch (runtime-core.esm-bundler.js:4714:9)
at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js:5450:9)
at ReactiveEffect.run (reactivity.esm-bundler.js:237:19)
at ReactiveEffect.runIfDirty (reactivity.esm-bundler.js:275:12)
at callWithErrorHandling (runtime-core.esm-bundler.js:199:33)
at flushJobs (runtime-core.esm-bundler.js:408:9)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions