Update AppDocumentation.vue
parent
5f54981b50
commit
b13035bb4d
|
@ -16,13 +16,13 @@ export default {
|
||||||
component: null,
|
component: null,
|
||||||
github: {
|
github: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'index.vue'
|
default: 'index'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
viewGithubListener: null,
|
viewGithubListener: null,
|
||||||
mounted() {
|
mounted() {
|
||||||
this.viewGithubListener = () => {
|
this.viewGithubListener = () => {
|
||||||
window.open('https://github.com/primefaces/primevue/blob/master/pages/' + this.name.toLowerCase().replaceAll('demo', '/') + this.github, '_blank');
|
window.open('https://github.com/primefaces/primevue/blob/master/pages/' + this.name.toLowerCase().replaceAll('demo', '/') + this.github + '.vue', '_blank');
|
||||||
};
|
};
|
||||||
|
|
||||||
EventBus.on('view-github', this.viewGithubListener);
|
EventBus.on('view-github', this.viewGithubListener);
|
||||||
|
|
Loading…
Reference in New Issue