vant-weapp:使用Filed组件时,当输入内容发生改变得时候触发函数

<van-cell-group>
  <van-field class="pictureDefine-input" :value="pictureDefinePrice" placeholder="请输入价格" :border="true" @change="myChange"/>
  <span class="pictureDefine-tip fs4">span>
van-cell-group>

js

 myChange: function (e) {
   console.log(e.mp.detail)
   console.log('picker发送选择改变,携带值为', e.mp.detail)
   this.date = e.mp.detail
 }

这里用得是e.mp.detail

你可能感兴趣的:(前端)