// 矫正formatter
function externalFormatter(val, _ref) {
  var formatter = _ref.formatter;
  if (typeof formatter === 'function') {
    var formatterValue = formatter(val);
    if (typeof formatterValue === 'string' || typeof formatterValue === 'number') {
      // eslint-disable-next-line
      val = formatterValue;
    }
  }
  return val;
}
export default externalFormatter;