easy3wui 4.0.28-beta1 → 4.0.28-beta2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1185,7 +1185,7 @@ var Easy3wFormPage = function (_Component) {
1185
1185
 
1186
1186
  var maxlength = void 0;
1187
1187
  if (!cmptPros || cmptPros && !cmptPros.rows) {
1188
- cmptPros = (0, _extends3['default'])({}, cmptPros, { autosize: true });
1188
+ cmptPros = (0, _extends3['default'])({}, cmptPros, { autoSize: true });
1189
1189
  }
1190
1190
  if (cmptPros && (cmptPros.maxLength || cmptPros.maxlength)) {
1191
1191
  maxlength = cmptPros.maxLength || cmptPros.maxlength;
@@ -51,11 +51,14 @@ var Easy3wGridTextArea = function (_Component) {
51
51
  fieldId = _props.fieldId,
52
52
  value = _props.value,
53
53
  form = _props.form,
54
- cmptPros = _props.cmptPros,
55
54
  required = _props.required,
56
55
  label = _props.label;
56
+ var cmptPros = this.props.cmptPros;
57
57
  var getFieldDecorator = form.getFieldDecorator;
58
58
 
59
+ if (!cmptPros || cmptPros && !cmptPros.rows) {
60
+ cmptPros = (0, _extends3['default'])({}, cmptPros, { autoSize: true });
61
+ }
59
62
  return _react2['default'].createElement(
60
63
  _compatible.Form.Item,
61
64
  { style: { marginBottom: 0 } },
@@ -1205,7 +1205,7 @@ var Easy3wNewFormPage = function (_Component) {
1205
1205
 
1206
1206
  var maxlength = void 0;
1207
1207
  if (!cmptPros || cmptPros && !cmptPros.rows) {
1208
- cmptPros = (0, _extends3['default'])({}, cmptPros, { autosize: true });
1208
+ cmptPros = (0, _extends3['default'])({}, cmptPros, { autoSize: true });
1209
1209
  }
1210
1210
  if (cmptPros && (cmptPros.maxLength || cmptPros.maxlength)) {
1211
1211
  maxlength = cmptPros.maxLength || cmptPros.maxlength;
@@ -51,10 +51,13 @@ var Easy3wNewGridTextArea = function (_Component) {
51
51
  Easy3wNewGridTextArea.prototype.render = function render() {
52
52
  var _props = this.props,
53
53
  fieldId = _props.fieldId,
54
- cmptPros = _props.cmptPros,
55
54
  required = _props.required,
56
55
  label = _props.label;
56
+ var cmptPros = this.props.cmptPros;
57
57
 
58
+ if (!cmptPros || cmptPros && !cmptPros.rows) {
59
+ cmptPros = (0, _extends3['default'])({}, cmptPros, { autoSize: true });
60
+ }
58
61
  return _react2['default'].createElement(
59
62
  _form2['default'].Item,
60
63
  { style: { marginBottom: 0 }, name: fieldId, rules: [{ required: required, message: '\u8BF7\u586B\u5199' + label }] },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "4.0.28-beta1",
3
+ "version": "4.0.28-beta2",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",