浏览代码

按钮配置属性extend支持function

Karson 1 年之前
父节点
当前提交
b50e6c9cf0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/assets/js/require-table.js

+ 1 - 1
public/assets/js/require-table.js

@@ -878,7 +878,7 @@ define(['jquery', 'bootstrap'], function ($, undefined) {
                         refresh = j.refresh ? 'data-refresh="' + j.refresh + '"' : '';
                         confirm = typeof j.confirm === 'function' ? j.confirm.call(table, row, j) : (typeof j.confirm !== 'undefined' ? j.confirm : false);
                         confirm = confirm ? 'data-confirm="' + confirm + '"' : '';
-                        extend = j.extend ? j.extend : '';
+                        extend = typeof j.extend === 'function' ? j.extend.call(table, row, j) : (typeof j.extend !== 'undefined' ? j.extend : '');
                         disable = typeof j.disable === 'function' ? j.disable.call(table, row, j) : (typeof j.disable !== 'undefined' ? j.disable : false);
                         if (disable) {
                             classname = classname + ' disabled';