import Vue , { ComponentOptions , VNodeChildren } from 'vue' ; import { MessageProps } from './stub.types' ; export const VueSlots = { props : { message : { default : 'Hello world!' , type : String } } , render ( h ) { const children = [ this . $slots . default ] ; if ( this . $scopedSlots . scoped ) { const scope = { message : this . message } ; children . unshift ( h ( 'section' , { } , this . $scopedSlots . scoped ( scope ) ) ) ; } return h ( 'div' , { } , children ) ; } } ;