import _Input from "@alifd/next/es/input";
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["row", "title", "style", "value", "InputLength", "placeholder", "defaultValue", "controlType", "isAllowNull", "isAllowUpdate", "isAllowTransmit"];
import * as React from 'react';
import "./index.scss";
var CommonLargeText = function CommonLargeText(_ref) {
  var row = _ref.row,
    title = _ref.title,
    _ref$style = _ref.style,
    style = _ref$style === void 0 ? {} : _ref$style,
    value = _ref.value,
    InputLength = _ref.InputLength,
    placeholder = _ref.placeholder,
    defaultValue = _ref.defaultValue,
    controlType = _ref.controlType,
    isAllowNull = _ref.isAllowNull,
    isAllowUpdate = _ref.isAllowUpdate,
    isAllowTransmit = _ref.isAllowTransmit,
    otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
  React.useEffect(function () {
    console.log(defaultValue);
  }, [defaultValue]);
  var _style = style || {};
  var _otherProps = otherProps || {};
  _otherProps.style = _style;
  return /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'inline-block'
    }
  }, /*#__PURE__*/React.createElement("span", {
    style: {
      marginRight: 5
    }
  }, title, ":"), /*#__PURE__*/React.createElement(_Input.TextArea, _extends({
    style: style,
    label: title,
    defaultValue: defaultValue,
    rows: row,
    readOnly: isAllowUpdate,
    placeholder: placeholder,
    maxLength: InputLength
  }, _otherProps)));
};
export default CommonLargeText;