easy3wui 1.5.46-beta3 → 1.5.46-beta5

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.
@@ -51,9 +51,10 @@ var Easy3wGridTextArea = function (_Component) {
51
51
  }
52
52
 
53
53
  return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.touchSetHeight = function () {
54
+ var fieldId = _this.props.fieldId;
54
55
  // 获取textarea元素
55
- var textarea = document.getElementById('myTextarea');
56
- console.log('kkkkkkkkkkkkkkkkkkkkkk', textarea);
56
+
57
+ var textarea = document.getElementById(fieldId);
57
58
  if (textarea) {
58
59
  // 监听输入事件
59
60
  textarea.addEventListener('input', function () {
@@ -86,8 +87,8 @@ var Easy3wGridTextArea = function (_Component) {
86
87
  form = _props.form,
87
88
  required = _props.required,
88
89
  requiredMessage = _props.requiredMessage,
89
- label = _props.label;
90
- var cmptPros = this.props.cmptPros;
90
+ label = _props.label,
91
+ cmptPros = _props.cmptPros;
91
92
  var getFieldDecorator = form.getFieldDecorator;
92
93
 
93
94
  var _ref = cmptPros || {},
@@ -96,9 +97,9 @@ var Easy3wGridTextArea = function (_Component) {
96
97
  rows = _ref.rows;
97
98
 
98
99
  var defaultMaxLength = 2000;
99
- if (!rows) {
100
- cmptPros = (0, _extends3['default'])({ autosize: { minRows: 2, maxRows: 9999 } }, cmptPros);
101
- }
100
+ // if (!rows) {
101
+ // cmptPros = { autosize: { minRows: 2, maxRows: 9999 }, ...cmptPros };
102
+ // }
102
103
  var rules = [{ required: required, message: requiredMessage || '\u8BF7\u586B\u5199' + label }, { max: maxLength || defaultMaxLength, message: '\u5F55\u5165\u6587\u5B57\u957F\u5EA6\u4E0D\u80FD\u8D85\u8FC7' + (maxLength || defaultMaxLength), transform: this.touchTransform }];
103
104
  if (disabled) {
104
105
  rules.pop();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "1.5.46-beta3",
3
+ "version": "1.5.46-beta5",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",