How the vue custom instruction assigns values to data

as the title
my component code is

  <input   v-onumber="message" :value="message"    />

data is

  data () {
    return {
      message:"1",
      forlist:{
        data:1,
        name:2,
        hei:3
      },
      items:[1,2,3]
    }
  },

this is how the custom component is written

  directives:{
    onumber(el,binding){
      $(el).keyup(function(){
      let val=$(el).val();
       val=val.replace(/[^\d]/g,"")
            binding
      })
    }
  },

after getting the value of the input box, I want to change the value of the input box by assigning a value to the message of data. How should I write


the third parameter is that vnode, can modify data
, but the instruction should not change the node's data

.
Menu