Skip to content

Commit ce9c577

Browse files
committed
slot name generation bug fix
1 parent 67a1db9 commit ce9c577

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/Row.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
if (has(column,"slot_name")) {
169169
return column.slot_name;
170170
}
171-
return column.name.replace('.','_');
171+
return column.name.replace(/\./g,'_');
172172
}
173173
},
174174
computed: {

src/components/VueBootstrap4Table.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ export default {
840840
if (has(column,"slot_name")) {
841841
return column.slot_name;
842842
}
843-
return column.name.replace('.','_');
843+
return column.name.replace(/\./g,'_');
844844
},
845845
// row method ends here
846846
resetSort() {

0 commit comments

Comments
 (0)