import Vue , { ComponentOptions } from 'vue' ; import { MessageProps } from './stub.types' ; export const VueButton = { props : { message : { default : 'Hello world!' , type : String } } , created ( ) { this . $emit ( 'VueButtonCreated' , this . message ) ; } , mounted ( ) { this . $emit ( 'VueButtonMounted' , this . message ) ; } , render ( h ) { return h ( 'button' , { on : { click : ( ) => { this . $emit ( 'VueButtonClickedFirstEvent' , this . message ) ; this . $emit ( 'VueButtonClickedSecondEvent' , this . message ) ; } } } , [ this . message ] ) ; } } ;