mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-25 12:39:03 +08:00
add link to github to demo component
This commit is contained in:
parent
0a01068db2
commit
f13212b362
@ -20,6 +20,9 @@
|
||||
<prism :code="activeFile.content" :language="activeFile.highlight" :highlight="highlight" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="demo__link">
|
||||
<a :href="githubUrl" target="_blank">Edit on GitHub</a>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -81,6 +84,10 @@ export default {
|
||||
activeFile() {
|
||||
return this.files[this.currentIndex]
|
||||
},
|
||||
|
||||
githubUrl() {
|
||||
return `https://github.com/ueberdosis/tiptap-next/tree/main/docs/src/demos/${this.name}`
|
||||
},
|
||||
},
|
||||
|
||||
mounted() {
|
||||
|
@ -48,4 +48,8 @@
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&__link {
|
||||
padding: 1rem 1.5rem;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user