笔记:3.10课程笔记
This commit is contained in:
16
3.10/Vue3Proj/vue-project/src/hook2.vue
Normal file
16
3.10/Vue3Proj/vue-project/src/hook2.vue
Normal file
@@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<div>
|
||||
<hook1 v-if="flag"></hook1>
|
||||
<button @click="flag = !flag">change</button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import hook1 from "./hook1.vue"
|
||||
import {ref} from 'vue'
|
||||
|
||||
let flag = ref<boolean>(true)
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
</style>
|
||||
Reference in New Issue
Block a user