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>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值