mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
支持关闭layui的toobar
This commit is contained in:
@@ -261,12 +261,14 @@ define(["jquery", "tableSelect", "ckeditor", 'miniTheme', 'tableData', 'citypick
|
||||
options.limit = options.limit || 15;
|
||||
options.limits = options.limits || [10, 15, 20, 25, 50, 100];
|
||||
options.cols = options.cols || [];
|
||||
options.defaultToolbar = (options.defaultToolbar === undefined && !options.search) ? ['filter', 'print'] : ['filter', 'print', {
|
||||
title: '搜索',
|
||||
layEvent: 'TABLE_SEARCH',
|
||||
icon: 'layui-icon-search',
|
||||
extend: 'data-table-id="' + options.id + '"'
|
||||
}];
|
||||
if (options.defaultToolbar !== false) {
|
||||
options.defaultToolbar = (options.defaultToolbar === undefined && !options.search) ? ['filter', 'print'] : ['filter', 'print', {
|
||||
title: '搜索',
|
||||
layEvent: 'TABLE_SEARCH',
|
||||
icon: 'layui-icon-search',
|
||||
extend: 'data-table-id="' + options.id + '"'
|
||||
}];
|
||||
}
|
||||
|
||||
var table2card = function () {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user