16 lines
304 B
Vue
16 lines
304 B
Vue
<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> |