tntd 1.3.60 → 1.3.62
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PureComponent } from 'react';
|
|
1
2
|
import { Form } from 'antd';
|
|
2
3
|
import { get } from 'lodash';
|
|
3
4
|
import fieldsMap, { getFieldWidth } from './fieldsMap';
|
|
@@ -6,7 +7,7 @@ const FormItem = Form.Item;
|
|
|
6
7
|
|
|
7
8
|
const isInput = type => ['input', 'string', 'search'].includes(type);
|
|
8
9
|
|
|
9
|
-
export default class Field extends
|
|
10
|
+
export default class Field extends PureComponent {
|
|
10
11
|
constructor(props) {
|
|
11
12
|
super(props);
|
|
12
13
|
|
|
@@ -9,6 +9,8 @@ require("antd/es/form/style");
|
|
|
9
9
|
|
|
10
10
|
var _form = _interopRequireDefault(require("antd/es/form"));
|
|
11
11
|
|
|
12
|
+
var _react = require("react");
|
|
13
|
+
|
|
12
14
|
var _lodash = require("lodash");
|
|
13
15
|
|
|
14
16
|
var _fieldsMap = _interopRequireWildcard(require("./fieldsMap"));
|
|
@@ -53,8 +55,8 @@ var isInput = function isInput(type) {
|
|
|
53
55
|
|
|
54
56
|
var Field =
|
|
55
57
|
/*#__PURE__*/
|
|
56
|
-
function (
|
|
57
|
-
_inherits(Field,
|
|
58
|
+
function (_PureComponent) {
|
|
59
|
+
_inherits(Field, _PureComponent);
|
|
58
60
|
|
|
59
61
|
function Field(props) {
|
|
60
62
|
var _this;
|
|
@@ -167,6 +169,6 @@ function (_React$PureComponent) {
|
|
|
167
169
|
}]);
|
|
168
170
|
|
|
169
171
|
return Field;
|
|
170
|
-
}(
|
|
172
|
+
}(_react.PureComponent);
|
|
171
173
|
|
|
172
174
|
exports["default"] = Field;
|
package/package.json
CHANGED