Skip to content

input对中英文输入法判断 #17

Open

Description

@imondo
  <el-input
    v-model="barcode"
    @compositionstart.native="start"
    @compositionend.native="end"
  ></el-input>
  methods: {
    start() { // 中文开始输入
      this.composing = true;
    },
    end() { // 输入结束
      this.composing = false;
      this.barcode = '';
    }
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions