Added debug serve command
This commit is contained in:
parent
3e21cd4680
commit
a9239ab898
5 changed files with 37 additions and 6 deletions
|
|
@ -0,0 +1,18 @@
|
|||
<template>
|
||||
<div id="app">
|
||||
<VueWebComponent/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import VueWebComponent from './components/VueWebComponent.vue'
|
||||
export default {
|
||||
name: 'app',
|
||||
components: {
|
||||
VueWebComponent
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
|
|
@ -20,7 +20,7 @@ export default {
|
|||
props: {
|
||||
'componentBaseURL': {
|
||||
required: false,
|
||||
default: null,
|
||||
default: "http://localhost/api/v2",
|
||||
type: String
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,7 +1,14 @@
|
|||
import Vue from 'vue';
|
||||
import wrap from '@vue/web-component-wrapper';
|
||||
import App from './App.vue';
|
||||
import VueWebComponent from './components/VueWebComponent';
|
||||
|
||||
const CustomElement = wrap(Vue, VueWebComponent);
|
||||
|
||||
window.customElements.define('my-custom-element', CustomElement);
|
||||
window.customElements.define('my-custom-element', CustomElement);
|
||||
|
||||
Vue.config.productionTip = false;
|
||||
|
||||
new Vue({
|
||||
render: h => h(App)
|
||||
}).$mount('#app')
|
||||
Loading…
Add table
Add a link
Reference in a new issue