mirror of https://github.com/vuejs/core.git
[autofix.ci] apply automated fixes
This commit is contained in:
parent
327807807d
commit
90f23e2fb9
|
@ -1,6 +1,6 @@
|
||||||
<script vapor>
|
<script vapor>
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import VdomComp from './components/VdomComp.vue';
|
import VdomComp from './components/VdomComp.vue'
|
||||||
|
|
||||||
window.calls = []
|
window.calls = []
|
||||||
window.getCalls = () => {
|
window.getCalls = () => {
|
||||||
|
|
|
@ -3,18 +3,18 @@ import { onActivated, onDeactivated, onMounted, onUnmounted, ref } from 'vue'
|
||||||
const msg = ref('vdom')
|
const msg = ref('vdom')
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
window.calls.push('mounted')
|
window.calls.push('mounted')
|
||||||
})
|
})
|
||||||
onActivated(() => {
|
onActivated(() => {
|
||||||
window.calls.push('activated')
|
window.calls.push('activated')
|
||||||
})
|
})
|
||||||
onDeactivated(() => {
|
onDeactivated(() => {
|
||||||
window.calls.push('deactivated')
|
window.calls.push('deactivated')
|
||||||
})
|
})
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
window.calls.push('unmounted')
|
window.calls.push('unmounted')
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<input type="text" v-model="msg" />
|
<input type="text" v-model="msg" />
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue