@apexcura/ui-components 0.0.11-Beta7 → 0.0.11-Beta8
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 +1 -3
- package/dist/index.mjs +1 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -363,8 +363,6 @@ var import_react13 = __toESM(require("react"));
|
|
|
363
363
|
var import_antd11 = require("antd");
|
|
364
364
|
var AddMoreTable = (props) => {
|
|
365
365
|
const { thead, tbody } = props;
|
|
366
|
-
console.log("-----------tbody", tbody);
|
|
367
|
-
console.log("..........thead", thead);
|
|
368
366
|
const [tableData, setTableData] = (0, import_react13.useState)({});
|
|
369
367
|
const onHandleChange = (name, value) => {
|
|
370
368
|
setTableData((prev) => ({ ...prev, [name]: value }));
|
|
@@ -386,7 +384,6 @@ var AddMoreTable = (props) => {
|
|
|
386
384
|
}
|
|
387
385
|
};
|
|
388
386
|
const dataSource = tbody && tbody.length > 0 ? tbody.map((eachRow, index) => {
|
|
389
|
-
console.log("eachRow---------", eachRow);
|
|
390
387
|
const variableData = eachRow.variable_data.reduce((acc, curr) => {
|
|
391
388
|
acc[curr.label] = renderInputElement(curr);
|
|
392
389
|
return acc;
|
|
@@ -397,6 +394,7 @@ var AddMoreTable = (props) => {
|
|
|
397
394
|
...variableData
|
|
398
395
|
};
|
|
399
396
|
}) : [];
|
|
397
|
+
console.log("dataSource.........", dataSource);
|
|
400
398
|
return /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, /* @__PURE__ */ import_react13.default.createElement(
|
|
401
399
|
import_antd11.Table,
|
|
402
400
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -316,8 +316,6 @@ import React12, { useState as useState3 } from "react";
|
|
|
316
316
|
import { Table } from "antd";
|
|
317
317
|
var AddMoreTable = (props) => {
|
|
318
318
|
const { thead, tbody } = props;
|
|
319
|
-
console.log("-----------tbody", tbody);
|
|
320
|
-
console.log("..........thead", thead);
|
|
321
319
|
const [tableData, setTableData] = useState3({});
|
|
322
320
|
const onHandleChange = (name, value) => {
|
|
323
321
|
setTableData((prev) => ({ ...prev, [name]: value }));
|
|
@@ -339,7 +337,6 @@ var AddMoreTable = (props) => {
|
|
|
339
337
|
}
|
|
340
338
|
};
|
|
341
339
|
const dataSource = tbody && tbody.length > 0 ? tbody.map((eachRow, index) => {
|
|
342
|
-
console.log("eachRow---------", eachRow);
|
|
343
340
|
const variableData = eachRow.variable_data.reduce((acc, curr) => {
|
|
344
341
|
acc[curr.label] = renderInputElement(curr);
|
|
345
342
|
return acc;
|
|
@@ -350,6 +347,7 @@ var AddMoreTable = (props) => {
|
|
|
350
347
|
...variableData
|
|
351
348
|
};
|
|
352
349
|
}) : [];
|
|
350
|
+
console.log("dataSource.........", dataSource);
|
|
353
351
|
return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(
|
|
354
352
|
Table,
|
|
355
353
|
{
|