import { Vssue } from 'vssue' ; import VssueComponent from './Vssue.vue' ; const VssuePlugin = { get version ( ) { return process . env . VUE_APP_VERSION as string ; } , installed : false , install ( Vue , options ? ) { if ( this . installed ) { return false ; } this . installed = true ; Vue . component ( 'Vssue' , { functional : true , props : { title : { type : String , required : false , default : undefined , } , issueId : { type : [ Number , String ] , required : false , default : undefined , } , options : { type : Object , required : false , default : undefined , } , } , render ( h , { data , props } ) { return h ( VssueComponent , { ... data , props : { title : props . title , issueId : props . issueId , options : Object . assign ( { } , options , props . options ) , } , } ) ; } , } ) ; } , VssueComponent : VssueComponent , } ; export { VssueComponent } ; export default VssuePlugin ;