Browse Source

Merge pull request #5315 from wenzhixin/fix/5312

Allowe camel case for "showButtonName" option
文翼 5 years ago
parent
commit
5c4fc23150
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -568,7 +568,7 @@ class BootstrapTable {
     ].join(' ')}">`]
 
     if (typeof opts.buttonsOrder === 'string') {
-      opts.buttonsOrder = opts.buttonsOrder.replace(/\[|\]| |'/g, '').toLowerCase().split(',')
+      opts.buttonsOrder = opts.buttonsOrder.replace(/\[|\]| |'/g, '').split(',')
     }
 
     this.buttons = Object.assign(this.buttons, {