UNPKG

19.9 kBJavaScriptView Raw
1/**
2 * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)
3 *
4 * @version v1.18.0
5 * @homepage https://bootstrap-table.com
6 * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
7 * @license MIT
8 */
9
10!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t=t||self).jQuery)}(this,(function(t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var i=function(t){return t&&t.Math==Math&&t},r=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},f=!o((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),u={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,a={f:s&&!u.call({1:2},1)?function(t){var e=s(this,t);return!!e&&e.enumerable}:u},c=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,d=function(t){return l.call(t).slice(8,-1)},h="".split,p=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==d(t)?h.call(t,""):Object(t)}:Object,y=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},g=function(t){return p(y(t))},x=function(t){return"object"==typeof t?null!==t:"function"==typeof t},m=function(t,e){if(!x(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!x(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!x(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!x(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")},b={}.hasOwnProperty,v=function(t,e){return b.call(t,e)},$=r.document,w=x($)&&x($.createElement),C=function(t){return w?$.createElement(t):{}},O=!f&&!o((function(){return 7!=Object.defineProperty(C("div"),"a",{get:function(){return 7}}).a})),S=Object.getOwnPropertyDescriptor,B={f:f?S:function(t,e){if(t=g(t),e=m(e,!0),O)try{return S(t,e)}catch(t){}if(v(t,e))return c(!a.f.call(t,e),t[e])}},R=function(t){if(!x(t))throw TypeError(String(t)+" is not an object");return t},j=Object.defineProperty,k={f:f?j:function(t,e,n){if(R(t),e=m(e,!0),R(n),O)try{return j(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},T=f?function(t,e,n){return k.f(t,e,c(1,n))}:function(t,e,n){return t[e]=n,t},F=function(t,e){try{T(r,t,e)}catch(n){r[t]=e}return e},E="__core-js_shared__",N=r[E]||F(E,{}),P=Function.toString;"function"!=typeof N.inspectSource&&(N.inspectSource=function(t){return P.call(t)});var A,H,W,M=N.inspectSource,_=r.WeakMap,I="function"==typeof _&&/native code/.test(M(_)),L=n((function(t){(t.exports=function(t,e){return N[t]||(N[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),D=0,X=Math.random(),Y=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++D+X).toString(36)},q=L("keys"),z=function(t){return q[t]||(q[t]=Y(t))},V={},G=r.WeakMap;if(I){var K=new G,Q=K.get,Z=K.has,J=K.set;A=function(t,e){return J.call(K,t,e),e},H=function(t){return Q.call(K,t)||{}},W=function(t){return Z.call(K,t)}}else{var U=z("state");V[U]=!0,A=function(t,e){return T(t,U,e),e},H=function(t){return v(t,U)?t[U]:{}},W=function(t){return v(t,U)}}var tt,et,nt={set:A,get:H,has:W,enforce:function(t){return W(t)?H(t):A(t,{})},getterFor:function(t){return function(e){var n;if(!x(e)||(n=H(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},it=n((function(t){var e=nt.get,n=nt.enforce,i=String(String).split("String");(t.exports=function(t,e,o,f){var u=!!f&&!!f.unsafe,s=!!f&&!!f.enumerable,a=!!f&&!!f.noTargetGet;"function"==typeof o&&("string"!=typeof e||v(o,"name")||T(o,"name",e),n(o).source=i.join("string"==typeof e?e:"")),t!==r?(u?!a&&t[e]&&(s=!0):delete t[e],s?t[e]=o:T(t,e,o)):s?t[e]=o:F(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||M(this)}))})),rt=r,ot=function(t){return"function"==typeof t?t:void 0},ft=function(t,e){return arguments.length<2?ot(rt[t])||ot(r[t]):rt[t]&&rt[t][e]||r[t]&&r[t][e]},ut=Math.ceil,st=Math.floor,at=function(t){return isNaN(t=+t)?0:(t>0?st:ut)(t)},ct=Math.min,lt=function(t){return t>0?ct(at(t),9007199254740991):0},dt=Math.max,ht=Math.min,pt=function(t){return function(e,n,i){var r,o=g(e),f=lt(o.length),u=function(t,e){var n=at(t);return n<0?dt(n+e,0):ht(n,e)}(i,f);if(t&&n!=n){for(;f>u;)if((r=o[u++])!=r)return!0}else for(;f>u;u++)if((t||u in o)&&o[u]===n)return t||u||0;return!t&&-1}},yt={includes:pt(!0),indexOf:pt(!1)},gt=yt.indexOf,xt=function(t,e){var n,i=g(t),r=0,o=[];for(n in i)!v(V,n)&&v(i,n)&&o.push(n);for(;e.length>r;)v(i,n=e[r++])&&(~gt(o,n)||o.push(n));return o},mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bt=mt.concat("length","prototype"),vt={f:Object.getOwnPropertyNames||function(t){return xt(t,bt)}},$t={f:Object.getOwnPropertySymbols},wt=ft("Reflect","ownKeys")||function(t){var e=vt.f(R(t)),n=$t.f;return n?e.concat(n(t)):e},Ct=function(t,e){for(var n=wt(e),i=k.f,r=B.f,o=0;o<n.length;o++){var f=n[o];v(t,f)||i(t,f,r(e,f))}},Ot=/#|\.prototype\./,St=function(t,e){var n=Rt[Bt(t)];return n==kt||n!=jt&&("function"==typeof e?o(e):!!e)},Bt=St.normalize=function(t){return String(t).replace(Ot,".").toLowerCase()},Rt=St.data={},jt=St.NATIVE="N",kt=St.POLYFILL="P",Tt=St,Ft=B.f,Et=function(t,e){var n,i,o,f,u,s=t.target,a=t.global,c=t.stat;if(n=a?r:c?r[s]||F(s,{}):(r[s]||{}).prototype)for(i in e){if(f=e[i],o=t.noTargetGet?(u=Ft(n,i))&&u.value:n[i],!Tt(a?i:s+(c?".":"#")+i,t.forced)&&void 0!==o){if(typeof f==typeof o)continue;Ct(f,o)}(t.sham||o&&o.sham)&&T(f,"sham",!0),it(n,i,f,t)}},Nt=Array.isArray||function(t){return"Array"==d(t)},Pt=function(t){return Object(y(t))},At=function(t,e,n){var i=m(e);i in t?k.f(t,i,c(0,n)):t[i]=n},Ht=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())})),Wt=Ht&&!Symbol.sham&&"symbol"==typeof Symbol(),Mt=L("wks"),_t=r.Symbol,It=Wt?_t:Y,Lt=function(t){return v(Mt,t)||(Ht&&v(_t,t)?Mt[t]=_t[t]:Mt[t]=It("Symbol."+t)),Mt[t]},Dt=Lt("species"),Xt=function(t,e){var n;return Nt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Nt(n.prototype)?x(n)&&null===(n=n[Dt])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Yt=ft("navigator","userAgent")||"",qt=r.process,zt=qt&&qt.versions,Vt=zt&&zt.v8;Vt?et=(tt=Vt.split("."))[0]+tt[1]:Yt&&(!(tt=Yt.match(/Edge\/(\d+)/))||tt[1]>=74)&&(tt=Yt.match(/Chrome\/(\d+)/))&&(et=tt[1]);var Gt,Kt=et&&+et,Qt=Lt("species"),Zt=Lt("isConcatSpreadable"),Jt=9007199254740991,Ut="Maximum allowed index exceeded",te=Kt>=51||!o((function(){var t=[];return t[Zt]=!1,t.concat()[0]!==t})),ee=(Gt="concat",Kt>=51||!o((function(){var t=[];return(t.constructor={})[Qt]=function(){return{foo:1}},1!==t[Gt](Boolean).foo}))),ne=function(t){if(!x(t))return!1;var e=t[Zt];return void 0!==e?!!e:Nt(t)};Et({target:"Array",proto:!0,forced:!te||!ee},{concat:function(t){var e,n,i,r,o,f=Pt(this),u=Xt(f,0),s=0;for(e=-1,i=arguments.length;e<i;e++)if(ne(o=-1===e?f:arguments[e])){if(s+(r=lt(o.length))>Jt)throw TypeError(Ut);for(n=0;n<r;n++,s++)n in o&&At(u,s,o[n])}else{if(s>=Jt)throw TypeError(Ut);At(u,s++,o)}return u.length=s,u}});var ie,re=function(t,e,n){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}},oe=[].push,fe=function(t){var e=1==t,n=2==t,i=3==t,r=4==t,o=6==t,f=5==t||o;return function(u,s,a,c){for(var l,d,h=Pt(u),y=p(h),g=re(s,a,3),x=lt(y.length),m=0,b=c||Xt,v=e?b(u,x):n?b(u,0):void 0;x>m;m++)if((f||m in y)&&(d=g(l=y[m],m,h),t))if(e)v[m]=d;else if(d)switch(t){case 3:return!0;case 5:return l;case 6:return m;case 2:oe.call(v,l)}else if(r)return!1;return o?-1:i||r?r:v}},ue={forEach:fe(0),map:fe(1),filter:fe(2),some:fe(3),every:fe(4),find:fe(5),findIndex:fe(6)},se=Object.keys||function(t){return xt(t,mt)},ae=f?Object.defineProperties:function(t,e){R(t);for(var n,i=se(e),r=i.length,o=0;r>o;)k.f(t,n=i[o++],e[n]);return t},ce=ft("document","documentElement"),le=z("IE_PROTO"),de=function(){},he=function(t){return"<script>"+t+"</"+"script>"},pe=function(){try{ie=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;pe=ie?function(t){t.write(he("")),t.close();var e=t.parentWindow.Object;return t=null,e}(ie):((e=C("iframe")).style.display="none",ce.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(he("document.F=Object")),t.close(),t.F);for(var n=mt.length;n--;)delete pe.prototype[mt[n]];return pe()};V[le]=!0;var ye=Object.create||function(t,e){var n;return null!==t?(de.prototype=R(t),n=new de,de.prototype=null,n[le]=t):n=pe(),void 0===e?n:ae(n,e)},ge=Lt("unscopables"),xe=Array.prototype;null==xe[ge]&&k.f(xe,ge,{configurable:!0,value:ye(null)});var me,be=ue.find,ve="find",$e=!0;ve in[]&&Array(1).find((function(){$e=!1})),Et({target:"Array",proto:!0,forced:$e},{find:function(t){return be(this,t,arguments.length>1?arguments[1]:void 0)}}),me=ve,xe[ge][me]=!0;var we=yt.indexOf,Ce=[].indexOf,Oe=!!Ce&&1/[1].indexOf(1,-0)<0,Se=function(t,e){var n=[][t];return!n||!o((function(){n.call(null,e||function(){throw 1},1)}))}("indexOf");Et({target:"Array",proto:!0,forced:Oe||Se},{indexOf:function(t){return Oe?Ce.apply(this,arguments)||0:we(this,t,arguments.length>1?arguments[1]:void 0)}});var Be=[].reverse,Re=[1,2];Et({target:"Array",proto:!0,forced:String(Re)===String(Re.reverse())},{reverse:function(){return Nt(this)&&(this.length=this.length),Be.call(this)}});var je="\t\n\v\f\r                 \u2028\u2029\ufeff",ke="["+je+"]",Te=RegExp("^"+ke+ke+"*"),Fe=RegExp(ke+ke+"*$"),Ee=function(t){return function(e){var n=String(y(e));return 1&t&&(n=n.replace(Te,"")),2&t&&(n=n.replace(Fe,"")),n}},Ne={start:Ee(1),end:Ee(2),trim:Ee(3)}.trim,Pe=r.parseInt,Ae=/^[+-]?0[Xx]/,He=8!==Pe(je+"08")||22!==Pe(je+"0x16")?function(t,e){var n=Ne(String(t));return Pe(n,e>>>0||(Ae.test(n)?16:10))}:Pe;function We(t){return(We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Me(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _e(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Ie(t){return(Ie=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Le(t,e){return(Le=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function De(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Xe(t,e,n){return(Xe="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ie(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}Et({global:!0,forced:parseInt!=He},{parseInt:He});var Ye=t.fn.bootstrapTable.utils;t.extend(t.fn.bootstrapTable.defaults,{fixedColumns:!1,fixedNumber:0,fixedRightNumber:0}),t.BootstrapTable=function(e){function n(){return Me(this,n),De(this,Ie(n).apply(this,arguments))}var i,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Le(t,e)}(n,e),i=n,(r=[{key:"fixedColumnsSupported",value:function(){return this.options.fixedColumns&&!this.options.detailView&&!this.options.cardView}},{key:"initContainer",value:function(){Xe(Ie(n.prototype),"initContainer",this).call(this),this.fixedColumnsSupported()&&(this.options.fixedNumber&&(this.$tableContainer.append('<div class="fixed-columns"></div>'),this.$fixedColumns=this.$tableContainer.find(".fixed-columns")),this.options.fixedRightNumber&&(this.$tableContainer.append('<div class="fixed-columns-right"></div>'),this.$fixedColumnsRight=this.$tableContainer.find(".fixed-columns-right")))}},{key:"initBody",value:function(){for(var t,e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];(t=Xe(Ie(n.prototype),"initBody",this)).call.apply(t,[this].concat(i)),this.fixedColumnsSupported()&&(this.options.showHeader&&this.options.height||(this.initFixedColumnsBody(),this.initFixedColumnsEvents()))}},{key:"trigger",value:function(){for(var t,e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];(t=Xe(Ie(n.prototype),"trigger",this)).call.apply(t,[this].concat(i)),this.fixedColumnsSupported()&&("post-header"===i[0]?this.initFixedColumnsHeader():"scroll-body"===i[0]&&(this.needFixedColumns&&this.options.fixedNumber&&this.$fixedBody.scrollTop(this.$tableBody.scrollTop()),this.needFixedColumns&&this.options.fixedRightNumber&&this.$fixedBodyRight.scrollTop(this.$tableBody.scrollTop())))}},{key:"updateSelected",value:function(){var e=this;Xe(Ie(n.prototype),"updateSelected",this).call(this),this.fixedColumnsSupported()&&this.$tableBody.find("tr").each((function(n,i){var r=t(i),o=r.data("index"),f=r.attr("class"),u='[name="'.concat(e.options.selectItemName,'"]'),s=r.find(u);if(void 0!==We(o)){var a=function(t,n){var i=n.find('tr[data-index="'.concat(o,'"]'));i.attr("class",f),s.length&&i.find(u).prop("checked",s.prop("checked")),e.$selectAll.length&&t.add(n).find('[name="btSelectAll"]').prop("checked",e.$selectAll.prop("checked"))};e.$fixedBody&&e.options.fixedNumber&&a(e.$fixedHeader,e.$fixedBody),e.$fixedBodyRight&&e.options.fixedRightNumber&&a(e.$fixedHeaderRight,e.$fixedBodyRight)}}))}},{key:"hideLoading",value:function(){Xe(Ie(n.prototype),"hideLoading",this).call(this),this.needFixedColumns&&this.options.fixedNumber&&this.$fixedColumns.find(".fixed-table-loading").hide(),this.needFixedColumns&&this.options.fixedRightNumber&&this.$fixedColumnsRight.find(".fixed-table-loading").hide()}},{key:"initFixedColumnsHeader",value:function(){var t=this;this.options.height?this.needFixedColumns=this.$tableHeader.outerWidth(!0)<this.$tableHeader.find("table").outerWidth(!0):this.needFixedColumns=this.$tableBody.outerWidth(!0)<this.$tableBody.find("table").outerWidth(!0);var e=function(e,n){return e.find(".fixed-table-header").remove(),e.append(t.$tableHeader.clone(!0)),e.css({width:t.getFixedColumnsWidth(n)}),e.find(".fixed-table-header")};this.needFixedColumns&&this.options.fixedNumber?(this.$fixedHeader=e(this.$fixedColumns),this.$fixedHeader.css("margin-right","")):this.$fixedColumns&&this.$fixedColumns.html("").css("width",""),this.needFixedColumns&&this.options.fixedRightNumber?(this.$fixedHeaderRight=e(this.$fixedColumnsRight,!0),this.$fixedHeaderRight.scrollLeft(this.$fixedHeaderRight.find("table").width())):this.$fixedColumnsRight&&this.$fixedColumnsRight.html("").css("width",""),this.initFixedColumnsBody(),this.initFixedColumnsEvents()}},{key:"initFixedColumnsBody",value:function(){var t=this,e=function(e,n){e.find(".fixed-table-body").remove(),e.append(t.$tableBody.clone(!0));var i=e.find(".fixed-table-body"),r=t.$tableBody.get(0),o=r.scrollWidth>r.clientWidth?Ye.getScrollBarWidth():0,f=t.$tableContainer.outerHeight(!0)-o-1;return e.css({height:f}),i.css({height:f-n.height()}),i};this.needFixedColumns&&this.options.fixedNumber&&(this.$fixedBody=e(this.$fixedColumns,this.$fixedHeader)),this.needFixedColumns&&this.options.fixedRightNumber&&(this.$fixedBodyRight=e(this.$fixedColumnsRight,this.$fixedHeaderRight),this.$fixedBodyRight.scrollLeft(this.$fixedBodyRight.find("table").width()),this.$fixedBodyRight.css("overflow-y",this.options.height?"auto":"hidden"))}},{key:"getFixedColumnsWidth",value:function(t){var e=this.getVisibleFields(),n=0,i=this.options.fixedNumber,r=0;t&&(e=e.reverse(),i=this.options.fixedRightNumber,r=parseInt(this.$tableHeader.css("margin-right"),10));for(var o=0;o<i;o++)n+=this.$header.find('th[data-field="'.concat(e[o],'"]')).outerWidth(!0);return n+r+1}},{key:"initFixedColumnsEvents",value:function(){var e=this,n=function(n,i){var r='tr[data-index="'.concat(t(n.currentTarget).data("index"),'"]'),o=e.$tableBody.find(r);e.$fixedBody&&(o=o.add(e.$fixedBody.find(r))),e.$fixedBodyRight&&(o=o.add(e.$fixedBodyRight.find(r))),o.css("background-color",i?t(n.currentTarget).css("background-color"):"")};this.$tableBody.find("tr").hover((function(t){n(t,!0)}),(function(t){n(t,!1)}));var i="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1?"DOMMouseScroll":"mousewheel";this.needFixedColumns&&this.options.fixedNumber&&(this.$fixedBody.find("tr").hover((function(t){n(t,!0)}),(function(t){n(t,!1)})),this.$fixedBody[0].addEventListener(i,(function(t){!function(t,n){var i,r,o,f,u,s=(r=0,o=0,f=0,u=0,"detail"in(i=t)&&(o=i.detail),"wheelDelta"in i&&(o=-i.wheelDelta/120),"wheelDeltaY"in i&&(o=-i.wheelDeltaY/120),"wheelDeltaX"in i&&(r=-i.wheelDeltaX/120),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(r=o,o=0),f=10*r,u=10*o,"deltaY"in i&&(u=i.deltaY),"deltaX"in i&&(f=i.deltaX),(f||u)&&i.deltaMode&&(1===i.deltaMode?(f*=40,u*=40):(f*=800,u*=800)),f&&!r&&(r=f<1?-1:1),u&&!o&&(o=u<1?-1:1),{spinX:r,spinY:o,pixelX:f,pixelY:u}),a=Math.ceil(s.pixelY),c=e.$tableBody.scrollTop()+a;(a<0&&c>0||a>0&&c<n.scrollHeight-n.clientHeight)&&t.preventDefault(),e.$tableBody.scrollTop(c),e.$fixedBody&&e.$fixedBody.scrollTop(c),e.$fixedBodyRight&&e.$fixedBodyRight.scrollTop(c)}(t,e.$fixedBody[0])}))),this.needFixedColumns&&this.options.fixedRightNumber&&(this.$fixedBodyRight.find("tr").hover((function(t){n(t,!0)}),(function(t){n(t,!1)})),this.$fixedBodyRight.off("scroll").on("scroll",(function(){var t=e.$fixedBodyRight.scrollTop();e.$tableBody.scrollTop(t),e.$fixedBody&&e.$fixedBody.scrollTop(t)}))),this.options.filterControl&&t(this.$fixedColumns).off("keyup change").on("keyup change",(function(n){var i=t(n.target),r=i.val(),o=i.parents("th").data("field"),f=e.$header.find('th[data-field="'.concat(o,'"]'));if(i.is("input"))f.find("input").val(r);else if(i.is("select")){var u=f.find("select");u.find("option[selected]").removeAttr("selected"),u.find('option[value="'.concat(r,'"]')).attr("selected",!0)}e.triggerSearch()}))}},{key:"renderStickyHeader",value:function(){if(this.options.stickyHeader&&(this.$stickyContainer=this.$container.find(".sticky-header-container"),Xe(Ie(n.prototype),"renderStickyHeader",this).call(this),this.needFixedColumns&&this.options.fixedNumber&&this.$fixedColumns.css("z-index",101).find(".sticky-header-container").css("right","").width(this.$fixedColumns.outerWidth()),this.needFixedColumns&&this.options.fixedRightNumber)){var t=this.$fixedColumnsRight.find(".sticky-header-container");this.$fixedColumnsRight.css("z-index",101),t.css("left","").scrollLeft(t.find(".table").outerWidth()).width(this.$fixedColumnsRight.outerWidth())}}},{key:"matchPositionX",value:function(){this.options.stickyHeader&&this.$stickyContainer.eq(0).scrollLeft(this.$tableBody.scrollLeft())}}])&&_e(i.prototype,r),o&&_e(i,o),n}(t.BootstrapTable)}));