mirror of https://github.com/layui/layui
优化 code 的 addTools 属性生效条件
parent
4838c773a9
commit
86454a3acc
|
@ -341,8 +341,8 @@ layui.define(['lay', 'util', 'element', 'form'], function(exports){
|
||||||
});
|
});
|
||||||
|
|
||||||
// 增加工具栏
|
// 增加工具栏
|
||||||
if (options.addTools) {
|
if (options.addTools && options.tools) {
|
||||||
options.tools = [].concat(options.tools || [], options.addTools);
|
options.tools = [].concat(options.tools, options.addTools);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 渲染工具栏
|
// 渲染工具栏
|
||||||
|
|
Loading…
Reference in New Issue