@hw-component/table 1.10.9 → 1.10.11
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.
package/es/EditTable/index.js
CHANGED
|
@@ -30,7 +30,7 @@ var HEditTable = (function (_ref) {
|
|
|
30
30
|
_ref$rowKey = _ref.rowKey,
|
|
31
31
|
rowKey = _ref$rowKey === void 0 ? "id" : _ref$rowKey,
|
|
32
32
|
_ref$creatorButtonTex = _ref.creatorButtonText,
|
|
33
|
-
creatorButtonText = _ref$creatorButtonTex === void 0 ? "
|
|
33
|
+
creatorButtonText = _ref$creatorButtonTex === void 0 ? "新增一行" : _ref$creatorButtonTex,
|
|
34
34
|
_ref$recordCreatorPro = _ref.recordCreatorProps,
|
|
35
35
|
recordCreatorProps = _ref$recordCreatorPro === void 0 ? {} : _ref$recordCreatorPro,
|
|
36
36
|
_ref$defaultRecordVal = _ref.defaultRecordValue,
|
package/es/Table.js
CHANGED
|
@@ -99,8 +99,10 @@ var Table = (function (_ref) {
|
|
|
99
99
|
tableInstance: tableInstance,
|
|
100
100
|
onFinish: function onFinish(value) {
|
|
101
101
|
rowSelectionReload();
|
|
102
|
+
var size = saveParams.old.size;
|
|
102
103
|
return run(_objectSpread(_objectSpread({}, value), {}, {
|
|
103
|
-
current: 1
|
|
104
|
+
current: 1,
|
|
105
|
+
size: size
|
|
104
106
|
}));
|
|
105
107
|
},
|
|
106
108
|
selectedRowData: selectedRowData,
|
package/lib/EditTable/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var HEditTable = (function (_ref) {
|
|
|
33
33
|
_ref$rowKey = _ref.rowKey,
|
|
34
34
|
rowKey = _ref$rowKey === void 0 ? "id" : _ref$rowKey,
|
|
35
35
|
_ref$creatorButtonTex = _ref.creatorButtonText,
|
|
36
|
-
creatorButtonText = _ref$creatorButtonTex === void 0 ? "
|
|
36
|
+
creatorButtonText = _ref$creatorButtonTex === void 0 ? "新增一行" : _ref$creatorButtonTex,
|
|
37
37
|
_ref$recordCreatorPro = _ref.recordCreatorProps,
|
|
38
38
|
recordCreatorProps = _ref$recordCreatorPro === void 0 ? {} : _ref$recordCreatorPro,
|
|
39
39
|
_ref$defaultRecordVal = _ref.defaultRecordValue,
|
package/lib/Table.js
CHANGED
|
@@ -102,8 +102,10 @@ var Table = (function (_ref) {
|
|
|
102
102
|
tableInstance: tableInstance,
|
|
103
103
|
onFinish: function onFinish(value) {
|
|
104
104
|
rowSelectionReload();
|
|
105
|
+
var size = saveParams.old.size;
|
|
105
106
|
return run(_objectSpread(_objectSpread({}, value), {}, {
|
|
106
|
-
current: 1
|
|
107
|
+
current: 1,
|
|
108
|
+
size: size
|
|
107
109
|
}));
|
|
108
110
|
},
|
|
109
111
|
selectedRowData: selectedRowData,
|
package/package.json
CHANGED
package/src/components/Table.tsx
CHANGED
|
@@ -74,7 +74,8 @@ export default ({
|
|
|
74
74
|
tableInstance={tableInstance}
|
|
75
75
|
onFinish={(value) => {
|
|
76
76
|
rowSelectionReload();
|
|
77
|
-
|
|
77
|
+
const {size}=(saveParams.old as Record<string, any>);
|
|
78
|
+
return run({ ...value, current: 1 ,size});
|
|
78
79
|
}}
|
|
79
80
|
selectedRowData={selectedRowData}
|
|
80
81
|
rowOnChange={rowOnChange}
|
|
@@ -155,11 +155,11 @@ export default () => {
|
|
|
155
155
|
num++;
|
|
156
156
|
dialogTable.show({
|
|
157
157
|
title: "3333",
|
|
158
|
-
dataSource: [
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
],
|
|
158
|
+
// dataSource: [
|
|
159
|
+
// ...maker(`第${num}一页`),
|
|
160
|
+
// ...maker("第二页"),
|
|
161
|
+
// ...maker("第三页"),
|
|
162
|
+
// ],
|
|
163
163
|
});
|
|
164
164
|
}}
|
|
165
165
|
>
|
|
@@ -167,6 +167,9 @@ export default () => {
|
|
|
167
167
|
</Button>
|
|
168
168
|
<HDwTable
|
|
169
169
|
dialogTable={dialogTable}
|
|
170
|
+
request={(value)=>{
|
|
171
|
+
console.log(value)
|
|
172
|
+
}}
|
|
170
173
|
width={1200}
|
|
171
174
|
configData={configData}
|
|
172
175
|
tableProps={{
|