欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

antd之1.5米长三元表达式

程序员文章站 2022-04-05 11:05:04
...
{/*预留*/}
<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>
相关标签: antd