@apexcura/ui-components 0.0.11-Beta66 → 0.0.11-Beta68
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 +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -446,13 +446,15 @@ var AddMoreTable = (props) => {
|
|
|
446
446
|
}
|
|
447
447
|
};
|
|
448
448
|
const dataSource = rows.map((eachRow, index) => {
|
|
449
|
+
console.log("eachrow---------", eachRow);
|
|
449
450
|
const rowData = {
|
|
450
451
|
key: eachRow.id.toString(),
|
|
451
452
|
"#": index + 1,
|
|
452
|
-
Medicine: renderInputElement({
|
|
453
|
+
"Medicine": renderInputElement({
|
|
453
454
|
element: eachRow.element,
|
|
454
455
|
label: eachRow.label
|
|
455
456
|
}),
|
|
457
|
+
subRows: "",
|
|
456
458
|
actions: /* @__PURE__ */ import_react13.default.createElement("div", null, /* @__PURE__ */ import_react13.default.createElement(import_antd11.Button, { onClick: () => onHandleDelete(eachRow.id) }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.DeleteOutlined, null)), index === rows.length - 1 && /* @__PURE__ */ import_react13.default.createElement(import_antd11.Button, { onClick: onHandleRows }, /* @__PURE__ */ import_react13.default.createElement(import_icons2.PlusOutlined, null)))
|
|
457
459
|
};
|
|
458
460
|
const subRows = eachRow.variable_data.map((variable, subIndex) => ({
|
|
@@ -465,7 +467,7 @@ var AddMoreTable = (props) => {
|
|
|
465
467
|
}
|
|
466
468
|
}))
|
|
467
469
|
}));
|
|
468
|
-
return [rowData, ...subRows];
|
|
470
|
+
return [rowData, ...subRows.map((subRow) => ({ ...subRow, "#": "", "Medicine": "", "actions": "" })), rowData];
|
|
469
471
|
}).flat();
|
|
470
472
|
if (!columns.some((col) => col.dataIndex === "actions")) {
|
|
471
473
|
columns.push({
|
package/dist/index.mjs
CHANGED
|
@@ -399,13 +399,15 @@ var AddMoreTable = (props) => {
|
|
|
399
399
|
}
|
|
400
400
|
};
|
|
401
401
|
const dataSource = rows.map((eachRow, index) => {
|
|
402
|
+
console.log("eachrow---------", eachRow);
|
|
402
403
|
const rowData = {
|
|
403
404
|
key: eachRow.id.toString(),
|
|
404
405
|
"#": index + 1,
|
|
405
|
-
Medicine: renderInputElement({
|
|
406
|
+
"Medicine": renderInputElement({
|
|
406
407
|
element: eachRow.element,
|
|
407
408
|
label: eachRow.label
|
|
408
409
|
}),
|
|
410
|
+
subRows: "",
|
|
409
411
|
actions: /* @__PURE__ */ React12.createElement("div", null, /* @__PURE__ */ React12.createElement(Button3, { onClick: () => onHandleDelete(eachRow.id) }, /* @__PURE__ */ React12.createElement(DeleteOutlined, null)), index === rows.length - 1 && /* @__PURE__ */ React12.createElement(Button3, { onClick: onHandleRows }, /* @__PURE__ */ React12.createElement(PlusOutlined, null)))
|
|
410
412
|
};
|
|
411
413
|
const subRows = eachRow.variable_data.map((variable, subIndex) => ({
|
|
@@ -418,7 +420,7 @@ var AddMoreTable = (props) => {
|
|
|
418
420
|
}
|
|
419
421
|
}))
|
|
420
422
|
}));
|
|
421
|
-
return [rowData, ...subRows];
|
|
423
|
+
return [rowData, ...subRows.map((subRow) => ({ ...subRow, "#": "", "Medicine": "", "actions": "" })), rowData];
|
|
422
424
|
}).flat();
|
|
423
425
|
if (!columns.some((col) => col.dataIndex === "actions")) {
|
|
424
426
|
columns.push({
|