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 2054f37 commit 8dd4aeeCopy full SHA for 8dd4aee
packages/ve-table/src/header/header-th.jsx
@@ -119,8 +119,25 @@ export default {
119
},
120
// is last column
121
isLastCloumn() {
122
+ let result = false;
123
+
124
const { colgroups, groupColumnItem: column } = this;
- return colgroups[colgroups.length - 1].field === column.field;
125
126
+ const lastColumnKey = colgroups[colgroups.length - 1].key;
127
128
+ const keys = column._keys.split("|");
129
130
+ if (keys.length) {
131
+ if (keys.length === 1) {
132
+ if (keys[0] === lastColumnKey) {
133
+ result = true;
134
+ }
135
+ } else if (keys[keys.length - 2] === lastColumnKey) {
136
137
138
139
140
+ return result;
141
}
142
143
methods: {
0 commit comments