@apexcura/ui-components 0.0.14-Beta3 → 0.0.14-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 +7 -1
- package/dist/index.mjs +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -667,6 +667,11 @@ var TableElement = (props) => {
|
|
|
667
667
|
dataIndex: "#",
|
|
668
668
|
key: "#"
|
|
669
669
|
},
|
|
670
|
+
{
|
|
671
|
+
title: "View",
|
|
672
|
+
dataIndex: "View",
|
|
673
|
+
key: "View"
|
|
674
|
+
},
|
|
670
675
|
...thead.map((col, ind) => ({
|
|
671
676
|
title: col.label,
|
|
672
677
|
dataIndex: col.name,
|
|
@@ -686,7 +691,8 @@ var TableElement = (props) => {
|
|
|
686
691
|
}
|
|
687
692
|
const dataSource = tbody && tbody.map((row, index) => ({
|
|
688
693
|
...row,
|
|
689
|
-
[columns[0].key]: index + 1
|
|
694
|
+
[columns[0].key]: index + 1,
|
|
695
|
+
[columns[-1].key]: "View"
|
|
690
696
|
}));
|
|
691
697
|
const count = dataSource ? dataSource.length : 0;
|
|
692
698
|
const onChangePage = (page, pageSize) => {
|
package/dist/index.mjs
CHANGED
|
@@ -610,6 +610,11 @@ var TableElement = (props) => {
|
|
|
610
610
|
dataIndex: "#",
|
|
611
611
|
key: "#"
|
|
612
612
|
},
|
|
613
|
+
{
|
|
614
|
+
title: "View",
|
|
615
|
+
dataIndex: "View",
|
|
616
|
+
key: "View"
|
|
617
|
+
},
|
|
613
618
|
...thead.map((col, ind) => ({
|
|
614
619
|
title: col.label,
|
|
615
620
|
dataIndex: col.name,
|
|
@@ -629,7 +634,8 @@ var TableElement = (props) => {
|
|
|
629
634
|
}
|
|
630
635
|
const dataSource = tbody && tbody.map((row, index) => ({
|
|
631
636
|
...row,
|
|
632
|
-
[columns[0].key]: index + 1
|
|
637
|
+
[columns[0].key]: index + 1,
|
|
638
|
+
[columns[-1].key]: "View"
|
|
633
639
|
}));
|
|
634
640
|
const count = dataSource ? dataSource.length : 0;
|
|
635
641
|
const onChangePage = (page, pageSize) => {
|