4 changed files with 28 additions and 3 deletions
@ -1,3 +1,13 @@ |
|||||
<template> |
<template> |
||||
<h1>Common Hello.vue</h1> |
<h1> |
||||
|
Common Hello.vue <br /><small>{{ modalDisplay }}</small> |
||||
|
<van-button type="primary" @click="modalDisplay = !modalDisplay"> |
||||
|
主要按钮 |
||||
|
</van-button> |
||||
|
</h1> |
||||
</template> |
</template> |
||||
|
|
||||
|
<script setup> |
||||
|
const modalDisplay = useModal(); |
||||
|
console.log(modalDisplay.value); |
||||
|
</script> |
||||
|
@ -1,3 +1,10 @@ |
|||||
<template> |
<template> |
||||
<div>Hello</div> |
<div> |
||||
|
Hello |
||||
|
<h2>{{ modalDisplay }}</h2> |
||||
|
</div> |
||||
</template> |
</template> |
||||
|
|
||||
|
<script setup> |
||||
|
const modalDisplay = useModal(); |
||||
|
</script> |
||||
|
Loading…
Reference in new issue