mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 09:25:29 +08:00
docs: add query param to hide the demo preview
This commit is contained in:
parent
716c5ef53b
commit
bd480a2009
@ -17,6 +17,7 @@
|
||||
<div class="overflow-hidden">
|
||||
<div
|
||||
class="bg-white"
|
||||
:class="[hidePreview ? 'hidden' : '']"
|
||||
>
|
||||
<demo-frame
|
||||
:src="currentIframeUrl"
|
||||
@ -140,6 +141,10 @@ export default {
|
||||
return this.query.hideSource || false
|
||||
},
|
||||
|
||||
hidePreview() {
|
||||
return this.query.hidePreview || false
|
||||
},
|
||||
|
||||
githubUrl() {
|
||||
return `https://github.com/ueberdosis/tiptap/tree/main/demos/src/${this.name}`
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user