10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f15ea3 commit 1f14ae7Copy full SHA for 1f14ae7
src/bootstrap-table.js
@@ -85,12 +85,18 @@
85
86
setFieldIndex (columns) {
87
let totalCol = 0
88
+ const flag = []
89
90
for (const column of columns[0]) {
91
totalCol += column.colspan || 1
92
}
93
- const flag = Array(columns.length).fill(Array(totalCol).fill(false))
94
+ for (let i = 0; i < columns.length; i++) {
95
+ flag[i] = [];
96
+ for (let j = 0; j < totalCol; j++) {
97
+ flag[i][j] = false;
98
+ }
99
100
101
for (let i = 0; i < columns.length; i++) {
102
for (let j = 0; j < columns[i].length; j++) {
@@ -936,7 +942,7 @@
936
942
937
943
if (index !== -1) {
938
944
if (this.options.sortStable) {
939
- $.each(this.data, (i, row) => {
945
+ this.data.forEach(row => {
940
946
row._position = i
941
947
})
948
0 commit comments