@apexcura/ui-components 0.0.14-Beta172 → 0.0.14-Beta173
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 +10 -4
- package/dist/index.mjs +10 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -832,7 +832,11 @@ var TableElement = (props) => {
|
|
|
832
832
|
};
|
|
833
833
|
const rowSelectionConfig = props.rowSelection ? {
|
|
834
834
|
onChange: (selectedRowKeys, selectedRows) => {
|
|
835
|
-
console.log(
|
|
835
|
+
console.log(
|
|
836
|
+
`selectedRowKeys: ${selectedRowKeys}`,
|
|
837
|
+
"selectedRows: ",
|
|
838
|
+
selectedRows
|
|
839
|
+
);
|
|
836
840
|
if (props.onChange) {
|
|
837
841
|
props.onChange(selectedRows);
|
|
838
842
|
}
|
|
@@ -851,9 +855,11 @@ var TableElement = (props) => {
|
|
|
851
855
|
onRow: (record) => {
|
|
852
856
|
return {
|
|
853
857
|
onClick: () => {
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
858
|
+
if (props.view) {
|
|
859
|
+
setSelectedRecord(record);
|
|
860
|
+
handleChange(record);
|
|
861
|
+
setModel(true);
|
|
862
|
+
}
|
|
857
863
|
},
|
|
858
864
|
style: { cursor: "pointer" }
|
|
859
865
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -766,7 +766,11 @@ var TableElement = (props) => {
|
|
|
766
766
|
};
|
|
767
767
|
const rowSelectionConfig = props.rowSelection ? {
|
|
768
768
|
onChange: (selectedRowKeys, selectedRows) => {
|
|
769
|
-
console.log(
|
|
769
|
+
console.log(
|
|
770
|
+
`selectedRowKeys: ${selectedRowKeys}`,
|
|
771
|
+
"selectedRows: ",
|
|
772
|
+
selectedRows
|
|
773
|
+
);
|
|
770
774
|
if (props.onChange) {
|
|
771
775
|
props.onChange(selectedRows);
|
|
772
776
|
}
|
|
@@ -785,9 +789,11 @@ var TableElement = (props) => {
|
|
|
785
789
|
onRow: (record) => {
|
|
786
790
|
return {
|
|
787
791
|
onClick: () => {
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
792
|
+
if (props.view) {
|
|
793
|
+
setSelectedRecord(record);
|
|
794
|
+
handleChange(record);
|
|
795
|
+
setModel(true);
|
|
796
|
+
}
|
|
791
797
|
},
|
|
792
798
|
style: { cursor: "pointer" }
|
|
793
799
|
};
|