Skip to content

Commit

Permalink
发布体验问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanxu33 committed Jun 10, 2022
1 parent 5f24fc6 commit 71677a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/client/src/components/render/pc/render-slot.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ export default {
} while (curSlot && Object.keys(curSlot).length > 0)

const html = `<render-slot>${render(...slotRenderParams, key)}</render-slot>`
return transformHtmlToVnode(html).children
const slotChildrenInstance = transformHtmlToVnode(html).children || []
slotChildrenInstance?.forEach((vnode) => {
vnode.key = vnode.key + key
})
return slotChildrenInstance
}
}

0 comments on commit 71677a4

Please sign in to comment.