<template>
    <div>
        <input type="text" @change="e =>  $emit('change' ,e)">
        {{log()}}
        {{a}}
    </div>
</template>

<script>
export default {
  name: 'child',
  props: {
      a: String
  },
  methods: {
      log () {
          console.log('child');
      }
  }
}
</script>
<style scoped lang="less">

</style>