mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-08-06 13:38:49 +08:00
fix react example
This commit is contained in:
parent
48cbca07dd
commit
578a8365c3
@ -4,7 +4,6 @@
|
||||
<react-renderer :component="mainFile" v-if="mode === 'react'" />
|
||||
</div>
|
||||
<div class="demo" v-else>
|
||||
{{ mainFile }}
|
||||
<template v-if="mainFile">
|
||||
<div class="demo__preview">
|
||||
<component :is="mainFile" v-if="mode === 'vue'" />
|
||||
@ -92,7 +91,7 @@ export default {
|
||||
computed: {
|
||||
mainFile() {
|
||||
const file = this.files
|
||||
.find(item => item.path.endsWith('index.vue') || item.path.endsWith('.jsx'))
|
||||
.find(item => item.path.endsWith('index.vue') || item.path.endsWith('index.jsx'))
|
||||
|
||||
if (!file) {
|
||||
return
|
||||
|
@ -4,4 +4,4 @@
|
||||
|
||||
TODO
|
||||
|
||||
<demo name="React" />
|
||||
<demo name="React" mode="react" />
|
||||
|
Loading…
Reference in New Issue
Block a user