fan-standard-comp 3.2.6 → 3.2.8

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.
@@ -112,13 +112,7 @@ var FieldComponent = /*#__PURE__*/React.forwardRef(function (props, ref) {
112
112
  placeholder: fieldStatus === 'disabled' || defaultProps.disabled ? '' : defaultProps.placeholder || placeholder || '请输入',
113
113
  autoComplete: "off",
114
114
  title: fieldStatus === 'disabled' || defaultProps.disabled ? value : null,
115
- maxLength: defaultProps.maxLength || 50,
116
- onKeyDown: function onKeyDown(evt) {
117
- if (evt.key === 'Enter') {
118
- // 表单只有一个输入框时,焦点定到输入框后按下Enter会触发提交事件
119
- evt.preventDefault(); // 禁止默认行为
120
- }
121
- }
115
+ maxLength: defaultProps.maxLength || 50
122
116
  }, defaultProps)));
123
117
  break;
124
118
  case 'password':
@@ -122,13 +122,7 @@ var FieldComponent = /*#__PURE__*/_react.default.forwardRef(function (props, ref
122
122
  placeholder: fieldStatus === 'disabled' || defaultProps.disabled ? '' : defaultProps.placeholder || placeholder || '请输入',
123
123
  autoComplete: "off",
124
124
  title: fieldStatus === 'disabled' || defaultProps.disabled ? value : null,
125
- maxLength: defaultProps.maxLength || 50,
126
- onKeyDown: function onKeyDown(evt) {
127
- if (evt.key === 'Enter') {
128
- // 表单只有一个输入框时,焦点定到输入框后按下Enter会触发提交事件
129
- evt.preventDefault(); // 禁止默认行为
130
- }
131
- }
125
+ maxLength: defaultProps.maxLength || 50
132
126
  }, defaultProps)));
133
127
  break;
134
128
  case 'password':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fan-standard-comp",
3
- "version": "3.2.6",
3
+ "version": "3.2.8",
4
4
  "description": "FZ standard-comp,basic of antd4.0 and custom component.",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -21,7 +21,7 @@
21
21
  "package:build:publish": "father-build && webpack && npm version patch && npm publish",
22
22
  "package:build:no-dist:publish": "father-build && npm version patch && npm publish",
23
23
  "build:package:to-rgz": "npm run package:build && node copyPackage.js && npm run package-to-tgz",
24
- "package-to-tgz": "tar -czf fan-standard-comp-3.2.6.tgz package",
24
+ "package-to-tgz": "tar -czf fan-standard-comp-3.2.8.tgz package",
25
25
  "doc-to-tgz": "tar -czf doc-v3.zip doc-v3"
26
26
  },
27
27
  "author": "shomychen",
@@ -52,8 +52,5 @@
52
52
  "react-html-parser": "^2.0.2",
53
53
  "style-loader": "1.3.0",
54
54
  "webpack": "4.44.1"
55
- },
56
- "engines": {
57
- "node": "=16.0.0"
58
55
  }
59
56
  }