UNPKG

antd-fx67ll-test

Version:

这是一个测试着玩的私服antd项目,完全照抄v4.16.6的antd源码,请勿使用,仅做发布测试(因每次发布必须要升版本,如发现版本出入请忽略,与官方无关)

21 lines (18 loc) 549 B
export function getColumnKey(column, defaultKey) { if ('key' in column && column.key !== undefined && column.key !== null) { return column.key; } if (column.dataIndex) { return Array.isArray(column.dataIndex) ? column.dataIndex.join('.') : column.dataIndex; } return defaultKey; } export function getColumnPos(index, pos) { return pos ? "".concat(pos, "-").concat(index) : "".concat(index); } export function renderColumnTitle(title, props) { if (typeof title === 'function') { return title(props); } return title; }