<input type="text" class="input-text" placeholder="请填写项目名" :value="info.title" @input="handleInput" data-model="title">
handleInput(e) {
var that = this;
var name = e.currentTarget.dataset.model;
that.$set(that, name, e.detail.value);
},
//数组
handleInput(e) {
var that = this;
var name = e.currentTarget.dataset.model;
that.$set(that.info, name, e.detail.value);
},
发表评论