Skip to content
This repository was archived by the owner on Apr 1, 2022. It is now read-only.

Commit f8f1b19

Browse files
author
Ken Berkeley
committed
[improve] HeaderSettings ignores columns without label or title
1 parent bc8e0e4 commit f8f1b19

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

dist/min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212

1313
<script src="//unpkg.com/jquery@2.1.4/dist/jquery.min.js"></script>
1414
<script src="//unpkg.com/bootstrap@3.3.5/dist/js/bootstrap.min.js"></script>
15-
<script type="text/javascript" src="client.c09d43eb.js"></script></body>
15+
<script type="text/javascript" src="client.1e46594b.js"></script></body>
1616
</html>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue2-datatable-component",
33
"description": "The best Datatable for Vue.js 2.x which never sucks",
4-
"version": "2.1.16",
4+
"version": "2.1.17",
55
"main": "dist/min.js",
66
"module": "src/main.js",
77
"author": "Ken Berkeley <kenberkeley@foxmail.com>",

src/HeaderSettings/index.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ export default {
9191
},
9292
computed: {
9393
colGroups () {
94-
return groupBy(this.columns, 'group')
94+
return groupBy(
95+
this.columns.filter(col => col.label || col.title),
96+
'group'
97+
)
9598
},
9699
drpMenuStyle () {
97100
const w = Object.keys(this.colGroups).length * 150

0 commit comments

Comments
 (0)