@apexcura/ui-components 0.0.11-Beta200 → 0.0.11-Beta201
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
|
@@ -632,11 +632,14 @@ var TableElement = (props) => {
|
|
|
632
632
|
dataIndex: "#",
|
|
633
633
|
key: "#"
|
|
634
634
|
},
|
|
635
|
-
...thead.map((col) => ({
|
|
635
|
+
...thead.map((col, ind) => ({
|
|
636
636
|
title: col.label,
|
|
637
637
|
dataIndex: col.name,
|
|
638
638
|
key: col.key,
|
|
639
|
-
sorter:
|
|
639
|
+
sorter: {
|
|
640
|
+
compare: (a, b) => a[col.key] - b[col.key],
|
|
641
|
+
multiple: thead.length - ind
|
|
642
|
+
}
|
|
640
643
|
}))
|
|
641
644
|
];
|
|
642
645
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -581,11 +581,14 @@ var TableElement = (props) => {
|
|
|
581
581
|
dataIndex: "#",
|
|
582
582
|
key: "#"
|
|
583
583
|
},
|
|
584
|
-
...thead.map((col) => ({
|
|
584
|
+
...thead.map((col, ind) => ({
|
|
585
585
|
title: col.label,
|
|
586
586
|
dataIndex: col.name,
|
|
587
587
|
key: col.key,
|
|
588
|
-
sorter:
|
|
588
|
+
sorter: {
|
|
589
|
+
compare: (a, b) => a[col.key] - b[col.key],
|
|
590
|
+
multiple: thead.length - ind
|
|
591
|
+
}
|
|
589
592
|
}))
|
|
590
593
|
];
|
|
591
594
|
}
|