我需要测试哪个值将返回闭包。例子:
onCell = (index) => (row, rowIndex) => ({
style: { fontWeight: 600 },
ref: rowIndex === 0 && this.cellRef(index)
})
我希望回报是
{
ref: null || this.cellRef(index)
}
慕的地10843
相关分类