提交 5d2e2cb0 authored 作者: chscls@163.com's avatar chscls@163.com

修复bug

上级 f16fcaf1
...@@ -425,16 +425,18 @@ class FormList extends React.Component { ...@@ -425,16 +425,18 @@ class FormList extends React.Component {
this.columns = this.props.value.columns; this.columns = this.props.value.columns;
let cacheList = []; let cacheList = [];
let cacheChecked = []; let cacheChecked = [];
console.log(this.props.value.columns)
// 表头筛选逻辑 // 表头筛选逻辑
Array.isArray(this.props.value.columns) && Array.isArray(this.props.value.columns) &&
this.props.value.columns.map(item => { this.props.value.columns.map(item => {
cacheList.push({ cacheList.push({
label: item.title, label: item.title,
value: item.name, value: item.dataIndex,
}); });
cacheChecked.push(item.name); cacheChecked.push(item.dataIndex);
}); });
this.checkList = cacheList; this.checkList = cacheList;
this.setState({ this.setState({
checkedList: cacheChecked, checkedList: cacheChecked,
cacheColumns: cloneDeep(this.props.value.columns), cacheColumns: cloneDeep(this.props.value.columns),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论