<el-input
            size="mini"
            v-if="tag.editable"
            v-model="tag.wordsName"
            clearable
            ref="editInput"
            v-focus
            :id="tag.wordsId"
            @focus="getInitValue($event, tag)"
            @keyup.enter.native="editValueClose(tag)"
          >
            <el-button
              slot="append"
              icon="el-icon-check"
              v-if="tag.editable == true"
              @click.stop="editValueClose(tag)"
            ></el-button>
          </el-input>
 getInitValue(e, tag) {
      //获取旧值
      tag.oldValue = e.target.value;
    },
    editValueClose(tag) {}

Logo

前往低代码交流专区

更多推荐