1. 程式人生 > >antd之1.5米長三元表示式

antd之1.5米長三元表示式

{/*預留*/}
<TreeNode
    title={'Statistics'}
    key={'Channel_Statistics_' + item.Index + '_' + idx + '_Channel-Statistics'}>
    <TreeNode
        //根據idx===parseInt(this.state.channelStatistics.index)顯示不同結果
        title={(((this.state.channelStatistics.val ? this.state.channelStatistics.val.ViewCount : undefined
) === undefined)) ? (item.Statistics === undefined) ? 'ViewCount : ' + 0 : 'ViewCount : ' + item.Statistics.ViewCount : this.state.channelStatistics.val ? ((idx === parseInt(this.state.channelStatistics.index)) ? 'ViewCount :' + this.state.channelStatistics.val.ViewCount : (item.Statistics === undefined
) ? 'ViewCount : ' + 0 : 'ViewCount : ' + item.Statistics.ViewCount) : (item.Statistics === undefined) ? 'ViewCount : ' + 0 : 'ViewCount : ' + item.Statistics.ViewCount} key={'Channel_Statistics_ViewCount_' + item.Index + '_' + idx + '_Channel-Statistics'} disabled={true}/> <TreeNode title={(((this
.state.channelStatistics.val ? this.state.channelStatistics.val.LikeCount : undefined) === undefined)) ? (item.Statistics === undefined) ? 'LikeCount : ' + 0 : 'LikeCount : ' + item.Statistics.LikeCount : this.state.channelStatistics.val ? ((idx === parseInt(this.state.channelStatistics.index)) ? 'LikeCount :' + this.state.channelStatistics.val.LikeCount : (item.Statistics === undefined) ? 'LikeCount : ' + 0 : 'LikeCount : ' + item.Statistics.LikeCount) : (item.Statistics === undefined) ? 'LikeCount : ' + 0 : 'LikeCount : ' + item.Statistics.LikeCount} key={'Channel_Statistics_LikeCount_' + item.Index + '_' + idx + '_Channel-Statistics'} disabled={true}/> <TreeNode title={(((this.state.channelStatistics.val ? this.state.channelStatistics.val.DislikeCount : undefined) === undefined)) ? (item.Statistics === undefined) ? 'DislikeCount : ' + 0 : 'DislikeCount : ' + item.Statistics.DislikeCount : this.state.channelStatistics.val ? ((idx === parseInt(this.state.channelStatistics.index)) ? 'DislikeCount :' + this.state.channelStatistics.val.DislikeCount : (item.Statistics === undefined) ? 'DislikeCount : ' + 0 : 'DislikeCount : ' + item.Statistics.DislikeCount) : (item.Statistics === undefined) ? 'DislikeCount : ' + 0 : 'DislikeCount : ' + item.Statistics.DislikeCount} key={'Channel_Statistics_DislikeCount_' + item.Index + '_' + idx + '_Channel-Statistics'} disabled={true}/> <TreeNode title={(((this.state.channelStatistics.val ? this.state.channelStatistics.val.CommentCount : undefined) === undefined)) ? (item.Statistics === undefined) ? 'CommentCount : ' + 0 : 'CommentCount : ' + item.Statistics.CommentCount : this.state.channelStatistics.val ? ((idx === parseInt(this.state.channelStatistics.index)) ? 'CommentCount :' + this.state.channelStatistics.val.CommentCount : (item.Statistics === undefined) ? 'CommentCount : ' + 0 : 'CommentCount : ' + item.Statistics.CommentCount) : (item.Statistics === undefined) ? 'CommentCount : ' + 0 : 'CommentCount : ' + item.Statistics.CommentCount} key={'Channel_Statistics_CommentCount_' + item.Index + '_' + idx + '_Channel-Statistics'} disabled={true}/> </TreeNode>