在Vue 3項目中使用 Vant UI中vant-popup 彈出層功能時,需要將 v-model="show" 更改為 v-model:show= "show"(Vue 3 語法) :
<van-popup
v-model:show="show"
closeable
close-icon="close"
position="bottom"
:style="{ height: '30%' }"
/>
Vant 官網默認語法(Vue 2 語法):