<template>
    <div>
         <div class="title body" v-for="(item,index) in box" :key="index">
          <el-input
           type="textarea"
           autosize
           placeholder="请输入正文"
           v-model="item.textarea">
          </el-input>  
        </div>
    </div>
</template>
<script>
    export default {
        data() {
            return {
              box:[{textarea: null}],
            }
        },
        methods:{
            submit(){
                let params = {textarea: null}
                this.box.push(params)
            }
        }
    }
</script>

<style lang="scss" scoped>

  
</style>
Logo

前往低代码交流专区

更多推荐