不能直接修改原始配置

This commit is contained in:
liaoxuezhi 2019-07-18 18:55:47 +08:00
parent 0e68c3ab6d
commit bbe2247c9a
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ export default class FormTable extends React.Component<TableProps, TableState> {
buildColumns(props:TableProps, isCreateMode = false):Array<any> {
const env = this.props.env;
let columns:Array<any> = Array.isArray(props.columns) ? props.columns : [];
let columns:Array<any> = Array.isArray(props.columns) ? props.columns.concat() : [];
const ns = this.props.classPrefix;
let btns = [];