<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("发送验证码")
}
}
getCode方法点击无效
关于为什么要加
.native
修饰符,你可以看这个回答:https://segmentfault.com/q/10...