Vue练习七:02_01_百度输入法

Demo 在线地址:
https://sx00xs.github.io/test/7/index.html
---------------------------------------------------------------
ide: vscode
文件格式:.vue
解析:(待补)

<template>
  <div id="app">
    <div class="outer">
      <button @click="handleShow">输入法</button>
      <ul class="ime" v-show="show">
        <li><a href="#">手写</a></li>
        <li><a href="#">拼音</a></li>
        <li class="close"
        @click="handleShow"
        ><a href="#">关闭</a></li>
      </ul>
    </div>
  </div>
</template>
<script>
export default {
  data:function(){
    return{
      show:false
    }
  },
  methods:{
    handleShow(){
      this.show=!this.show;
    }
  }
}
</script>

猜你喜欢

转载自www.cnblogs.com/sx00xs/p/11265609.html