This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Ensures each child node (element or text) of the slot has a given tag or class. | |
*/ | |
export default { | |
name: "SlotWrapper", | |
functional: true, | |
props: ["tag", "value"], | |
render: function(h, ctx) { | |
const { tag = "div", value: node, class: className = "" } = ctx.props; |