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 ` + +
+ + + + + + + + + + + +