You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
351 B
22 lines
351 B
<template> |
|
<button @click="isShowDemo=!isShowDemo">点击展示隐藏</button> |
|
<Demo v-if="isShowDemo"/> |
|
</template> |
|
|
|
<script> |
|
import {ref} from "vue"; |
|
import Demo from "@/components/demo.vue"; |
|
|
|
export default { |
|
name: 'App', |
|
components: {Demo}, |
|
setup() { |
|
let isShowDemo = ref(true) |
|
|
|
return { |
|
isShowDemo, |
|
} |
|
} |
|
|
|
} |
|
</script>
|
|
|