集成表格拖拽列宽插件

pull/77/head
zhang 2018-10-10 15:37:42 +08:00
parent 544222fabb
commit 8b29f2cf1b
4 changed files with 18 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -21,6 +21,7 @@ require.config({
'adminlte': 'adminlte',
'bootstrap-table-commonsearch': 'bootstrap-table-commonsearch',
'bootstrap-table-template': 'bootstrap-table-template',
'colResizable': 'colResizable.min',
//
// 以下的包从bower的libs目录加载
'jquery': '../libs/jquery/dist/jquery.min',
@ -50,6 +51,7 @@ require.config({
'selectpage': '../libs/fastadmin-selectpage/selectpage',
'citypicker': '../libs/fastadmin-citypicker/dist/js/city-picker.min',
'citypicker-data': '../libs/fastadmin-citypicker/dist/js/city-picker.data',
},
// shim依赖配置
shim: {

View File

@ -35,6 +35,7 @@ require.config({
'adminlte': 'adminlte',
'bootstrap-table-commonsearch': 'bootstrap-table-commonsearch',
'bootstrap-table-template': 'bootstrap-table-template',
'colResizable': 'colResizable.min',
//
// 以下的包从bower的libs目录加载
'jquery': '../libs/jquery/dist/jquery.min',
@ -64,6 +65,7 @@ require.config({
'selectpage': '../libs/fastadmin-selectpage/selectpage',
'citypicker': '../libs/fastadmin-citypicker/dist/js/city-picker.min',
'citypicker-data': '../libs/fastadmin-citypicker/dist/js/city-picker.data',
},
// shim依赖配置
shim: {
@ -9651,6 +9653,9 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
placeHolderTemplate: ""
});
});
require(['colResizable'], function () {
$("table").colResizable();
});
$(table).on("click", "input[data-id][name='checkbox']", function (e) {
var ids = $(this).data("id");
var row = Table.api.getrowbyid(table, ids);

View File

@ -262,6 +262,9 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
placeHolderTemplate: ""
});
});
require(['colResizable'], function () {
$("table").colResizable();
});
$(table).on("click", "input[data-id][name='checkbox']", function (e) {
var ids = $(this).data("id");
var row = Table.api.getrowbyid(table, ids);