Vue js apply filter on v-model in an input field

前端 未结 7 1679
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-03 22:37

Hope someone can help me! I have made a directive wrapping the Jasny Bootstrap Plugin more specifically the input-mask thing and everything goes well!

Now I have made a

7条回答
  •  北海茫月
    2021-02-03 23:06

    Template

    
    

    Component

      methods: {
        onDateChange(event) {
          this.myDate = event.target.value
        }
        getFormatedDate(date) {
         return '2020/08/19'
        }
      },
      computed: {
        date() {
          return this.getFormatedDate(this.myDate)
        }
      }
    

提交回复
热议问题