Updating vue component snippet to vue 3

This commit is contained in:
Brian 2021-10-26 09:46:48 -06:00
parent 220e16aa36
commit 8916410167
Signed by: brian
GPG Key ID: DE1A5390A3B84CD8

View File

@ -1,22 +1,40 @@
<snippet>
<content><![CDATA[
<template>
<div class="v-root"></div>
<div class="v-root">
<slot></slot>
</div>
</template>
<script>
import { defineComponent } from 'vue'
import { defineComponent, getCurrentInstance, onMounted, onUnmounted, ref } from "vue"
export default defineComponent({
emits: [],
props: {},
components: {},
data() {
return {}
},
computed: {},
setup(props, {emit}) {
let _this = getCurrentInstance()
mounted() {},
onMounted(() => {
//
})
onUnmounted(() => {
//
})
return {}
},
computed: {},
methods: {},
})