TestFile.vue

Contoh isi dari step.
mail@pastecode.io avatar
unknown
javascript
2 years ago
381 B
2
Indexable
Never
<template>
  <div @click="handleTest">{{ message }}</div>
</template>

<script>
export default {
  props: {
    message: {
      type: String,
      default () {
        return ''
      }
    },
    value: {
      default () {
        return ''
      }
    }
  },
  methods: {
    handleTest () {
      this.$emit('input', this.value)
    }
  }
}
</script>