mirror of https://github.com/vuejs/core.git
[autofix.ci] apply automated fixes
This commit is contained in:
parent
2604aeb973
commit
2134b87d0d
|
@ -4,12 +4,12 @@ import VaporComp from './VaporComp.vue'
|
||||||
import SimpleVaporComp from './components/SimpleVaporComp.vue'
|
import SimpleVaporComp from './components/SimpleVaporComp.vue'
|
||||||
|
|
||||||
const msg = ref('hello')
|
const msg = ref('hello')
|
||||||
const passSlot = ref(true);
|
const passSlot = ref(true)
|
||||||
|
|
||||||
(window as any).calls = [];
|
;(window as any).calls = []
|
||||||
(window as any).getCalls = () => {
|
;(window as any).getCalls = () => {
|
||||||
const ret = (window as any).calls.slice();
|
const ret = (window as any).calls.slice()
|
||||||
(window as any).calls = []
|
;(window as any).calls = []
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,18 +3,18 @@ import { onActivated, onDeactivated, onMounted, onUnmounted, ref } from 'vue'
|
||||||
const msg = ref('vapor')
|
const msg = ref('vapor')
|
||||||
|
|
||||||
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