mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-28 23:59:25 +08:00
refactoring
This commit is contained in:
parent
5e2b0d48ff
commit
4574b74864
@ -30,6 +30,7 @@ export default {
|
||||
components: {
|
||||
ReactRenderer,
|
||||
},
|
||||
|
||||
props: {
|
||||
name: {
|
||||
type: String,
|
||||
@ -44,8 +45,8 @@ export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
content: null,
|
||||
files: [],
|
||||
content: null,
|
||||
currentIndex: 0,
|
||||
syntax: {
|
||||
js: 'javascript',
|
||||
@ -58,7 +59,8 @@ export default {
|
||||
|
||||
computed: {
|
||||
mainFile() {
|
||||
const file = this.files.find(item => item.path.endsWith('.vue') || item.path.endsWith('.jsx'))
|
||||
const file = this.files
|
||||
.find(item => item.path.endsWith('.vue') || item.path.endsWith('.jsx'))
|
||||
|
||||
if (!file) {
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user