refactor
parent
23cfd71f29
commit
215110c659
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue