From f0248058ef808a9a36c97d8f6b17d8f92256b374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Mon, 11 Oct 2021 16:48:01 +0300 Subject: [PATCH] update docs for browser --- src/AppDemoActions.vue | 6 ++++++ src/AppDocumentation.vue | 35 ++++++++++++++++++++++++++++++++++- 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/src/AppDemoActions.vue b/src/AppDemoActions.vue index 143d82d19..5d44b2e22 100644 --- a/src/AppDemoActions.vue +++ b/src/AppDemoActions.vue @@ -29,6 +29,12 @@ export default { command: () => { EventBus.emit('run-demo', 'composition-api'); } + }, + { + label: 'Browser Demo', + command: () => { + EventBus.emit('run-demo', 'browser-source'); + } } ] } diff --git a/src/AppDocumentation.vue b/src/AppDocumentation.vue index 27e53a772..ae9f8cf71 100644 --- a/src/AppDocumentation.vue +++ b/src/AppDocumentation.vue @@ -36,6 +36,7 @@ export default { this.renderSource('options-api', tabs); this.renderSource('composition-api', tabs); + this.renderSource('browser-source', tabs); if (this.service) { let serviceArr = []; @@ -75,12 +76,44 @@ export default { return tabs; }, + renderContent(source) { + if (source.tabName === 'Browser Source') { + const _imports = source.imports ? source.imports.replaceAll('<\\/script>', '<\/script>') : ''; + return ` + + + + + + + + + + + + + +