- 框架初始化
 - 安装插件
 - 修复PHP8.4报错
This commit is contained in:
2025-04-19 17:21:20 +08:00
commit c6a4e1f5f6
5306 changed files with 967782 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
.jumpto input {
height: 31px;
width: 50px;
margin-left: 5px;
margin-right: 5px;
text-align: center;
display: inline-block;
}

View File

@@ -0,0 +1,52 @@
/**
* @author Jay <jwang@dizsoft.com>
*/
(function ($) {
'use strict';
var sprintf = $.fn.bootstrapTable.utils.sprintf;
$.extend($.fn.bootstrapTable.defaults, {
showJumpto: false,
exportOptions: {}
});
$.extend($.fn.bootstrapTable.locales, {
formatJumpto: function () {
return 'GO';
}
});
$.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales);
var BootstrapTable = $.fn.bootstrapTable.Constructor,
_initPagination = BootstrapTable.prototype.initPagination;
BootstrapTable.prototype.initPagination = function () {
this.showToolbar = this.options.showExport;
_initPagination.apply(this, Array.prototype.slice.apply(arguments));
if (this.options.showJumpto) {
var that = this,
$pageGroup = this.$pagination.find('ul.pagination'),
$jumpto = $pageGroup.find('li.jumpto');
if (!$jumpto.length) {
$jumpto = $([
'<li class="jumpto">',
'<input type="text" class="form-control">',
'<button class="btn' +
sprintf(' btn-%s', this.options.buttonsClass) +
sprintf(' btn-%s', this.options.iconSize) +
'" title="' + this.options.formatJumpto() + '" ' +
' type="button">'+this.options.formatJumpto(),
'</button>',
'</li>'].join('')).appendTo($pageGroup);
$jumpto.find('button').click(function () {
that.selectPage(parseInt($jumpto.find('input').val()));
});
}
}
};
})(jQuery);

View File

@@ -0,0 +1,7 @@
/*
* bootstrap-table - v1.11.11 - 2024-03-14
https://github.com/wenzhixin/bootstrap-table
* Copyright (c) 2017 zhixin wen
* Licensed MIT License
*/
!function(i){"use strict";var s=i.fn.bootstrapTable.utils.sprintf,t=(i.extend(i.fn.bootstrapTable.defaults,{showJumpto:!1,exportOptions:{}}),i.extend(i.fn.bootstrapTable.locales,{formatJumpto:function(){return"GO"}}),i.extend(i.fn.bootstrapTable.defaults,i.fn.bootstrapTable.locales),i.fn.bootstrapTable.Constructor),p=t.prototype.initPagination;t.prototype.initPagination=function(){var t,o,n;this.showToolbar=this.options.showExport,p.apply(this,Array.prototype.slice.apply(arguments)),this.options.showJumpto&&(o=(t=this).$pagination.find("ul.pagination"),(n=o.find("li.jumpto")).length||(n=i(['<li class="jumpto">','<input type="text" class="form-control">','<button class="btn'+s(" btn-%s",this.options.buttonsClass)+s(" btn-%s",this.options.iconSize)+'" title="'+this.options.formatJumpto()+'" type="button">'+this.options.formatJumpto(),"</button>","</li>"].join("")).appendTo(o)).find("button").click(function(){t.selectPage(parseInt(n.find("input").val()))}))}}(jQuery);