feat: Create examples directory and add some examples

* Add svg plugins for vite & rollup
update: more bundle stuff
This commit is contained in:
Braks
2021-07-10 23:51:04 +02:00
parent 4d52af09fa
commit e4f57c79e8
31 changed files with 1043 additions and 1273 deletions
+20
View File
@@ -0,0 +1,20 @@
import { computed, defineComponent } from 'vue';
import Header from './Header';
import { useRoute } from 'vue-router';
export default defineComponent({
name: 'App',
components: {
Header
},
setup() {
const route = useRoute();
const key = computed(() => route.fullPath);
return () => (
<>
<Header />
<router-view ref="view" key={key.value} />
</>
);
}
});