@hw-component/table 1.9.98 → 1.10.0

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.
@@ -32,9 +32,10 @@ var EditTable = (function (_ref) {
32
32
  _ref$creatorButtonTex = _ref.creatorButtonText,
33
33
  creatorButtonText = _ref$creatorButtonTex === void 0 ? "新增一列" : _ref$creatorButtonTex,
34
34
  _ref$recordCreatorPro = _ref.recordCreatorProps,
35
- recordCreatorProps = _ref$recordCreatorPro === void 0 ? {} : _ref$recordCreatorPro;
36
- _ref.defaultRecordValue;
37
- var pagination = _ref.pagination,
35
+ recordCreatorProps = _ref$recordCreatorPro === void 0 ? {} : _ref$recordCreatorPro,
36
+ _ref$defaultRecordVal = _ref.defaultRecordValue,
37
+ defaultRecordValue = _ref$defaultRecordVal === void 0 ? {} : _ref$defaultRecordVal,
38
+ pagination = _ref.pagination,
38
39
  _ref$editable = _ref.editable,
39
40
  editable = _ref$editable === void 0 ? {} : _ref$editable,
40
41
  dataSource = _ref.dataSource,
@@ -99,9 +100,9 @@ var EditTable = (function (_ref) {
99
100
  recordCreatorProps: _objectSpread({
100
101
  position: "bottom",
101
102
  record: function record() {
102
- return {
103
+ return _objectSpread({
103
104
  id: "add"
104
- };
105
+ }, defaultRecordValue);
105
106
  },
106
107
  creatorButtonText: creatorButtonText
107
108
  }, recordCreatorProps),
@@ -35,9 +35,10 @@ var EditTable = (function (_ref) {
35
35
  _ref$creatorButtonTex = _ref.creatorButtonText,
36
36
  creatorButtonText = _ref$creatorButtonTex === void 0 ? "新增一列" : _ref$creatorButtonTex,
37
37
  _ref$recordCreatorPro = _ref.recordCreatorProps,
38
- recordCreatorProps = _ref$recordCreatorPro === void 0 ? {} : _ref$recordCreatorPro;
39
- _ref.defaultRecordValue;
40
- var pagination = _ref.pagination,
38
+ recordCreatorProps = _ref$recordCreatorPro === void 0 ? {} : _ref$recordCreatorPro,
39
+ _ref$defaultRecordVal = _ref.defaultRecordValue,
40
+ defaultRecordValue = _ref$defaultRecordVal === void 0 ? {} : _ref$defaultRecordVal,
41
+ pagination = _ref.pagination,
41
42
  _ref$editable = _ref.editable,
42
43
  editable = _ref$editable === void 0 ? {} : _ref$editable,
43
44
  dataSource = _ref.dataSource,
@@ -102,9 +103,9 @@ var EditTable = (function (_ref) {
102
103
  recordCreatorProps: _objectSpread({
103
104
  position: "bottom",
104
105
  record: function record() {
105
- return {
106
+ return _objectSpread({
106
107
  id: "add"
107
- };
108
+ }, defaultRecordValue);
108
109
  },
109
110
  creatorButtonText: creatorButtonText
110
111
  }, recordCreatorProps),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/table",
3
- "version": "1.9.98",
3
+ "version": "1.10.0",
4
4
  "description": "基于antd二次开发table组件",
5
5
  "keywords": [
6
6
  "table"
@@ -71,7 +71,7 @@ export default ({
71
71
  value={values}
72
72
  recordCreatorProps={{
73
73
  position: "bottom",
74
- record: () => ({ id: "add" }),
74
+ record: () => ({ id: "add" ,...defaultRecordValue}),
75
75
  creatorButtonText,
76
76
  ...recordCreatorProps,
77
77
  }}