column的type字段改为fieldType

This commit is contained in:
huayj 2019-08-23 09:47:07 +08:00
parent ae121eb751
commit f7bfad825a
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ export default function sort(Table, Icon) {
if (column.sorter || column.sortEnable ) {
//大于0说明不是升序就是降序判断orderNum有没有值没有值赋值
if ( column.sortEnable && !column.sorter) {
column.sorter = column.type === 'number' ? this.numberSortFn(column.dataIndex) : this.defaultSortFn(column.dataIndex);
column.sorter = column.fieldType === 'number' ? this.numberSortFn(column.dataIndex) : this.defaultSortFn(column.dataIndex);
}
if (iconTypeIndex > 0 && !column.orderNum && mode == "multiple") {
column.orderNum = this.getOrderNum();