I createApp
and mount
it to <div>
, which is just under <body>
.
I mount
at just before </body>
because the <div>
have to exist before I mount
to it.
My model's property is false
so the elements with v-show
should not be shown.
What happens is:
<body>
and <div>
, which includes the elements with v-show
, are loaded.
- They are all shown even though I don't want to see the elements with
v-show
.
- Vue hide the elements with
v-show
. At last, it's OK.
How can I show properly from the first sight?
I'm using Vue3 on Chrome.
question from:
https://stackoverflow.com/questions/65858761/v-show-doesnt-hide-elements-until-i-mount-vue 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…