Updating vue component snippet to vue 3
This commit is contained in:
parent
220e16aa36
commit
8916410167
@ -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: {},
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user