/**
 * ldesign v0.2.22
 * (c) 2022/12/7 16:21 built by swimly
 * @license MIT
 */

'use strict';

var isFunctionCb08cfdf = require('./isFunction-cb08cfdf.js');
var isNumber13851330 = require('./isNumber-13851330.js');
require('./isObjectLike-51896b77.js');

function isRowSelectedDisabled(selectColumn, row, rowIndex) {
  var disabled = isFunctionCb08cfdf.isFunction_1(selectColumn.disabled) ? selectColumn.disabled({
    row,
    rowIndex
  }) : selectColumn.disabled;
  if (selectColumn.checkProps) {
    if (isFunctionCb08cfdf.isFunction_1(selectColumn.checkProps)) disabled = disabled || selectColumn.checkProps({
      row,
      rowIndex
    }).disabled;else if (selectColumn.checkProps === "object") disabled = disabled || selectColumn.checkProps.disabled;
  }
  return !!disabled;
}
function getColWidthAttr(col, attrKey) {
  var attr = col[attrKey];
  return isNumber13851330.isNumber_1(attr) ? attr : parseFloat(attr);
}

exports.getColWidthAttr = getColWidthAttr;
exports.isRowSelectedDisabled = isRowSelectedDisabled;
//# sourceMappingURL=utils3.js.map
