vue获取el-input 初始值
<el-inputsize="mini"v-if="tag.editable"v-model="tag.wordsName"clearableref="editInput"v-focus:id="tag.wordsId"@focus="getInitValue($event, tag)".
·
<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) {}
更多推荐
已为社区贡献1条内容
所有评论(0)