mirror of https://gitee.com/karson/fastadmin.git
按钮配置属性extend支持function
parent
4b4d4493aa
commit
bfd3737b28
|
|
@ -882,7 +882,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
|
|||
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';
|
||||
|
|
|
|||
Loading…
Reference in New Issue