Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加多个input的时候报错 #1

Open
songyongbo opened this issue Mar 24, 2020 · 1 comment
Open

添加多个input的时候报错 #1

songyongbo opened this issue Mar 24, 2020 · 1 comment

Comments

@songyongbo
Copy link

columnOption 中
{
columnKey: 'name',
minWidth: "100px",
label: '文字',
propId: 'text',
propText: 'text',
editType: 'Input',
},
//第二个input列
{
columnKey: 'name2',
minWidth: "100px",
label: '文字2',
propId: 'name2',
propText: 'name2',
editType: 'Input',
},

报错地方
case 'Input':
case 'InputNumber':
// console.log('refs:',this.$refs);
// console.log('rowid:columnId',this.editingCellInfo.rowId,columnId,this.editingCellInfo.columnId);
// console.log('buildCellRef:',this.buildCellRef(this.editingCellInfo.rowId, this.editingCellInfo.columnId));
let ff = this.buildCellRef(this.editingCellInfo.rowId, this.editingCellInfo.columnId);
//bug 下行这里将取不到值 ***********************************************
let aa = this.$refs[ff];
if (aa !== undefined) {
let changeValue = aa[0].value;
// console.log('changeValue:'+ changeValue)
this.$set(row, columnOption.propId, changeValue);
}
break;

@MissThee
Copy link
Owner

感谢反馈。添加多个input,切换单元格报错的问题已经修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants