<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
    }


 

Logo

前往低代码交流专区

更多推荐