pull/3441/head
Tuğçe Küçükoğlu 2022-12-22 15:49:31 +03:00
parent 23cfd71f29
commit 215110c659
1 changed files with 2 additions and 2 deletions

View File

@ -16,13 +16,13 @@ export default {
component: null,
github: {
type: String,
default: 'index'
default: 'index.vue'
}
},
viewGithubListener: null,
mounted() {
this.viewGithubListener = () => {
window.open('https://github.com/primefaces/primevue/blob/master/pages/' + this.name.toLowerCase().replaceAll('demo', '/') + this.github + '.vue', '_blank');
window.open('https://github.com/primefaces/primevue/blob/master/pages/' + this.name.toLowerCase().replaceAll('demo', '/') + this.github, '_blank');
};
EventBus.on('view-github', this.viewGithubListener);
},