/**
 * ldesign v0.2.12
 * (c) 2022/10/31 17:53 built by swimly
 * @license MIT
 */

import { a as isFunction_1 } from './dep-0f9c2f6d.js';
import { i as isNumber_1 } from './dep-01d054f0.js';
import './dep-9f8e59f9.js';

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

export { getColWidthAttr as g, isRowSelectedDisabled as i };
//# sourceMappingURL=dep-f1f5c702.js.map
