| | |
| | | |
| | | let cvalues = {} |
| | | let cols = config.cols.map(item => { |
| | | let types = {custom: '自定义列', colspan: '合并列'} |
| | | let label = types[item.type] ? `${item.label}(${types[item.type]})` : item.label |
| | | let label = item.label |
| | | if (item.type === 'colspan' && item.subcols && item.subcols.length > 0) { |
| | | label = `${item.label}(${item.subcols.map(cell => cell.label).join('、')})` |
| | | } |
| | | |
| | | cvalues[item.uuid] = label |
| | | |
| | |
| | | return !is(fromJS(this.props.column), fromJS(nextProps.column)) || |
| | | !is(fromJS(this.props.fields), fromJS(nextProps.fields)) || |
| | | this.props.index !== nextProps.index || |
| | | window.GLOB.columnId === nextProps.column.uuid || window.GLOB.precolumnId === nextProps.column.uuid |
| | | (nextProps.className && this.props.className !== nextProps.className) || |
| | | window.GLOB.columnId === nextProps.column.uuid || |
| | | window.GLOB.precolumnId === nextProps.column.uuid |
| | | } |
| | | |
| | | render() { |
| | |
| | | return !is(fromJS(this.props.column), fromJS(nextProps.column)) || |
| | | !is(fromJS(this.props.fields), fromJS(nextProps.fields)) || |
| | | this.props.index !== nextProps.index || |
| | | window.GLOB.columnId === nextProps.column.uuid || window.GLOB.precolumnId === nextProps.column.uuid |
| | | (nextProps.className && this.props.className !== nextProps.className) || |
| | | window.GLOB.columnId === nextProps.column.uuid || |
| | | window.GLOB.precolumnId === nextProps.column.uuid |
| | | } |
| | | |
| | | render() { |