Why the x-button add @ click click event for vux is invalid

<x-input title="" placeholder="" class="weui-vcode">
    <x-button
      class="identifyCode-btn"
      slot="right"
      type="primary"
      @click="getCode()"
      mini></x-button>
  </x-input>
  methods: {
    getCode(){
      console.log("")
    }
  }

invalid click on getCode method

Mar.01,2021

use @ click.native to bind click events on a component according to ide/components.html-sharp%E4%BD%BF%E7%94%A8-v-on-%E7%BB%91%E5%AE%9A%E8%87%AA%E5%AE%9A%E4%B9%89%E4%BA%8B%E4%BB%B6" rel=" nofollow noreferrer "> Vue document .
is quoted from: https://doc.vux.li/zh-CN/comp.

about why the .native modifier is added, you can see this answer:
https://codeshelper.com/q/10.

.
Menu