mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-09 11: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.limit = options.limit || 15;
|
||||||
options.limits = options.limits || [10, 15, 20, 25, 50, 100];
|
options.limits = options.limits || [10, 15, 20, 25, 50, 100];
|
||||||
options.cols = options.cols || [];
|
options.cols = options.cols || [];
|
||||||
options.defaultToolbar = (options.defaultToolbar === undefined && !options.search) ? ['filter', 'print'] : ['filter', 'print', {
|
if (options.defaultToolbar !== false) {
|
||||||
title: '搜索',
|
options.defaultToolbar = (options.defaultToolbar === undefined && !options.search) ? ['filter', 'print'] : ['filter', 'print', {
|
||||||
layEvent: 'TABLE_SEARCH',
|
title: '搜索',
|
||||||
icon: 'layui-icon-search',
|
layEvent: 'TABLE_SEARCH',
|
||||||
extend: 'data-table-id="' + options.id + '"'
|
icon: 'layui-icon-search',
|
||||||
}];
|
extend: 'data-table-id="' + options.id + '"'
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
|
||||||
var table2card = function () {
|
var table2card = function () {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user