/**
 * ldesign v0.2.14
 * (c) 2022/11/2 16:16 built by swimly
 * @license MIT
 */

'use strict';

var isFunction91acade7 = require('./isFunction-91acade7.js');
var isNumberC4eb560e = require('./isNumber-c4eb560e.js');
require('./isObjectLike-c22c7e3b.js');

function isRowSelectedDisabled(selectColumn, row, rowIndex) {
  var disabled = isFunction91acade7.isFunction_1(selectColumn.disabled) ? selectColumn.disabled({
    row,
    rowIndex
  }) : selectColumn.disabled;
  if (selectColumn.checkProps) {
    if (isFunction91acade7.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 isNumberC4eb560e.isNumber_1(attr) ? attr : parseFloat(attr);
}

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