浏览代码

Support buttons.xyz.attributes.class

Marcel Overdijk 2 年之前
父节点
当前提交
af367076c1
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/bootstrap-table.js

+ 3 - 0
src/bootstrap-table.js

@@ -754,6 +754,9 @@ class BootstrapTable {
 
         if (buttonConfig.hasOwnProperty('attributes')) {
           for (const [attributeName, value] of Object.entries(buttonConfig.attributes)) {
+            if (attributeName === 'class') {
+              continue
+            }
             buttonHtml += ` ${attributeName}="${value}"`
           }
         }