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