SOURCE

console 命令行工具 X clear

                    
>
console
var app = new Vue({
  el: '#app',
  data() {
    return {
      textarea2: [],
      arr: []
    }
  },
  mounted() {
    //获取id
    this.get1();
  },
  methods: {
    get1() {
      this.arr = [1, 2, 1, 23, 1, 25] ;
      this.arr.forEach(item => {
        let tt = this.get(item) ;
        this.textarea2.push(tt);
      })
    },
    get(n) {
      // 根据n的值去请求接口获取显示的内容
      // 伪代码
      if (n == 1) {
        return '问题就是我想编辑这个输入框,但是编辑不了,有没有好的办法'
      }
      return '这里的数据是根据其他接口返回的数据去匹配得到的'
    }
  }
})
<div id="app">
    <el-input
      v-for='(item,index) in arr'
      type="textarea"
      autosize
      placeholder="请输入内容"
      v-model="textarea2[index]"
      >
</el-input>
<div style="margin: 20px 0;"></div>
</div>