@apexcura/ui-components 0.0.12-Beta3 → 0.0.12-Beta4
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/dist/index.js +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -387,7 +387,6 @@ var AddMoreTable = (props) => {
|
|
|
387
387
|
const dataSource = tbody && tbody.length > 0 ? tbody.map((eachRow, index) => {
|
|
388
388
|
const rowElements = {};
|
|
389
389
|
if (eachRow.element && eachRow.label) {
|
|
390
|
-
rowElements[eachRow.id] = String(index);
|
|
391
390
|
rowElements[eachRow.label] = renderInputElement(eachRow);
|
|
392
391
|
}
|
|
393
392
|
const variableData = eachRow.variable_data && Array.isArray(eachRow.variable_data) ? eachRow.variable_data.reduce((acc, curr) => {
|
|
@@ -400,12 +399,16 @@ var AddMoreTable = (props) => {
|
|
|
400
399
|
}, {}) : {};
|
|
401
400
|
return {
|
|
402
401
|
key: index.toString(),
|
|
402
|
+
"#": index + 1,
|
|
403
403
|
...eachRow,
|
|
404
404
|
...rowElements,
|
|
405
405
|
...variableData
|
|
406
406
|
};
|
|
407
407
|
}) : [];
|
|
408
|
-
|
|
408
|
+
if (!columns.some(
|
|
409
|
+
(col) => console.log("col", col)
|
|
410
|
+
)) {
|
|
411
|
+
}
|
|
409
412
|
return /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, /* @__PURE__ */ import_react13.default.createElement(
|
|
410
413
|
import_antd11.Table,
|
|
411
414
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -340,7 +340,6 @@ var AddMoreTable = (props) => {
|
|
|
340
340
|
const dataSource = tbody && tbody.length > 0 ? tbody.map((eachRow, index) => {
|
|
341
341
|
const rowElements = {};
|
|
342
342
|
if (eachRow.element && eachRow.label) {
|
|
343
|
-
rowElements[eachRow.id] = String(index);
|
|
344
343
|
rowElements[eachRow.label] = renderInputElement(eachRow);
|
|
345
344
|
}
|
|
346
345
|
const variableData = eachRow.variable_data && Array.isArray(eachRow.variable_data) ? eachRow.variable_data.reduce((acc, curr) => {
|
|
@@ -353,12 +352,16 @@ var AddMoreTable = (props) => {
|
|
|
353
352
|
}, {}) : {};
|
|
354
353
|
return {
|
|
355
354
|
key: index.toString(),
|
|
355
|
+
"#": index + 1,
|
|
356
356
|
...eachRow,
|
|
357
357
|
...rowElements,
|
|
358
358
|
...variableData
|
|
359
359
|
};
|
|
360
360
|
}) : [];
|
|
361
|
-
|
|
361
|
+
if (!columns.some(
|
|
362
|
+
(col) => console.log("col", col)
|
|
363
|
+
)) {
|
|
364
|
+
}
|
|
362
365
|
return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(
|
|
363
366
|
Table,
|
|
364
367
|
{
|