el2-table-horizontal-scroll-modify
Version:
修改了el-table-horizontal-scroll 的表格无数据打开滚动条显示两条的问题,顺便发一次包试试,仅作试试。
2 lines • 26.1 kB
JavaScript
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["el2-table-horizontal-scroll-modify"]=e():t["el2-table-horizontal-scroll-modify"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="fb15")}({"00ee":function(t,e,r){"use strict";var n=r("b622"),o=n("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},"04f8":function(t,e,r){"use strict";var n=r("2d00"),o=r("d039"),i=r("da84"),s=i.String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!s(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},"06cf":function(t,e,r){"use strict";var n=r("83ab"),o=r("c65b"),i=r("d1e7"),s=r("5c6c"),c=r("fc6a"),u=r("a04b"),a=r("1a2d"),f=r("0cfb"),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=c(t),e=u(e),f)try{return l(t,e)}catch(r){}if(a(t,e))return s(!o(i.f,t,e),t[e])}},"07fa":function(t,e,r){"use strict";var n=r("50c4");t.exports=function(t){return n(t.length)}},"0cfb":function(t,e,r){"use strict";var n=r("83ab"),o=r("d039"),i=r("cc12");t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(t,e,r){"use strict";var n=r("e330"),o=Error,i=n("".replace),s=function(t){return String(new o(t).stack)}("zxcasd"),c=/\n\s*at [^:]*:[^\n]*/,u=c.test(s);t.exports=function(t,e){if(u&&"string"==typeof t&&!o.prepareStackTrace)while(e--)t=i(t,c,"");return t}},"0d51":function(t,e,r){"use strict";var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},"13d2":function(t,e,r){"use strict";var n=r("e330"),o=r("d039"),i=r("1626"),s=r("1a2d"),c=r("83ab"),u=r("5e77").CONFIGURABLE,a=r("8925"),f=r("69f3"),l=f.enforce,d=f.get,b=String,p=Object.defineProperty,v=n("".slice),h=n("".replace),y=n([].join),m=c&&!o((function(){return 8!==p((function(){}),"length",{value:8}).length})),g=String(String).split("String"),w=t.exports=function(t,e,r){"Symbol("===v(b(e),0,7)&&(e="["+h(b(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!s(t,"name")||u&&t.name!==e)&&(c?p(t,"name",{value:e,configurable:!0}):t.name=e),m&&r&&s(r,"arity")&&t.length!==r.arity&&p(t,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?c&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=l(t);return s(n,"source")||(n.source=y(g,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return i(this)&&d(this).source||a(this)}),"toString")},1626:function(t,e,r){"use strict";var n="object"==typeof document&&document.all;t.exports="undefined"==typeof n&&void 0!==n?function(t){return"function"==typeof t||t===n}:function(t){return"function"==typeof t}},1787:function(t,e,r){"use strict";var n=r("861d");t.exports=function(t){return n(t)||null===t}},"1a2d":function(t,e,r){"use strict";var n=r("e330"),o=r("7b0b"),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},"1d80":function(t,e,r){"use strict";var n=r("7234"),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},"23cb":function(t,e,r){"use strict";var n=r("5926"),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},"23e7":function(t,e,r){"use strict";var n=r("da84"),o=r("06cf").f,i=r("9112"),s=r("cb2d"),c=r("6374"),u=r("e893"),a=r("94ca");t.exports=function(t,e){var r,f,l,d,b,p,v=t.target,h=t.global,y=t.stat;if(f=h?n:y?n[v]||c(v,{}):n[v]&&n[v].prototype,f)for(l in e){if(b=e[l],t.dontCallGetSet?(p=o(f,l),d=p&&p.value):d=f[l],r=a(h?l:v+(y?".":"#")+l,t.forced),!r&&void 0!==d){if(typeof b==typeof d)continue;u(b,d)}(t.sham||d&&d.sham)&&i(b,"sham",!0),s(f,l,b,t)}}},"241c":function(t,e,r){"use strict";var n=r("ca84"),o=r("7839"),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},"2ba4":function(t,e,r){"use strict";var n=r("40d5"),o=Function.prototype,i=o.apply,s=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(i):function(){return s.apply(i,arguments)})},"2d00":function(t,e,r){"use strict";var n,o,i=r("da84"),s=r("342f"),c=i.process,u=i.Deno,a=c&&c.versions||u&&u.version,f=a&&a.v8;f&&(n=f.split("."),o=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(o=+n[1]))),t.exports=o},"342f":function(t,e,r){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},"3a9b":function(t,e,r){"use strict";var n=r("e330");t.exports=n({}.isPrototypeOf)},"3bbe":function(t,e,r){"use strict";var n=r("1787"),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},"40d5":function(t,e,r){"use strict";var n=r("d039");t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"44ad":function(t,e,r){"use strict";var n=r("e330"),o=r("d039"),i=r("c6b6"),s=Object,c=n("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?c(t,""):s(t)}:s},"485a":function(t,e,r){"use strict";var n=r("c65b"),o=r("1626"),i=r("861d"),s=TypeError;t.exports=function(t,e){var r,c;if("string"===e&&o(r=t.toString)&&!i(c=n(r,t)))return c;if(o(r=t.valueOf)&&!i(c=n(r,t)))return c;if("string"!==e&&o(r=t.toString)&&!i(c=n(r,t)))return c;throw new s("Can't convert object to primitive value")}},"4d64":function(t,e,r){"use strict";var n=r("fc6a"),o=r("23cb"),i=r("07fa"),s=function(t){return function(e,r,s){var c=n(e),u=i(c);if(0===u)return!t&&-1;var a,f=o(s,u);if(t&&r!==r){while(u>f)if(a=c[f++],a!==a)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},"50c4":function(t,e,r){"use strict";var n=r("5926"),o=Math.min;t.exports=function(t){var e=n(t);return e>0?o(e,9007199254740991):0}},5692:function(t,e,r){"use strict";var n=r("c6cd");t.exports=function(t,e){return n[t]||(n[t]=e||{})}},"56ef":function(t,e,r){"use strict";var n=r("d066"),o=r("e330"),i=r("241c"),s=r("7418"),c=r("825a"),u=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(c(t)),r=s.f;return r?u(e,r(t)):e}},"577e":function(t,e,r){"use strict";var n=r("f5df"),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},5926:function(t,e,r){"use strict";var n=r("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},"59ed":function(t,e,r){"use strict";var n=r("1626"),o=r("0d51"),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},"5c6c":function(t,e,r){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5e77":function(t,e,r){"use strict";var n=r("83ab"),o=r("1a2d"),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,c=o(i,"name"),u=c&&"something"===function(){}.name,a=c&&(!n||n&&s(i,"name").configurable);t.exports={EXISTS:c,PROPER:u,CONFIGURABLE:a}},6374:function(t,e,r){"use strict";var n=r("da84"),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},"69f3":function(t,e,r){"use strict";var n,o,i,s=r("cdce"),c=r("da84"),u=r("861d"),a=r("9112"),f=r("1a2d"),l=r("c6cd"),d=r("f772"),b=r("d012"),p="Object already initialized",v=c.TypeError,h=c.WeakMap,y=function(t){return i(t)?o(t):n(t,{})},m=function(t){return function(e){var r;if(!u(e)||(r=o(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return r}};if(s||l.state){var g=l.state||(l.state=new h);g.get=g.get,g.has=g.has,g.set=g.set,n=function(t,e){if(g.has(t))throw new v(p);return e.facade=t,g.set(t,e),e},o=function(t){return g.get(t)||{}},i=function(t){return g.has(t)}}else{var w=d("state");b[w]=!0,n=function(t,e){if(f(t,w))throw new v(p);return e.facade=t,a(t,w,e),e},o=function(t){return f(t,w)?t[w]:{}},i=function(t){return f(t,w)}}t.exports={set:n,get:o,has:i,enforce:y,getterFor:m}},"6f19":function(t,e,r){"use strict";var n=r("9112"),o=r("0d26"),i=r("b980"),s=Error.captureStackTrace;t.exports=function(t,e,r,c){i&&(s?s(t,e):n(t,"stack",o(r,c)))}},7156:function(t,e,r){"use strict";var n=r("1626"),o=r("861d"),i=r("d2bb");t.exports=function(t,e,r){var s,c;return i&&n(s=e.constructor)&&s!==r&&o(c=s.prototype)&&c!==r.prototype&&i(t,c),t}},7234:function(t,e,r){"use strict";t.exports=function(t){return null===t||void 0===t}},7282:function(t,e,r){"use strict";var n=r("e330"),o=r("59ed");t.exports=function(t,e,r){try{return n(o(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(i){}}},7418:function(t,e,r){"use strict";e.f=Object.getOwnPropertySymbols},7839:function(t,e,r){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,r){"use strict";var n=r("1d80"),o=Object;t.exports=function(t){return o(n(t))}},"825a":function(t,e,r){"use strict";var n=r("861d"),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},"83ab":function(t,e,r){"use strict";var n=r("d039");t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,e,r){"use strict";var n=r("1626");t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},8925:function(t,e,r){"use strict";var n=r("e330"),o=r("1626"),i=r("c6cd"),s=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return s(t)}),t.exports=i.inspectSource},"90e3":function(t,e,r){"use strict";var n=r("e330"),o=0,i=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++o+i,36)}},9112:function(t,e,r){"use strict";var n=r("83ab"),o=r("9bf2"),i=r("5c6c");t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},"94ca":function(t,e,r){"use strict";var n=r("d039"),o=r("1626"),i=/#|\.prototype\./,s=function(t,e){var r=u[c(t)];return r===f||r!==a&&(o(e)?n(e):!!e)},c=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=s.data={},a=s.NATIVE="N",f=s.POLYFILL="P";t.exports=s},"9bf2":function(t,e,r){"use strict";var n=r("83ab"),o=r("0cfb"),i=r("aed9"),s=r("825a"),c=r("a04b"),u=TypeError,a=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",d="configurable",b="writable";e.f=n?i?function(t,e,r){if(s(t),e=c(e),s(r),"function"===typeof t&&"prototype"===e&&"value"in r&&b in r&&!r[b]){var n=f(t,e);n&&n[b]&&(t[e]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:l in r?r[l]:n[l],writable:!1})}return a(t,e,r)}:a:function(t,e,r){if(s(t),e=c(e),s(r),o)try{return a(t,e,r)}catch(n){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},a04b:function(t,e,r){"use strict";var n=r("c04e"),o=r("d9b5");t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},ab36:function(t,e,r){"use strict";var n=r("861d"),o=r("9112");t.exports=function(t,e){n(e)&&"cause"in e&&o(t,"cause",e.cause)}},aeb0:function(t,e,r){"use strict";var n=r("9bf2").f;t.exports=function(t,e,r){r in t||n(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}},aed9:function(t,e,r){"use strict";var n=r("83ab"),o=r("d039");t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b42e:function(t,e,r){"use strict";var n=Math.ceil,o=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?o:n)(e)}},b622:function(t,e,r){"use strict";var n=r("da84"),o=r("5692"),i=r("1a2d"),s=r("90e3"),c=r("04f8"),u=r("fdbf"),a=n.Symbol,f=o("wks"),l=u?a["for"]||a:a&&a.withoutSetter||s;t.exports=function(t){return i(f,t)||(f[t]=c&&i(a,t)?a[t]:l("Symbol."+t)),f[t]}},b980:function(t,e,r){"use strict";var n=r("d039"),o=r("5c6c");t.exports=!n((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},c04e:function(t,e,r){"use strict";var n=r("c65b"),o=r("861d"),i=r("d9b5"),s=r("dc4a"),c=r("485a"),u=r("b622"),a=TypeError,f=u("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,u=s(t,f);if(u){if(void 0===e&&(e="default"),r=n(u,t,e),!o(r)||i(r))return r;throw new a("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},c430:function(t,e,r){"use strict";t.exports=!1},c65b:function(t,e,r){"use strict";var n=r("40d5"),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},c6b6:function(t,e,r){"use strict";var n=r("e330"),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},c6cd:function(t,e,r){"use strict";var n=r("c430"),o=r("da84"),i=r("6374"),s="__core-js_shared__",c=t.exports=o[s]||i(s,{});(c.versions||(c.versions=[])).push({version:"3.37.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},c8ba:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},ca84:function(t,e,r){"use strict";var n=r("e330"),o=r("1a2d"),i=r("fc6a"),s=r("4d64").indexOf,c=r("d012"),u=n([].push);t.exports=function(t,e){var r,n=i(t),a=0,f=[];for(r in n)!o(c,r)&&o(n,r)&&u(f,r);while(e.length>a)o(n,r=e[a++])&&(~s(f,r)||u(f,r));return f}},cb2d:function(t,e,r){"use strict";var n=r("1626"),o=r("9bf2"),i=r("13d2"),s=r("6374");t.exports=function(t,e,r,c){c||(c={});var u=c.enumerable,a=void 0!==c.name?c.name:e;if(n(r)&&i(r,a,c),c.global)u?t[e]=r:s(e,r);else{try{c.unsafe?t[e]&&(u=!0):delete t[e]}catch(f){}u?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return t}},cc12:function(t,e,r){"use strict";var n=r("da84"),o=r("861d"),i=n.document,s=o(i)&&o(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},cdce:function(t,e,r){"use strict";var n=r("da84"),o=r("1626"),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},d012:function(t,e,r){"use strict";t.exports={}},d039:function(t,e,r){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,r){"use strict";var n=r("da84"),o=r("1626"),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t]):n[t]&&n[t][e]}},d1e7:function(t,e,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},d2bb:function(t,e,r){"use strict";var n=r("7282"),o=r("861d"),i=r("1d80"),s=r("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=n(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(c){}return function(r,n){return i(r),s(n),o(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0)},d9b5:function(t,e,r){"use strict";var n=r("d066"),o=r("1626"),i=r("3a9b"),s=r("fdbf"),c=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,c(t))}},d9e2:function(t,e,r){"use strict";var n=r("23e7"),o=r("da84"),i=r("2ba4"),s=r("e5cb"),c="WebAssembly",u=o[c],a=7!==new Error("e",{cause:7}).cause,f=function(t,e){var r={};r[t]=s(t,e,a),n({global:!0,constructor:!0,arity:1,forced:a},r)},l=function(t,e){if(u&&u[t]){var r={};r[t]=s(c+"."+t,e,a),n({target:c,stat:!0,constructor:!0,arity:1,forced:a},r)}};f("Error",(function(t){return function(e){return i(t,this,arguments)}})),f("EvalError",(function(t){return function(e){return i(t,this,arguments)}})),f("RangeError",(function(t){return function(e){return i(t,this,arguments)}})),f("ReferenceError",(function(t){return function(e){return i(t,this,arguments)}})),f("SyntaxError",(function(t){return function(e){return i(t,this,arguments)}})),f("TypeError",(function(t){return function(e){return i(t,this,arguments)}})),f("URIError",(function(t){return function(e){return i(t,this,arguments)}})),l("CompileError",(function(t){return function(e){return i(t,this,arguments)}})),l("LinkError",(function(t){return function(e){return i(t,this,arguments)}})),l("RuntimeError",(function(t){return function(e){return i(t,this,arguments)}}))},da84:function(t,e,r){"use strict";(function(e){var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,r("c8ba"))},dc4a:function(t,e,r){"use strict";var n=r("59ed"),o=r("7234");t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},e330:function(t,e,r){"use strict";var n=r("40d5"),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);t.exports=n?s:function(t){return function(){return i.apply(t,arguments)}}},e391:function(t,e,r){"use strict";var n=r("577e");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},e5cb:function(t,e,r){"use strict";var n=r("d066"),o=r("1a2d"),i=r("9112"),s=r("3a9b"),c=r("d2bb"),u=r("e893"),a=r("aeb0"),f=r("7156"),l=r("e391"),d=r("ab36"),b=r("6f19"),p=r("83ab"),v=r("c430");t.exports=function(t,e,r,h){var y="stackTraceLimit",m=h?2:1,g=t.split("."),w=g[g.length-1],x=n.apply(null,g);if(x){var O=x.prototype;if(!v&&o(O,"cause")&&delete O.cause,!r)return x;var S=n("Error"),E=e((function(t,e){var r=l(h?e:t,void 0),n=h?new x(t):new x;return void 0!==r&&i(n,"message",r),b(n,E,n.stack,2),this&&s(O,this)&&f(n,this,E),arguments.length>m&&d(n,arguments[m]),n}));if(E.prototype=O,"Error"!==w?c?c(E,S):u(E,S,{name:!0}):p&&y in x&&(a(E,x,y),a(E,x,"prepareStackTrace")),u(E,x),!v)try{O.name!==w&&i(O,"name",w),O.constructor=E}catch(j){}return E}}},e893:function(t,e,r){"use strict";var n=r("1a2d"),o=r("56ef"),i=r("06cf"),s=r("9bf2");t.exports=function(t,e,r){for(var c=o(e),u=s.f,a=i.f,f=0;f<c.length;f++){var l=c[f];n(t,l)||r&&n(r,l)||u(t,l,a(e,l))}}},f5df:function(t,e,r){"use strict";var n=r("00ee"),o=r("1626"),i=r("c6b6"),s=r("b622"),c=s("toStringTag"),u=Object,a="Arguments"===i(function(){return arguments}()),f=function(t,e){try{return t[e]}catch(r){}};t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=f(e=u(t),c))?r:a?i(e):"Object"===(n=i(e))&&o(e.callee)?"Arguments":n}},f772:function(t,e,r){"use strict";var n=r("5692"),o=r("90e3"),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},fb15:function(t,e,r){"use strict";if(r.r(e),r.d(e,"directiveVue2",(function(){return u})),r.d(e,"directiveVue3",(function(){return a})),r.d(e,"Plugin",(function(){return f})),"undefined"!==typeof window){var n=window.document.currentScript,o=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(r.p=o[1])}r("d9e2");function i(t,e,r){var n,o=r||{},i=o.noTrailing,s=void 0!==i&&i,c=o.noLeading,u=void 0!==c&&c,a=o.debounceMode,f=void 0===a?void 0:a,l=!1,d=0;function b(){n&&clearTimeout(n)}function p(t){var e=t||{},r=e.upcomingOnly,n=void 0!==r&&r;b(),l=!n}function v(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var c=this,a=Date.now()-d;function p(){d=Date.now(),e.apply(c,o)}function v(){n=void 0}l||(u||!f||n||p(),b(),void 0===f&&a>t?u?(d=Date.now(),s||(n=setTimeout(f?v:p,t))):p():!0!==s&&(n=setTimeout(f?v:p,void 0===f?t-a:t)))}return v.cancel=p,v}const s=1e3/60;class c{constructor(t,e,r="hover",n){if(!t)throw new Error("need have table element");this.targetTableWrapperEl=t,this.bottomIsVisibleObserverEl=e,this.mode=r;const o=document.createElement("div");o.classList.add("el-scrollbar","el-table-horizontal-scrollbar"),o.style.height="12px",o.style.position="fixed",o.style.bottom=n+"px",o.style.zIndex=100,o.style.transition="all 0.3s ease",this.dom=o,this.resetScroller();const c=document.createElement("div");c.classList.add("el-scrollbar__bar","is-horizontal"),this.bar=c,o.appendChild(c);const u=document.createElement("div");u.classList.add("el-scrollbar__thumb"),c.appendChild(u),this.thumb=u,this.fullwidth=!1,this.isVisible=!1,this.bottomIsVisible=!1;const a=this;this.checkIsScrollBottom=i(s,(function(){a.isVisible?a.bottomIsVisible?(a.hideScroller(),a.hideBar()):(a.resetBar(!1),a.showScroller(),"always"===a.mode&&a.showBar()):a.hideScroller()})),t.addEventListener("scroll",i(s,(function(){a.resetThumbPosition()}))),this.syncDestoryHandler=this.initScrollSyncHandler(),this.tableElObserver=null,MutationObserver&&(this.tableElObserver=new MutationObserver(()=>this.forceUpdate("MutationObserver")),this.tableElObserver.observe(t.querySelector(".el-table__body"),{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style"]})),this.tableResizeObserver=null,ResizeObserver&&(this.tableResizeObserver=new ResizeObserver(()=>this.forceUpdate("ResizeObserver")),this.tableResizeObserver.observe(t)),this.tableIntersectionObserver=null,this.bottomIsVisibleObserver=null,IntersectionObserver?(this.tableIntersectionObserver=new IntersectionObserver(([t])=>{this.isVisible=t.intersectionRatio>0,this.forceUpdate("IntersectionObserver")}),this.tableIntersectionObserver.observe(t),this.bottomIsVisibleObserverEl&&(this.bottomIsVisibleObserver=new IntersectionObserver(([t])=>{this.bottomIsVisible=t.intersectionRatio>0,this.checkIsScrollBottom()}),this.bottomIsVisibleObserver.observe(this.bottomIsVisibleObserverEl))):console.info("IntersectionObserver is not support,directive maybe problem"),this.forceUpdate()}resetBar(t=!0){const{targetTableWrapperEl:e}=this,r=100*e.clientWidth/e.scrollWidth,n=Math.min(r,100);this.thumb.style.width=n+"%",this.fullwidth=n>=100,t&&(this.fullwidth?this.hideScroller():this.checkIsScrollBottom())}resetThumbPosition(){this.thumb.style.transform=`translateX(${this.moveX}%)`}resetScroller(){const{targetTableWrapperEl:t,dom:e}=this,r=t.getBoundingClientRect();e.style.left=r.left+"px",e.style.width=r.width+"px"}forceUpdate(t="defualt"){setTimeout(()=>{this.resetBar(),this.resetScroller(),this.resetThumbPosition(),this.checkIsScrollBottom()},s)}get moveX(){const{targetTableWrapperEl:t}=this;return 100*t.scrollLeft/t.clientWidth}initScrollSyncHandler(){let t=!1,e=0,r=1;const{thumb:n,targetTableWrapperEl:o,bar:c}=this;function u(){return c.offsetWidth/n.offsetWidth}const a=i(s,(function(n){if(!1===t)return;const{clientX:i}=n,s=i-e;e=i,o.scrollLeft+=s*r}));function f(){t=!1,document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",f),document.onselectstart=null}function l(e){e.stopImmediatePropagation(),t=!0,document.addEventListener("mousemove",a),document.addEventListener("mouseup",f),document.onselectstart=()=>!1}return n.onmousedown=function(t){if(t.ctrlKey||2===t.button)return;const{clientX:n}=t;e=n,r=u(),l(t)},c.onclick=function(t){const{target:e}=t;if(e!==c)return;r=u();const{clientX:i}=t;let s=0;const a=n.getBoundingClientRect();s=a.left>=i?i-a.left:i-a.left-a.width;const f=o.scrollLeft+s*r;o.scrollTo({left:f,behavior:"smooth"})},function(){document.addEventListener("mousemove",a),document.removeEventListener("mouseup",f)}}showScroller(){this.fullwidth||(this.dom.style.display="initial")}hideScroller(){this.dom.style.display="none"}showBar(){console.log("showBar"),this.isVisible&&(this.bar.style.opacity=1)}hideBar(){console.log("hideBar"),this.isVisible&&"always"===this.mode?this.bar.style.opacity=1:this.bar.style.opacity=0}destory(){this.tableElObserver&&this.tableElObserver.disconnect(),this.tableResizeObserver&&this.tableResizeObserver.disconnect(),this.tableIntersectionObserver&&this.tableIntersectionObserver.disconnect(),this.bottomIsVisibleObserver&&this.bottomIsVisibleObserver.disconnect(),this.bottomIsVisibleObserverEl&&this.bottomIsVisibleObserverEl.parentElement&&this.bottomIsVisibleObserverEl.parentElement.removeChild(this.bottomIsVisibleObserverEl),this.syncDestoryHandler()}}const u={inserted(t,e){const{value:r="hover"}=e,n=r.split("+")[1]||0,o=t.querySelector(".el-table__body-wrapper"),i=document.createElement("span");t.appendChild(i);const s=new c(o,i,r.split("+")[0],n);t.appendChild(s.dom),t.horizontalScroll=s,"hover"===r?(t.addEventListener("mouseover",s.showBar.bind(s)),t.addEventListener("mouseleave",s.hideBar.bind(s))):s.showBar()},unbind(t){t.horizontalScroll.destory()}},a={mounted(t,e){const{value:r="hover"}=e,n=r.split("+")[1]||0,o=t.querySelector(".el-table__body-wrapper .el-scrollbar__wrap");if(!o)return void console.info("未找到可挂载的对象");const i=document.createElement("div");t.appendChild(i);const s=new c(o,i,r,n);t.appendChild(s.dom),t.horizontalScroll=s,"hover"===r?(t.addEventListener("mouseover",s.showBar.bind(s)),t.addEventListener("mouseleave",s.hideBar.bind(s))):s.showBar()},unmounted(t){t.horizontalScroll&&t.horizontalScroll.destory()}},f={install(t){t.directive("horizontalScroll",{...u,...a})}};var l=f;e["default"]=l},fc6a:function(t,e,r){"use strict";var n=r("44ad"),o=r("1d80");t.exports=function(t){return n(o(t))}},fdbf:function(t,e,r){"use strict";var n=r("04f8");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})["default"]}));
//# sourceMappingURL=el2-table-horizontal-scroll-modify.umd.min.js.map