反常的VNode渲染行为 #8070
Unanswered
WenyaoL
asked this question in
Help/Questions
反常的VNode渲染行为
#8070
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
先贴代码
App.vue
Comp.vue
BulletList.vue
问题是这样的,我在写一个列表的组件,其中有些信息是非响应式的,
BulletList
这个组件暴露了一个clearOne
方法,我通过父组件调用这个方法去修改子组件BulletList
里的一些内容,但是在渲染函数中返回值时候会Array.splice()
的影响,我明明返回空的ul元素(h('ul',{class:'marked-vue-orderList'},[])
),诡异的是为什么页面渲染的结果总是跟上面的inlineContent.splice(0,2)
有关。inlineContent
删除什么页面就渲染什么Beta Was this translation helpful? Give feedback.
All reactions