VM457:1 TypeError: Cannot read property 'bum' of null
at unmountComponent (runtime-core.esm-bundler.js:4632)
at unmount (runtime-core.esm-bundler.js:4549)
at unmountChildren (runtime-core.esm-bundler.js:4681)
at unmount (runtime-core.esm-bundler.js:4564)
at unmountComponent (runtime-core.esm-bundler.js:4646)
at unmount (runtime-core.esm-bundler.js:4549)
at unmountChildren (runtime-core.esm-bundler.js:4681)
at unmount (runtime-core.esm-bundler.js:4567)
at patchKeyedChildren (runtime-core.esm-bundler.js:4370)
at patchChildren (runtime-core.esm-bundler.js:4261)
renderIcon 属性只需绑定一个 AtIcon VNode 节点,正确的写法如下:
<at-card :renderIcon="renderIcon">...</at-card>
// data
const renderIcon = h(AtIcon, {...})
在
AtCard
的自定义图标展示中:<at-card :renderIcon="renderIcon()">...</at-card>
,renderIcon
属性绑定的数据是一个匿名函数:const renderIcon = () => h(AtIcon, {...})
, 导致页面返回销毁组件时报错:renderIcon 属性只需绑定一个
AtIcon
VNode 节点,正确的写法如下: