vue中点击一个按钮,显示、隐藏搜索框
<div class="search" v-show="isshow"><input type="text" class="sea_input" name="keyword"><button @click="Search
·
<div class="search" v-show="isshow">
<input type="text" class="sea_input" name="keyword">
<button @click="Search_con">搜索</button>
</div>
刚开始搜索框是隐藏的,然后,点击.butto,搜索框显示
export default {
data(){
return{
isshow:false
}
},
methods:{
showToggle(){
this.isshow = !this.isshow
}
更多推荐
已为社区贡献3条内容
所有评论(0)