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