banner-list.vue 462 Bytes
<template>
  <div>
     <Input :value="link"  @input="onUpdateLink" placeholder="链接"/>
  </div>
</template>

<script>

import util from '@/libs/util'

export default {
  props: ['value'],
  data() {
    return {
      link: this.value
    }
  },
  watch: {
    value(newVal)  {
      this.link = this.value;
    }
  },
  methods: {
    onUpdateLink(val) {
      this.link = val;
      this.$emit('input', this.link);
    }
  }
}
</script>

<style>

</style>