<template>
  <div>
    <el-form-item label="描述">
      <el-input
          placeholder="请输入描述 ALT"
          v-model.trim="tempAlt">
      </el-input>
    </el-form-item>
  </div>
</template>

<script>
	export default {
		name: "attr-alt",
		props: {
			alt: String,
		},
		data() {
			return {
        tempAlt: '',
			}
		},
		mounted() {
			this.tempAlt = this.alt;
		},
		watch: {
			alt(val) {
				this.tempAlt = val;
			},
      tempAlt() {
				this.$emit('update:alt', this.tempAlt);
			}
		}
	}
</script>

<style scoped>

</style>
