UNPKG

el-table-wrap

Version:
2 lines 14.2 kB
(function(t,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["ElTableWrap"]=n():t["ElTableWrap"]=n()})("undefined"!==typeof self?self:this,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s="fb15")}({"06cf":function(t,n,e){var r=e("83ab"),o=e("d1e7"),c=e("5c6c"),u=e("fc6a"),i=e("c04e"),f=e("5135"),a=e("0cfb"),l=Object.getOwnPropertyDescriptor;n.f=r?l:function(t,n){if(t=u(t),n=i(n,!0),a)try{return l(t,n)}catch(e){}if(f(t,n))return c(!o.f.call(t,n),t[n])}},"0cfb":function(t,n,e){var r=e("83ab"),o=e("d039"),c=e("cc12");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a}))},"1d80":function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"23cb":function(t,n,e){var r=e("a691"),o=Math.max,c=Math.min;t.exports=function(t,n){var e=r(t);return e<0?o(e+n,0):c(e,n)}},"23e7":function(t,n,e){var r=e("da84"),o=e("06cf").f,c=e("9112"),u=e("6eeb"),i=e("ce4e"),f=e("e893"),a=e("94ca");t.exports=function(t,n){var e,l,p,s,d,b,v=t.target,m=t.global,y=t.stat;if(l=m?r:y?r[v]||i(v,{}):(r[v]||{}).prototype,l)for(p in n){if(d=n[p],t.noTargetGet?(b=o(l,p),s=b&&b.value):s=l[p],e=a(m?p:v+(y?".":"#")+p,t.forced),!e&&void 0!==s){if(typeof d===typeof s)continue;f(d,s)}(t.sham||s&&s.sham)&&c(d,"sham",!0),u(l,p,d,t)}}},"241c":function(t,n,e){var r=e("ca84"),o=e("7839"),c=o.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,c)}},"428f":function(t,n,e){var r=e("da84");t.exports=r},"44ad":function(t,n,e){var r=e("d039"),o=e("c6b6"),c="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?c.call(t,""):Object(t)}:Object},"4d64":function(t,n,e){var r=e("fc6a"),o=e("50c4"),c=e("23cb"),u=function(t){return function(n,e,u){var i,f=r(n),a=o(f.length),l=c(u,a);if(t&&e!=e){while(a>l)if(i=f[l++],i!=i)return!0}else for(;a>l;l++)if((t||l in f)&&f[l]===e)return t||l||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},"50c4":function(t,n,e){var r=e("a691"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},5135:function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},5692:function(t,n,e){var r=e("c430"),o=e("c6cd");(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.7.0",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,n,e){var r=e("d066"),o=e("241c"),c=e("7418"),u=e("825a");t.exports=r("Reflect","ownKeys")||function(t){var n=o.f(u(t)),e=c.f;return e?n.concat(e(t)):n}},"5c6c":function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},"69f3":function(t,n,e){var r,o,c,u=e("7f9a"),i=e("da84"),f=e("861d"),a=e("9112"),l=e("5135"),p=e("c6cd"),s=e("f772"),d=e("d012"),b=i.WeakMap,v=function(t){return c(t)?o(t):r(t,{})},m=function(t){return function(n){var e;if(!f(n)||(e=o(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}};if(u){var y=p.state||(p.state=new b),h=y.get,g=y.has,x=y.set;r=function(t,n){return n.facade=t,x.call(y,t,n),n},o=function(t){return h.call(y,t)||{}},c=function(t){return g.call(y,t)}}else{var O=s("state");d[O]=!0,r=function(t,n){return n.facade=t,a(t,O,n),n},o=function(t){return l(t,O)?t[O]:{}},c=function(t){return l(t,O)}}t.exports={set:r,get:o,has:c,enforce:v,getterFor:m}},"6eeb":function(t,n,e){var r=e("da84"),o=e("9112"),c=e("5135"),u=e("ce4e"),i=e("8925"),f=e("69f3"),a=f.get,l=f.enforce,p=String(String).split("String");(t.exports=function(t,n,e,i){var f,a=!!i&&!!i.unsafe,s=!!i&&!!i.enumerable,d=!!i&&!!i.noTargetGet;"function"==typeof e&&("string"!=typeof n||c(e,"name")||o(e,"name",n),f=l(e),f.source||(f.source=p.join("string"==typeof n?n:""))),t!==r?(a?!d&&t[n]&&(s=!0):delete t[n],s?t[n]=e:o(t,n,e)):s?t[n]=e:u(n,e)})(Function.prototype,"toString",(function(){return"function"==typeof this&&a(this).source||i(this)}))},7418:function(t,n){n.f=Object.getOwnPropertySymbols},7839:function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,n,e){var r=e("1d80");t.exports=function(t){return Object(r(t))}},"7f9a":function(t,n,e){var r=e("da84"),o=e("8925"),c=r.WeakMap;t.exports="function"===typeof c&&/native code/.test(o(c))},"825a":function(t,n,e){var r=e("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,n,e){var r=e("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,n){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8875:function(t,n,e){var r,o,c;(function(e,u){o=[],r=u,c="function"===typeof r?r.apply(n,o):r,void 0===c||(t.exports=c)})("undefined"!==typeof self&&self,(function(){function t(){var n=Object.getOwnPropertyDescriptor(document,"currentScript");if(!n&&"currentScript"in document&&document.currentScript)return document.currentScript;if(n&&n.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var e,r,o,c=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,u=/@([^@]*):(\d+):(\d+)\s*$/gi,i=c.exec(d.stack)||u.exec(d.stack),f=i&&i[1]||!1,a=i&&i[2]||!1,l=document.location.href.replace(document.location.hash,""),p=document.getElementsByTagName("script");f===l&&(e=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(a-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=e.replace(r,"$1").trim());for(var s=0;s<p.length;s++){if("interactive"===p[s].readyState)return p[s];if(p[s].src===f)return p[s];if(f===l&&p[s].innerHTML&&p[s].innerHTML.trim()===o)return p[s]}return null}}return t}))},8925:function(t,n,e){var r=e("c6cd"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},"90e3":function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},9112:function(t,n,e){var r=e("83ab"),o=e("9bf2"),c=e("5c6c");t.exports=r?function(t,n,e){return o.f(t,n,c(1,e))}:function(t,n,e){return t[n]=e,t}},"94ca":function(t,n,e){var r=e("d039"),o=/#|\.prototype\./,c=function(t,n){var e=i[u(t)];return e==a||e!=f&&("function"==typeof n?r(n):!!n)},u=c.normalize=function(t){return String(t).replace(o,".").toLowerCase()},i=c.data={},f=c.NATIVE="N",a=c.POLYFILL="P";t.exports=c},"9bf2":function(t,n,e){var r=e("83ab"),o=e("0cfb"),c=e("825a"),u=e("c04e"),i=Object.defineProperty;n.f=r?i:function(t,n,e){if(c(t),n=u(n,!0),c(e),o)try{return i(t,n,e)}catch(r){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},a640:function(t,n,e){"use strict";var r=e("d039");t.exports=function(t,n){var e=[][t];return!!e&&r((function(){e.call(null,n||function(){throw 1},1)}))}},a691:function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},ae40:function(t,n,e){var r=e("83ab"),o=e("d039"),c=e("5135"),u=Object.defineProperty,i={},f=function(t){throw t};t.exports=function(t,n){if(c(i,t))return i[t];n||(n={});var e=[][t],a=!!c(n,"ACCESSORS")&&n.ACCESSORS,l=c(n,0)?n[0]:f,p=c(n,1)?n[1]:void 0;return i[t]=!!e&&!o((function(){if(a&&!r)return!0;var t={length:-1};a?u(t,1,{enumerable:!0,get:f}):t[1]=1,e.call(t,l,p)}))}},b64b:function(t,n,e){var r=e("23e7"),o=e("7b0b"),c=e("df75"),u=e("d039"),i=u((function(){c(1)}));r({target:"Object",stat:!0,forced:i},{keys:function(t){return c(o(t))}})},c04e:function(t,n,e){var r=e("861d");t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},c430:function(t,n){t.exports=!1},c6b6:function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},c6cd:function(t,n,e){var r=e("da84"),o=e("ce4e"),c="__core-js_shared__",u=r[c]||o(c,{});t.exports=u},c8ba:function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(r){"object"===typeof window&&(e=window)}t.exports=e},c975:function(t,n,e){"use strict";var r=e("23e7"),o=e("4d64").indexOf,c=e("a640"),u=e("ae40"),i=[].indexOf,f=!!i&&1/[1].indexOf(1,-0)<0,a=c("indexOf"),l=u("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:f||!a||!l},{indexOf:function(t){return f?i.apply(this,arguments)||0:o(this,t,arguments.length>1?arguments[1]:void 0)}})},ca84:function(t,n,e){var r=e("5135"),o=e("fc6a"),c=e("4d64").indexOf,u=e("d012");t.exports=function(t,n){var e,i=o(t),f=0,a=[];for(e in i)!r(u,e)&&r(i,e)&&a.push(e);while(n.length>f)r(i,e=n[f++])&&(~c(a,e)||a.push(e));return a}},cc12:function(t,n,e){var r=e("da84"),o=e("861d"),c=r.document,u=o(c)&&o(c.createElement);t.exports=function(t){return u?c.createElement(t):{}}},ce4e:function(t,n,e){var r=e("da84"),o=e("9112");t.exports=function(t,n){try{o(r,t,n)}catch(e){r[t]=n}return n}},d012:function(t,n){t.exports={}},d039:function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},d066:function(t,n,e){var r=e("428f"),o=e("da84"),c=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,n){return arguments.length<2?c(r[t])||c(o[t]):r[t]&&r[t][n]||o[t]&&o[t][n]}},d1e7:function(t,n,e){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,c=o&&!r.call({1:2},1);n.f=c?function(t){var n=o(this,t);return!!n&&n.enumerable}:r},da84:function(t,n,e){(function(n){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||Function("return this")()}).call(this,e("c8ba"))},df75:function(t,n,e){var r=e("ca84"),o=e("7839");t.exports=Object.keys||function(t){return r(t,o)}},e893:function(t,n,e){var r=e("5135"),o=e("56ef"),c=e("06cf"),u=e("9bf2");t.exports=function(t,n){for(var e=o(n),i=u.f,f=c.f,a=0;a<e.length;a++){var l=e[a];r(t,l)||i(t,l,f(n,l))}}},f772:function(t,n,e){var r=e("5692"),o=e("90e3"),c=r("keys");t.exports=function(t){return c[t]||(c[t]=o(t))}},fb15:function(t,n,e){"use strict";if(e.r(n),"undefined"!==typeof window){var r=window.document.currentScript,o=e("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var c=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(e.p=c[1])}var u=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("el-table",t._g(t._b({},"el-table",t.$attrs,!1),t.$listeners),t._l(t.columns,(function(t){return e("ElTableWrapColumn",{key:t.key||t.prop,attrs:{column:t}})})),1)],1)},i=[],f=function(){var t=this,n=t.$createElement,e=t._self._c||n;return t.column.children?e("el-table-column",{attrs:{label:t.column.label}},t._l(t.column.children,(function(t){return e("ElTableWrapColumn",{key:t.key||t.prop,attrs:{column:t}})})),1):t.column.render?e("el-table-column",t._b({attrs:{width:"300px",prop:t.column.prop,label:t.column.label},scopedSlots:t._u([{key:"default",fn:function(n){return[e("ColumnSlot",{attrs:{render:t.column.render,scope:n,column:t.column}})]}}])},"el-table-column",t.columnConfig,!1)):e("el-table-column",t._b({attrs:{prop:t.column.prop,label:t.column.label}},"el-table-column",t.columnConfig,!1))},a=[],l=(e("c975"),e("b64b"),{name:"ElTableWrapColumn",props:{column:{type:Object,default:function(){return{}}}},components:{ColumnSlot:{functional:!0,props:{render:{type:Function,required:!0},scope:{type:Object,default:function(){return{}}},column:{type:Object,required:!0}},render:function(t,n){return n.props.render(t,n.props.scope,n.props.column)}}},computed:{columnConfig:function(){if(this.column.config)return this.column.config;for(var t={},n=Object.keys(this.column),e=0,r=n;e<r.length;e++){var o=r[e];-1===["key","prop","label","children"].indexOf(o)&&(t[o]=this.column[o])}return t}}}),p=l;function s(t,n,e,r,o,c,u,i){var f,a="function"===typeof t?t.options:t;if(n&&(a.render=n,a.staticRenderFns=e,a._compiled=!0),r&&(a.functional=!0),c&&(a._scopeId="data-v-"+c),u?(f=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(u)},a._ssrRegister=f):o&&(f=i?function(){o.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:o),f)if(a.functional){a._injectStyles=f;var l=a.render;a.render=function(t,n){return f.call(n),l(t,n)}}else{var p=a.beforeCreate;a.beforeCreate=p?[].concat(p,f):[f]}return{exports:t,options:a}}var d=s(p,f,a,!1,null,null,null),b=d.exports,v={name:"ElTableWrap",inheritAttrs:!1,components:{ElTableWrapColumn:b},props:{columns:{type:Array,default:function(){return[]}}}},m=v,y=s(m,u,i,!1,null,null,null),h=y.exports;n["default"]=h},fc6a:function(t,n,e){var r=e("44ad"),o=e("1d80");t.exports=function(t){return r(o(t))}}})["default"]})); //# sourceMappingURL=ElTableWrap.umd.min.js.map