Commit 7ee84d96 authored by 郭志伟's avatar 郭志伟

fix(componentSelect): 问题修复

parent a13f9c55
......@@ -42,9 +42,10 @@ export default class DynamicForm extends Vue {
return cur.point.y > next.point.y ? 1 : -1;
});
this.list = list.map((element, index) => ({ id: element.id, label: element.title + '-' + element.id}));
if (!this.list.includes(item => item.id === this.selected)) {
if (!this.list.some(item => item.id === this.selected)) {
this.selected = '';
}
// console.log('curEleIndex', pointY, this.pageData?.elements?.filter(v => pointY < v?.point?.y), this.list);
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment