banner-list.vue
458 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 = newVal;
}
},
methods: {
onUpdateLink(val) {
this.link = val;
this.$emit('input', this.link);
}
}
}
</script>
<style>
</style>