We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Vue warn]: Non-function value encountered for default slot. Prefer function slots for better performance.
Reproduction: link
The text was updated successfully, but these errors were encountered:
@JiLiZART fix default slot warn and node mismatch warn
function tagToVueNode(createElement, node, index) { const { class: className, style, ...domProps } = node.attrs || {}; return createElement( node.tag, { key: index, class: className, style, ...domProps, }, { default: () => isContentEmpty(node.content) ? null : renderToVueNodes(createElement, node.content), }, ); } function renderToVueNodes(createElement, nodes) { return [].concat(nodes).reduce((arr, node, index) => { if (isTagNode(node)) { arr.push(tagToVueNode(createElement, node, index)); } else if (isStringNode(node)) { if (arr[arr.length - 1] && isStringNode(arr[arr.length - 1])) { arr[arr.length - 1] += node } else { arr.push(node); } } return arr; }, []); }
Sorry, something went wrong.
JiLiZART
No branches or pull requests
[Vue warn]: Non-function value encountered for default slot. Prefer function slots for better performance.
Reproduction: link
The text was updated successfully, but these errors were encountered: