From 5bccbacf322b8789d1a84feb75b49a96f10b1dcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Fri, 13 Nov 2020 15:30:09 +0100 Subject: [PATCH] improve v-model example --- docs/src/components/Demo/index.vue | 4 +- .../src/demos/Examples/VModel/Editor.vue | 29 ++++++++------ docs/src/demos/Examples/VModel/index.vue | 38 +++++++++++++++---- packages/vue/src/index.ts | 1 - 4 files changed, 50 insertions(+), 22 deletions(-) rename packages/vue/src/components/FullEditor.vue => docs/src/demos/Examples/VModel/Editor.vue (55%) diff --git a/docs/src/components/Demo/index.vue b/docs/src/components/Demo/index.vue index 96115d844..4086b41b6 100644 --- a/docs/src/components/Demo/index.vue +++ b/docs/src/components/Demo/index.vue @@ -82,7 +82,7 @@ export default { computed: { mainFile() { const file = this.files - .find(item => item.path.endsWith('.vue') || item.path.endsWith('.jsx')) + .find(item => item.path.endsWith('index.vue') || item.path.endsWith('.jsx')) if (!file) { return @@ -122,7 +122,7 @@ export default { .filter(item => { return ['vue', 'jsx', 'scss'].includes(item.extension) }) - .sortBy(item => item.path.split('/').length) + .sortBy(item => item.path.split('/').length && !item.path.endsWith('index.vue')) .toArray() }, } diff --git a/packages/vue/src/components/FullEditor.vue b/docs/src/demos/Examples/VModel/Editor.vue similarity index 55% rename from packages/vue/src/components/FullEditor.vue rename to docs/src/demos/Examples/VModel/Editor.vue index 2d038bd88..df0785830 100644 --- a/packages/vue/src/components/FullEditor.vue +++ b/docs/src/demos/Examples/VModel/Editor.vue @@ -1,12 +1,11 @@ + + diff --git a/packages/vue/src/index.ts b/packages/vue/src/index.ts index e9ec282ad..d668e82c8 100644 --- a/packages/vue/src/index.ts +++ b/packages/vue/src/index.ts @@ -1,4 +1,3 @@ export * from '@tiptap/core' export { default as VueRenderer } from './VueRenderer' export { default as EditorContent } from './components/EditorContent' -export { default as FullEditor } from './components/FullEditor.vue'