ztxkui 4.2.23-572 → 4.2.23-573
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.
|
@@ -325,6 +325,24 @@ function useColumns(tableHandleRef) {
|
|
|
325
325
|
required: true,
|
|
326
326
|
render: function (text) { return (text ? exactRound(text, quantity_precision) : text); },
|
|
327
327
|
},
|
|
328
|
+
{
|
|
329
|
+
title: i18next.t('本次运输件数'),
|
|
330
|
+
align: 'center',
|
|
331
|
+
width: 120,
|
|
332
|
+
dataIndex: 'transportNumber',
|
|
333
|
+
key: 'transportNumber',
|
|
334
|
+
required: true,
|
|
335
|
+
editable: true,
|
|
336
|
+
editableConfig: {
|
|
337
|
+
type: 'inputNumber',
|
|
338
|
+
placeholder: i18next.t('输入'),
|
|
339
|
+
minHandle: function (record) { return 0; },
|
|
340
|
+
disabledHandle: function (record) { return true; },
|
|
341
|
+
},
|
|
342
|
+
render: function () {
|
|
343
|
+
return React.createElement("div", null, "123123");
|
|
344
|
+
},
|
|
345
|
+
},
|
|
328
346
|
];
|
|
329
347
|
useEffect(function () {
|
|
330
348
|
setTimeout(function () {
|
package/dist/UI/Table/data.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export declare const data2: {
|
|
|
24
24
|
test3: string;
|
|
25
25
|
taxRate: string;
|
|
26
26
|
valuationQuantity: number;
|
|
27
|
+
transportNumber: number;
|
|
27
28
|
}[];
|
|
28
29
|
export declare const data3: {
|
|
29
30
|
id: string;
|
|
@@ -35,4 +36,5 @@ export declare const data3: {
|
|
|
35
36
|
test3: string;
|
|
36
37
|
taxRate: string;
|
|
37
38
|
valuationQuantity: number;
|
|
39
|
+
transportNumber: number;
|
|
38
40
|
}[];
|
package/dist/UI/Table/data.js
CHANGED
|
@@ -106,13 +106,13 @@ var TableMenu = function (_a) {
|
|
|
106
106
|
var recordItem = (_b = (_a = dataSourceRef.current) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b[recordIndex];
|
|
107
107
|
var currentRecord = recordItem || record;
|
|
108
108
|
var renderItem = null;
|
|
109
|
-
if (item.
|
|
110
|
-
renderItem = item.render(currentRecord[item.key], currentRecord, recordIndex);
|
|
111
|
-
}
|
|
112
|
-
else if (item.editable) {
|
|
109
|
+
if (item.editable && onEditableSave) {
|
|
113
110
|
var onCellItem = item.onCell(currentRecord, recordIndex);
|
|
114
111
|
renderItem = React.createElement(TableEnhanceCell, __assign({}, onCellItem, { noTdWrap: true }));
|
|
115
112
|
}
|
|
113
|
+
else if (item.render) {
|
|
114
|
+
renderItem = item.render(currentRecord[item.key], currentRecord, recordIndex);
|
|
115
|
+
}
|
|
116
116
|
else {
|
|
117
117
|
renderItem = (React.createElement("span", { title: currentRecord[item.key] }, currentRecord[item.key]));
|
|
118
118
|
}
|