mirror of https://gitee.com/karson/fastadmin.git
集成表格拖拽列宽插件
parent
544222fabb
commit
8b29f2cf1b
File diff suppressed because one or more lines are too long
|
|
@ -21,6 +21,7 @@ require.config({
|
||||||
'adminlte': 'adminlte',
|
'adminlte': 'adminlte',
|
||||||
'bootstrap-table-commonsearch': 'bootstrap-table-commonsearch',
|
'bootstrap-table-commonsearch': 'bootstrap-table-commonsearch',
|
||||||
'bootstrap-table-template': 'bootstrap-table-template',
|
'bootstrap-table-template': 'bootstrap-table-template',
|
||||||
|
'colResizable': 'colResizable.min',
|
||||||
//
|
//
|
||||||
// 以下的包从bower的libs目录加载
|
// 以下的包从bower的libs目录加载
|
||||||
'jquery': '../libs/jquery/dist/jquery.min',
|
'jquery': '../libs/jquery/dist/jquery.min',
|
||||||
|
|
@ -50,6 +51,7 @@ require.config({
|
||||||
'selectpage': '../libs/fastadmin-selectpage/selectpage',
|
'selectpage': '../libs/fastadmin-selectpage/selectpage',
|
||||||
'citypicker': '../libs/fastadmin-citypicker/dist/js/city-picker.min',
|
'citypicker': '../libs/fastadmin-citypicker/dist/js/city-picker.min',
|
||||||
'citypicker-data': '../libs/fastadmin-citypicker/dist/js/city-picker.data',
|
'citypicker-data': '../libs/fastadmin-citypicker/dist/js/city-picker.data',
|
||||||
|
|
||||||
},
|
},
|
||||||
// shim依赖配置
|
// shim依赖配置
|
||||||
shim: {
|
shim: {
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ require.config({
|
||||||
'adminlte': 'adminlte',
|
'adminlte': 'adminlte',
|
||||||
'bootstrap-table-commonsearch': 'bootstrap-table-commonsearch',
|
'bootstrap-table-commonsearch': 'bootstrap-table-commonsearch',
|
||||||
'bootstrap-table-template': 'bootstrap-table-template',
|
'bootstrap-table-template': 'bootstrap-table-template',
|
||||||
|
'colResizable': 'colResizable.min',
|
||||||
//
|
//
|
||||||
// 以下的包从bower的libs目录加载
|
// 以下的包从bower的libs目录加载
|
||||||
'jquery': '../libs/jquery/dist/jquery.min',
|
'jquery': '../libs/jquery/dist/jquery.min',
|
||||||
|
|
@ -64,6 +65,7 @@ require.config({
|
||||||
'selectpage': '../libs/fastadmin-selectpage/selectpage',
|
'selectpage': '../libs/fastadmin-selectpage/selectpage',
|
||||||
'citypicker': '../libs/fastadmin-citypicker/dist/js/city-picker.min',
|
'citypicker': '../libs/fastadmin-citypicker/dist/js/city-picker.min',
|
||||||
'citypicker-data': '../libs/fastadmin-citypicker/dist/js/city-picker.data',
|
'citypicker-data': '../libs/fastadmin-citypicker/dist/js/city-picker.data',
|
||||||
|
|
||||||
},
|
},
|
||||||
// shim依赖配置
|
// shim依赖配置
|
||||||
shim: {
|
shim: {
|
||||||
|
|
@ -9651,6 +9653,9 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
|
||||||
placeHolderTemplate: ""
|
placeHolderTemplate: ""
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
require(['colResizable'], function () {
|
||||||
|
$("table").colResizable();
|
||||||
|
});
|
||||||
$(table).on("click", "input[data-id][name='checkbox']", function (e) {
|
$(table).on("click", "input[data-id][name='checkbox']", function (e) {
|
||||||
var ids = $(this).data("id");
|
var ids = $(this).data("id");
|
||||||
var row = Table.api.getrowbyid(table, ids);
|
var row = Table.api.getrowbyid(table, ids);
|
||||||
|
|
|
||||||
|
|
@ -262,6 +262,9 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
|
||||||
placeHolderTemplate: ""
|
placeHolderTemplate: ""
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
require(['colResizable'], function () {
|
||||||
|
$("table").colResizable();
|
||||||
|
});
|
||||||
$(table).on("click", "input[data-id][name='checkbox']", function (e) {
|
$(table).on("click", "input[data-id][name='checkbox']", function (e) {
|
||||||
var ids = $(this).data("id");
|
var ids = $(this).data("id");
|
||||||
var row = Table.api.getrowbyid(table, ids);
|
var row = Table.api.getrowbyid(table, ids);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue