Comparing version 1.0.4 to 1.0.5
@@ -1,1 +0,1 @@ | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=23)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(16)),o=a(n(15)),i=a(n(14));function a(e){return e&&e.__esModule?e:{default:e}}var s=1;t.default={name:"JrTable",props:{data:{type:Array,default:function(){return[]}},showHeader:{type:Boolean,default:!0},border:{type:Boolean,default:!0},defaultExpandAll:{type:Boolean,default:!1},selectOnIndeterminate:{type:Boolean,default:!0}},components:{JrTableBody:r.default,JrTableHeader:o.default},data:function(){return{props:[],store:new i.default(this,{defaultExpandAll:this.defaultExpandAll}),defaultSort:[]}},watch:{data:{immediate:!0,handler:function(e){this.store.commit("setData",e)}},"store.states.isRowSelection":{immediate:!0,handler:function(e){this.store.commit("toggleSelectPorp",e)}},"store.states.isRowExpanded":{immediate:!0,handler:function(e){this.store.commit("toggleExpandPorp",e)}}},created:function(){this.tableId="jr-table_"+s++}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tableBox"},[e._t("default"),e._v(" "),n("table",{staticClass:"modtable"},[e.showHeader?[n("jr-table-header",{ref:"jrTableHeader",attrs:{store:e.store,border:e.border,"default-sort":e.defaultSort}})]:e._e(),e._v(" "),n("jr-table-body",{ref:"jrTableBody",attrs:{store:e.store}})],2)],2)},o=[]},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s){var l=typeof(e=e||{}).default;"object"!==l&&"function"!==l||(e=e.default);var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId=i),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var d=u.render;u.render=function(e,t){return c.call(t),d(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:u}}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],a=i[0],s={id:e+":"+o,css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}n.r(t),n.d(t,"default",function(){return h});var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},a=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},d=null,f="data-vue-ssr-id",p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,n,o){c=n,d=o||{};var a=r(e,t);return S(a),function(t){for(var n=[],o=0;o<a.length;o++){var s=a[o];(l=i[s.id]).refs--,n.push(l)}t?S(a=r(e,t)):a=[];for(o=0;o<n.length;o++){var l;if(0===(l=n[o]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete i[l.id]}}}}function S(e){for(var t=0;t<e.length;t++){var n=e[t],r=i[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(_(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(o=0;o<n.parts.length;o++)a.push(_(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:a}}}}function E(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function _(e){var t,n,r=document.querySelector("style["+f+'~="'+e.id+'"]');if(r){if(c)return u;r.parentNode.removeChild(r)}if(p){var o=l++;r=s||(s=E()),t=b.bind(null,r,o,!1),n=b.bind(null,r,o,!0)}else r=E(),t=function(e,t){var n=t.css,r=t.media,o=t.sourceMap;r&&e.setAttribute("media",r);d.ssrId&&e.setAttribute(f,t.id);o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var O,m=(O=[],function(e,t){return O[e]=t,O.filter(Boolean).join("\n")});function b(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=m(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(e,t,n){var r,o,i={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),s=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=function(e){return document.querySelector(e)}.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),l=null,c=0,u=[],d=n(5);function f(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=i[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(O(r.parts[a],t))}else{var s=[];for(a=0;a<r.parts.length;a++)s.push(O(r.parts[a],t));i[r.id]={id:r.id,refs:1,parts:s}}}}function p(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],a=t.base?i[0]+t.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function h(e,t){var n=s(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=u[u.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),u.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=s(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,o)}}function S(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=u.indexOf(e);t>=0&&u.splice(t,1)}function E(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),_(t,e.attrs),h(e,t),t}function _(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function O(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var a=c++;n=l||(l=E(t)),r=v.bind(null,n,a,!1),o=v.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",_(t,e.attrs),h(e,t),t}(t),r=function(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=d(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),o=function(){S(n),n.href&&URL.revokeObjectURL(n.href)}):(n=E(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){S(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return f(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var a=n[o];(s=i[a.id]).refs--,r.push(s)}e&&f(p(e,t),t);for(o=0;o<r.length;o++){var s;if(0===(s=r[o]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete i[s.id]}}}};var m,b=(m=[],function(e,t){return m[e]=t,m.filter(Boolean).join("\n")});function v(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,".tableBox .modtable{width:100%;border-collapse: collapse;}\r\n.tableBox .modtable td,.tableBox .modtable th{background-color: #fff;font-size: 14px;vertical-align: middle;text-align: left;height: 40px; padding-left: 10px;}\r\n.tableBox .modtable tr:hover>td {background-color: #f6f7f9;}\r\n.tableBox .modtable th {font-size: 14px;background-color: #f6f8f8;border-bottom: 2px solid #e2e5e5;color: #a3b2c6;font-weight: 500;}\r\n.tableBox .modtable .children > td { padding-left: 0; }\r\n.tableBox .modtable .children table th{\r\n background-color: #ecf4ff;\r\n color: #a3b2c6;\r\n}\r\n",""])},function(e,t,n){var r=n(7);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=1,n=arguments.length;t<n;t++){var r=arguments[t]||{};for(var o in r)if(r.hasOwnProperty(o)){var i=r[o];void 0!==i&&(e[o]=i)}}return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(9);(r=o)&&r.__esModule;var i=1;t.default={name:"JrTableColumn",props:{type:{type:String,default:"default"},width:{},minWidth:{},label:String,prop:String,className:String,labelClassName:String,property:String,renderHeader:Function,sortable:{type:[String,Boolean],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},context:{},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function]},data:function(){return{isSubColumn:!1,columns:[]}},computed:{owner:function(){for(var e=this.$parent;e&&!e.tableId;)e=e.$parent;return e},columnOrTableParent:function(){for(var e=this.$parent;e&&!e.tableId&&!e.columnId;)e=e.$parent;return e}},created:function(){var e=this.owner,t=this.columnOrTableParent;this.isSubColumn=e!==t,this.columnId=(t.tableId||t.columnId)+"_column_"+i++;var n=this.type,r=function(e){return void 0!==e&&(e=parseInt(e,10),isNaN(e)&&(e=null)),e}(this.width),o=function(e){return void 0!==e&&(e=parseInt(e,10),isNaN(e)&&(e=80)),e}(this.minWidth),a=function(e,t){var n={};for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];void 0!==o&&(n[r]=o)}return n.minWidth||(n.minWidth=80),n.realWidth=void 0===n.width?n.minWidth:n.width,n}(0,{id:this.columnId,columnKey:this.columnKey,label:this.label,className:this.className,labelClassName:this.labelClassName,property:this.prop||this.property,type:n,renderCell:null,renderHeader:this.renderHeader,minWidth:o,width:r,isColumnGroup:!1,context:this.context,align:this.align?"is-"+this.align:null,headerAlign:this.headerAlign?"is-"+this.headerAlign:this.align?"is-"+this.align:null,sortable:""===this.sortable||this.sortable,sortMethod:this.sortMethod,sortBy:this.sortBy,resizable:this.resizable,showOverflowTooltip:this.showOverflowTooltip||this.showTooltipWhenOverflow,formatter:this.formatter,selectable:this.selectable,reserveSelection:this.reserveSelection,fixed:""===this.fixed||this.fixed,filterMethod:this.filterMethod,filters:this.filters,filterable:this.filters||this.filterMethod,filterMultiple:this.filterMultiple,filterOpened:!1,filteredValue:this.filteredValue||[],filterPlacement:this.filterPlacement||"",index:this.index});this.columnConfig=a;var s=this;"expand"===n&&(e.renderExpanded=function(e){return s.$scopedSlots.default?s.$scopedSlots.default(e):s.$slots.default},e.store.commit("setRowExpanded",!0)),"section"===n&&e.store.commit("setRowSelection",!0)},mounted:function(){var e=this.owner;this.columnOrTableParent;e.store.commit("insertColumn",this.columnConfig,void 0)},render:function(e){}}},function(e){e.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},function(e,t){e.exports=function(e,t,n,r){var o,i=0;return"boolean"!=typeof t&&(r=n,n=t,t=void 0),function(){var a=this,s=Number(new Date)-i,l=arguments;function c(){i=Number(new Date),n.apply(a,l)}r&&!o&&c(),o&&clearTimeout(o),void 0===r&&s>e?c():!0!==t&&(o=setTimeout(r?function(){o=void 0}:c,void 0===r?e-s:e))}}},function(e,t,n){var r=n(12);e.exports=function(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(13);(r=o)&&r.__esModule,n(11);var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Table is required.");for(var n in this.table=e,this.states={rowKey:null,_columns:[],originColumns:[],columns:[],fixedColumns:[],rightFixedColumns:[],leafColumns:[],fixedLeafColumns:[],rightFixedLeafColumns:[],leafColumnsLength:0,fixedLeafColumnsLength:0,rightFixedLeafColumnsLength:0,isComplex:!1,isRowExpanded:!1,isRowSelection:!1,filteredData:null,data:null,sortingColumn:null,sortProp:null,sortOrder:null,isAllSelected:!1,selection:[],reserveSelection:!1,selectable:null,currentRow:null,hoverRow:null,filters:{},expandRows:[],defaultExpandAll:!1,selectOnIndeterminate:!1},t)t.hasOwnProperty(n)&&this.states.hasOwnProperty(n)&&(this.states[n]=t[n])};i.prototype.updateData=function(){var e=this.table,t=e.$refs;"jrTableBody"in t&&"jrTableHeader"in t&&(e.$refs.jrTableBody.updateData(),e.$refs.jrTableHeader.updateData())},i.prototype.setSelections=function(){var e=this.table,t=this.states;t.selection=function(e){return e.data.filter(function(e,t){return e.selected})}(t);var n=t.selection;e.$emit("selection-change",n?n.slice():[]),this.updateData()},i.prototype.toggleDataPorp=function(e,t,n){this.states.data.forEach(function(r,o,i){t?r[e]=r[e]||n||!1:delete r[e]})},i.prototype.mutations={setData:function(e,t){var n=e._data!==t;e._data=t,e.data=function(e,t){var n=t.sortingColumn;return n&&"string"!=typeof n.sortable?orderBy(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy):e}(t||[],e),e.reserveSelection||(n?(this.clearSelection(),this.updateData()):this.cleanSelection()),e.defaultExpandAll&&(this.states.expandRows=(e.data||[]).slice(0))},setRowExpanded:function(e,t){e.isRowExpanded=t},setRowSelection:function(e,t){e.isRowSelection=t},toggleSelectPorp:function(e,t){this.toggleDataPorp("selected",t)},toggleExpandPorp:function(e,t){var n=e.defaultExpandAll;this.toggleDataPorp("isExpand",t,t?n:void 0)},rowSelectedChanged:function(e,t){t.selected=!t.selected,this.setSelections()},allRowSelectedChanged:function(e){var t=e.data,n=t.find(function(e){return e.selected});t.forEach(function(e){e.selected=!n}),this.setSelections()},rowExpandChanged:function(e,t){t.isExpand=!t.isExpand},insertColumn:function(e,t,n){var r=e.columns;void 0!==n?r.splice(n,0,t):r.push(t),"selection"===t.type&&(e.selectable=t.selectable,e.reserveSelection=t.reserveSelection)}};i.prototype.isSelected=function(e){return(this.states.selection||[]).indexOf(e)>-1},i.prototype.clearSelection=function(){var e=this.states;e.isAllSelected=!1;var t=e.selection;e.selection.length&&(e.selection=[]),t.length>0&&this.table.$emit("selection-change",e.selection?e.selection.slice():[])},i.prototype.cleanSelection=function(){var e=this.states.selection||[],t=this.states.data,n=void 0;(n=e.filter(function(e){return-1===t.indexOf(e)})).forEach(function(t){e.splice(e.indexOf(t),1)}),n.length&&this.table.$emit("selection-change",e?e.slice():[])},i.prototype.commit=function(e){var t=this.mutations;if(!t[e])throw new Error("Action not found: "+e);for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];t[e].apply(this,[this.states].concat(r))},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"JrTableHead",props:{store:{require:!0},labels:{type:Array,default:function(){return[]}}},data:function(){return{data:[]}},computed:{halfCheck:function(){return this.selectNum!==this.data.length&&0!==this.selectNum},selectNum:function(){var e=0,t=!0,n=!1,r=void 0;try{for(var o,i=this.data[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){!0===o.value.selected&&e++}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}return e},allCheck:function(){return this.selectNum===this.data.length&&0!==this.selectNum},columns:function(){return this.store.states.columns},table:function(){return this.$parent}},methods:{updateData:function(){this.data=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(this.store.states.data))},allSelectClick:function(e,t){this.store.commit("allRowSelectedChanged"),this.updateData()},isSelected:function(){return this.allCheck},isHalfSelected:function(){return this.halfCheck}},created:function(){this.data=this.store.states.data},render:function(e){var t=this;return e("thead",[e("tr",[this._l(this.columns,function(n){return"section"===n.type?e("th",{class:"section-td"},[e("i",{class:[{"section-checkbox":!0,isSelected:t.isSelected(),isHalfSelected:t.isHalfSelected()}],on:{click:function(e){return t.allSelectClick(e)}}})]):e("th",[n.label])})])])}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"JrTableBody",props:{store:{require:!0},props:{type:Array,default:function(){return[]}}},data:function(){return{data:[]}},methods:{updateData:function(){this.data=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(this.store.states.data))},getCells:function(e,t){var n=this;return this._l(this.columns,function(r){return n.getTdAppend(e,r,t)})},getTdAppend:function(e,t,n){var o,i=this,a=this.$createElement;return"index"===t.type?a("td",[" ",n+1," "]):"expand"===t.type?a("td",{class:"arrowTd"},[a("i",(o={class:"arrow down"},r(o,"class",[{arrow:!0,down:this.isDown(e)}]),r(o,"on",{click:function(t){return i.expandClick(t,e)}}),o))]):"section"===t.type?a("td",{class:"section-td"},[a("i",{class:[{"section-checkbox":!0,isSelected:this.isSelected(e)}],on:{click:function(t){return i.simpleSelectClick(t,e)}}})]):a("td",[" ",e[t.property]," "])},isSelected:function(e){return e.selected},isDown:function(e){return e.isExpand},simpleSelectClick:function(e,t){this.store.commit("rowSelectedChanged",t),this.updateData()},expandClick:function(e,t){this.store.commit("rowExpandChanged",t),this.updateData()}},created:function(){this.data=this.store.states.data},computed:{table:function(){return this.$parent},columns:function(){return this.store.states.columns},isRowExpanded:function(){return this.store.states.isRowExpanded}},render:function(e){var t=this;return e("tbody",[this._l(this.data,function(n,r){return[e("tr",{class:[{active:t.isDown(n)}]},[t.getCells(n,r)]),t.isRowExpanded?e("tr",{class:"children",directives:[{name:"show",value:n.isExpand}]},[e("td",{attrs:{colspan:t.columns.length}},[t.table.renderExpanded?t.table.renderExpanded({row:n,index:r}):""])]):""]})])}}},function(e,t,n){e.exports=n.p+"images/downtable-ffe3c.png"},function(e,t,n){e.exports=n.p+"images/uptable-a3ae7.png"},function(e,t){e.exports=function(e){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t,n){var r=n(19);(e.exports=n(2)(!1)).push([e.i,'.section-td{width:40px}.section-td .section-checkbox{position:relative;display:inline-block;width:14px;height:14px;border:1px solid #efefef;cursor:pointer;background-color:#fff}.section-td .section-checkbox.isSelected{border-color:#3ba0ff}.section-td .section-checkbox.isSelected:after{border-color:#3ba0ff;border-left:0;border-top:0;height:8px;left:5px;top:1px;transform:rotate(45deg);width:3px;-webkit-transform-origin:center;transform-origin:center}.section-td .section-checkbox:after{box-sizing:content-box;content:"";position:absolute;border:2px solid transparent}.section-td .section-checkbox.isHalfSelected:after{border-color:#3ba0ff;border-width:1px;width:6px;top:6px;left:3px}.arrowTd{cursor:pointer;width:40px;box-sizing:border-box}.arrowTd .arrow{background-image:url('+r(n(18))+");background-repeat:no-repeat;display:inline-block;width:19px;height:19px}.arrowTd .arrow.down{background-image:url("+r(n(17))+")}.tableBox .modtable tr.active td{background-color:#3ba0ff;color:#fff}",""])},function(e,t,n){var r=n(20);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(4).default)("52bef96d",r,!0,{})},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,function(){return r[e]})}(i);var a=n(1),s=n(3);var l=function(e){n(21)},c=Object(s.a)(o.a,a.a,a.b,!1,l,null,null);t.default=c.exports},function(e,t,n){"use strict";var r=i(n(22)),o=i(n(10));function i(e){return e&&e.__esModule?e:{default:e}}n(8),t.install=function(e,t){e.component(r.default.name,r.default),e.component(o.default.name,o.default)}}])}); | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=23)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(16)),o=a(n(15)),i=a(n(14));function a(e){return e&&e.__esModule?e:{default:e}}var s=1;t.default={name:"JrTable",props:{data:{type:Array,default:function(){return[]}},showHeader:{type:Boolean,default:!0},border:{type:Boolean,default:!0},defaultExpandAll:{type:Boolean,default:!1},selectOnIndeterminate:{type:Boolean,default:!0}},components:{JrTableBody:r.default,JrTableHeader:o.default},data:function(){return{props:[],store:new i.default(this,{defaultExpandAll:this.defaultExpandAll}),defaultSort:[]}},watch:{data:{immediate:!0,handler:function(e){this.store.commit("setData",e)}},"store.states.isRowSelection":{immediate:!0,handler:function(e){this.store.commit("toggleSelectPorp",e)}},"store.states.isRowExpanded":{immediate:!0,handler:function(e){this.store.commit("toggleExpandPorp",e)}}},created:function(){this.tableId="jr-table_"+s++}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tableBox"},[e._t("default"),e._v(" "),n("table",{staticClass:"modtable"},[e.showHeader?[n("jr-table-header",{ref:"jrTableHeader",attrs:{store:e.store,border:e.border,"default-sort":e.defaultSort}})]:e._e(),e._v(" "),n("jr-table-body",{ref:"jrTableBody",attrs:{store:e.store}})],2)],2)},o=[]},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s){var l=typeof(e=e||{}).default;"object"!==l&&"function"!==l||(e=e.default);var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId=i),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var d=u.render;u.render=function(e,t){return c.call(t),d(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:u}}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],a=i[0],s={id:e+":"+o,css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}n.r(t),n.d(t,"default",function(){return h});var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},a=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},d=null,f="data-vue-ssr-id",p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,n,o){c=n,d=o||{};var a=r(e,t);return S(a),function(t){for(var n=[],o=0;o<a.length;o++){var s=a[o];(l=i[s.id]).refs--,n.push(l)}t?S(a=r(e,t)):a=[];for(o=0;o<n.length;o++){var l;if(0===(l=n[o]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete i[l.id]}}}}function S(e){for(var t=0;t<e.length;t++){var n=e[t],r=i[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(_(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(o=0;o<n.parts.length;o++)a.push(_(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:a}}}}function E(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function _(e){var t,n,r=document.querySelector("style["+f+'~="'+e.id+'"]');if(r){if(c)return u;r.parentNode.removeChild(r)}if(p){var o=l++;r=s||(s=E()),t=b.bind(null,r,o,!1),n=b.bind(null,r,o,!0)}else r=E(),t=function(e,t){var n=t.css,r=t.media,o=t.sourceMap;r&&e.setAttribute("media",r);d.ssrId&&e.setAttribute(f,t.id);o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var O,m=(O=[],function(e,t){return O[e]=t,O.filter(Boolean).join("\n")});function b(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=m(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(e,t,n){var r,o,i={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),s=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=function(e){return document.querySelector(e)}.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),l=null,c=0,u=[],d=n(5);function f(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=i[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(O(r.parts[a],t))}else{var s=[];for(a=0;a<r.parts.length;a++)s.push(O(r.parts[a],t));i[r.id]={id:r.id,refs:1,parts:s}}}}function p(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],a=t.base?i[0]+t.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function h(e,t){var n=s(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=u[u.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),u.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=s(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,o)}}function S(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=u.indexOf(e);t>=0&&u.splice(t,1)}function E(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),_(t,e.attrs),h(e,t),t}function _(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function O(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var a=c++;n=l||(l=E(t)),r=v.bind(null,n,a,!1),o=v.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",_(t,e.attrs),h(e,t),t}(t),r=function(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=d(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),o=function(){S(n),n.href&&URL.revokeObjectURL(n.href)}):(n=E(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){S(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return f(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var a=n[o];(s=i[a.id]).refs--,r.push(s)}e&&f(p(e,t),t);for(o=0;o<r.length;o++){var s;if(0===(s=r[o]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete i[s.id]}}}};var m,b=(m=[],function(e,t){return m[e]=t,m.filter(Boolean).join("\n")});function v(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,".tableBox .modtable{width:100%;border-collapse: collapse;}\r\n.tableBox .modtable td,.tableBox .modtable th{background-color: #fff;font-size: 14px;vertical-align: middle;text-align: left;height: 40px; padding-left: 10px;}\r\n.tableBox .modtable tr:hover>td {background-color: #f6f7f9;}\r\n.tableBox .modtable th {font-size: 14px;background-color: #f6f8f8;border-bottom: 2px solid #e2e5e5;color: #a3b2c6;font-weight: 500;}\r\n.tableBox .modtable .children > td { padding-left: 0; }\r\n.tableBox .modtable .children table th{\r\n background-color: #ecf4ff;\r\n color: #a3b2c6;\r\n}\r\n",""])},function(e,t,n){var r=n(7);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=1,n=arguments.length;t<n;t++){var r=arguments[t]||{};for(var o in r)if(r.hasOwnProperty(o)){var i=r[o];void 0!==i&&(e[o]=i)}}return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(9);(r=o)&&r.__esModule;var i=1;t.default={name:"JrTableColumn",props:{type:{type:String,default:"default"},width:{},minWidth:{},label:String,prop:String,className:String,labelClassName:String,property:String,renderHeader:Function,sortable:{type:[String,Boolean],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},context:{},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function]},data:function(){return{isSubColumn:!1,columns:[]}},computed:{owner:function(){for(var e=this.$parent;e&&!e.tableId;)e=e.$parent;return e},columnOrTableParent:function(){for(var e=this.$parent;e&&!e.tableId&&!e.columnId;)e=e.$parent;return e}},created:function(){var e=this.owner,t=this.columnOrTableParent;this.isSubColumn=e!==t,this.columnId=(t.tableId||t.columnId)+"_column_"+i++;var n=this.type,r=function(e){return void 0!==e&&(e=parseInt(e,10),isNaN(e)&&(e=null)),e}(this.width),o=function(e){return void 0!==e&&(e=parseInt(e,10),isNaN(e)&&(e=80)),e}(this.minWidth),a=function(e,t){var n={};for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];void 0!==o&&(n[r]=o)}return n.minWidth||(n.minWidth=80),n.realWidth=void 0===n.width?n.minWidth:n.width,n}(0,{id:this.columnId,columnKey:this.columnKey,label:this.label,className:this.className,labelClassName:this.labelClassName,property:this.prop||this.property,type:n,renderCell:null,renderHeader:this.renderHeader,minWidth:o,width:r,isColumnGroup:!1,context:this.context,align:this.align?"is-"+this.align:null,headerAlign:this.headerAlign?"is-"+this.headerAlign:this.align?"is-"+this.align:null,sortable:""===this.sortable||this.sortable,sortMethod:this.sortMethod,sortBy:this.sortBy,resizable:this.resizable,showOverflowTooltip:this.showOverflowTooltip||this.showTooltipWhenOverflow,formatter:this.formatter,selectable:this.selectable,reserveSelection:this.reserveSelection,fixed:""===this.fixed||this.fixed,filterMethod:this.filterMethod,filters:this.filters,filterable:this.filters||this.filterMethod,filterMultiple:this.filterMultiple,filterOpened:!1,filteredValue:this.filteredValue||[],filterPlacement:this.filterPlacement||"",index:this.index});this.columnConfig=a;var s=this;("expand"===n&&(e.renderExpanded=function(e){return s.$scopedSlots.default?s.$scopedSlots.default(e):s.$slots.default},e.store.commit("setRowExpanded",!0)),"section"===n&&e.store.commit("setRowSelection",!0),"default"!==n||a.property)||(e["renderDefault"+a.id]=function(e){return s.$scopedSlots.default?s.$scopedSlots.default(e):s.$slots.default})},mounted:function(){var e=this.owner;this.columnOrTableParent;e.store.commit("insertColumn",this.columnConfig,void 0)},render:function(e){}}},function(e){e.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},function(e,t){e.exports=function(e,t,n,r){var o,i=0;return"boolean"!=typeof t&&(r=n,n=t,t=void 0),function(){var a=this,s=Number(new Date)-i,l=arguments;function c(){i=Number(new Date),n.apply(a,l)}r&&!o&&c(),o&&clearTimeout(o),void 0===r&&s>e?c():!0!==t&&(o=setTimeout(r?function(){o=void 0}:c,void 0===r?e-s:e))}}},function(e,t,n){var r=n(12);e.exports=function(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(13);(r=o)&&r.__esModule,n(11);var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Table is required.");for(var n in this.table=e,this.states={rowKey:null,_columns:[],originColumns:[],columns:[],fixedColumns:[],rightFixedColumns:[],leafColumns:[],fixedLeafColumns:[],rightFixedLeafColumns:[],leafColumnsLength:0,fixedLeafColumnsLength:0,rightFixedLeafColumnsLength:0,isComplex:!1,isRowExpanded:!1,isRowSelection:!1,filteredData:null,data:null,sortingColumn:null,sortProp:null,sortOrder:null,isAllSelected:!1,selection:[],reserveSelection:!1,selectable:null,currentRow:null,hoverRow:null,filters:{},expandRows:[],defaultExpandAll:!1,selectOnIndeterminate:!1},t)t.hasOwnProperty(n)&&this.states.hasOwnProperty(n)&&(this.states[n]=t[n])};i.prototype.updateData=function(){var e=this.table,t=e.$refs;"jrTableBody"in t&&"jrTableHeader"in t&&(e.$refs.jrTableBody.updateData(),e.$refs.jrTableHeader.updateData())},i.prototype.setSelections=function(){var e=this.table,t=this.states;t.selection=function(e){return e.data.filter(function(e,t){return e.selected})}(t);var n=t.selection;e.$emit("selection-change",n?n.slice():[]),this.updateData()},i.prototype.toggleDataPorp=function(e,t,n){this.states.data.forEach(function(r,o,i){t?r[e]=r[e]||n||!1:delete r[e]})},i.prototype.mutations={setData:function(e,t){var n=e._data!==t;e._data=t,e.data=function(e,t){var n=t.sortingColumn;return n&&"string"!=typeof n.sortable?orderBy(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy):e}(t||[],e),e.reserveSelection||(n?(this.clearSelection(),this.updateData()):(this.cleanSelection(),this.updateData())),e.defaultExpandAll&&(this.states.expandRows=(e.data||[]).slice(0))},setRowExpanded:function(e,t){e.isRowExpanded=t},setRowSelection:function(e,t){e.isRowSelection=t},toggleSelectPorp:function(e,t){this.toggleDataPorp("selected",t)},toggleExpandPorp:function(e,t){var n=e.defaultExpandAll;this.toggleDataPorp("isExpand",t,t?n:void 0)},rowSelectedChanged:function(e,t){t.selected=!t.selected,this.setSelections()},allRowSelectedChanged:function(e){var t=e.data,n=t.find(function(e){return e.selected});t.forEach(function(e){e.selected=!n}),this.setSelections()},rowExpandChanged:function(e,t){t.isExpand=!t.isExpand},insertColumn:function(e,t,n){var r=e.columns;void 0!==n?r.splice(n,0,t):r.push(t),"selection"===t.type&&(e.selectable=t.selectable,e.reserveSelection=t.reserveSelection)}};i.prototype.isSelected=function(e){return(this.states.selection||[]).indexOf(e)>-1},i.prototype.clearSelection=function(){var e=this.states;e.isAllSelected=!1;var t=e.selection;e.selection.length&&(e.selection=[]),t.length>0&&this.table.$emit("selection-change",e.selection?e.selection.slice():[])},i.prototype.cleanSelection=function(){var e=this.states.selection||[],t=this.states.data,n=void 0;(n=e.filter(function(e){return-1===t.indexOf(e)})).forEach(function(t){e.splice(e.indexOf(t),1)}),n.length&&this.table.$emit("selection-change",e?e.slice():[])},i.prototype.commit=function(e){var t=this.mutations;if(!t[e])throw new Error("Action not found: "+e);for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];t[e].apply(this,[this.states].concat(r))},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"JrTableHead",props:{store:{require:!0},labels:{type:Array,default:function(){return[]}}},data:function(){return{data:[]}},computed:{halfCheck:function(){return this.selectNum!==this.data.length&&0!==this.selectNum},selectNum:function(){var e=0,t=!0,n=!1,r=void 0;try{for(var o,i=this.data[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){!0===o.value.selected&&e++}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}return e},allCheck:function(){return this.selectNum===this.data.length&&0!==this.selectNum},columns:function(){return this.store.states.columns},table:function(){return this.$parent}},methods:{updateData:function(){this.data=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(this.store.states.data))},allSelectClick:function(e,t){this.store.commit("allRowSelectedChanged"),this.updateData()},isSelected:function(){return this.allCheck},isHalfSelected:function(){return this.halfCheck}},created:function(){this.data=this.store.states.data},render:function(e){var t=this;return e("thead",[e("tr",[this._l(this.columns,function(n){return"section"===n.type?e("th",{class:"section-td"},[e("i",{class:[{"section-checkbox":!0,isSelected:t.isSelected(),isHalfSelected:t.isHalfSelected()}],on:{click:function(e){return t.allSelectClick(e)}}})]):e("th",[n.label])})])])}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"JrTableBody",props:{store:{require:!0},props:{type:Array,default:function(){return[]}}},data:function(){return{data:[]}},methods:{updateData:function(){this.data=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(this.store.states.data))},getCells:function(e,t){var n=this;return this._l(this.columns,function(r){return n.getTdAppend(e,r,t)})},getTdAppend:function(e,t,n){var o,i=this,a=this.$createElement;return"index"===t.type?a("td",[" ",n+1," "]):"expand"===t.type?a("td",{class:"arrowTd"},[a("i",(o={class:"arrow down"},r(o,"class",[{arrow:!0,down:this.isDown(e)}]),r(o,"on",{click:function(t){return i.expandClick(t,e)}}),o))]):"section"===t.type?a("td",{class:"section-td"},[a("i",{class:[{"section-checkbox":!0,isSelected:this.isSelected(e)}],on:{click:function(t){return i.simpleSelectClick(t,e)}}})]):a("td",[" ",t.property?e[t.property]:this.table["renderDefault"+t.id]?this.table["renderDefault"+t.id]({row:e,index:n}):""])},isSelected:function(e){return e.selected},isDown:function(e){return e.isExpand},simpleSelectClick:function(e,t){this.store.commit("rowSelectedChanged",t),this.updateData()},expandClick:function(e,t){this.store.commit("rowExpandChanged",t),this.updateData()}},created:function(){this.data=this.store.states.data},computed:{table:function(){return this.$parent},columns:function(){return this.store.states.columns},isRowExpanded:function(){return this.store.states.isRowExpanded}},render:function(e){var t=this;return e("tbody",[this._l(this.data,function(n,r){return[e("tr",{class:[{active:t.isDown(n)}]},[t.getCells(n,r)]),t.isRowExpanded?e("tr",{class:"children",directives:[{name:"show",value:n.isExpand}]},[e("td",{attrs:{colspan:t.columns.length}},[t.table.renderExpanded?t.table.renderExpanded({row:n,index:r}):""])]):""]})])}}},function(e,t,n){e.exports=n.p+"images/downtable-ffe3c.png"},function(e,t,n){e.exports=n.p+"images/uptable-a3ae7.png"},function(e,t){e.exports=function(e){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t,n){var r=n(19);(e.exports=n(2)(!1)).push([e.i,'.section-td{width:40px}.section-td .section-checkbox{position:relative;display:inline-block;width:14px;height:14px;border:1px solid #efefef;cursor:pointer;background-color:#fff}.section-td .section-checkbox.isSelected{border-color:#3ba0ff}.section-td .section-checkbox.isSelected:after{border-color:#3ba0ff;border-left:0;border-top:0;height:8px;left:5px;top:1px;transform:rotate(45deg);width:3px;-webkit-transform-origin:center;transform-origin:center}.section-td .section-checkbox:after{box-sizing:content-box;content:"";position:absolute;border:2px solid transparent}.section-td .section-checkbox.isHalfSelected:after{border-color:#3ba0ff;border-width:1px;width:6px;top:6px;left:3px}.arrowTd{cursor:pointer;width:40px;box-sizing:border-box}.arrowTd .arrow{background-image:url('+r(n(18))+");background-repeat:no-repeat;display:inline-block;width:19px;height:19px}.arrowTd .arrow.down{background-image:url("+r(n(17))+")}.tableBox .modtable tr.active td{background-color:#3ba0ff;color:#fff}",""])},function(e,t,n){var r=n(20);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(4).default)("52bef96d",r,!0,{})},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,function(){return r[e]})}(i);var a=n(1),s=n(3);var l=function(e){n(21)},c=Object(s.a)(o.a,a.a,a.b,!1,l,null,null);t.default=c.exports},function(e,t,n){"use strict";var r=i(n(22)),o=i(n(10));function i(e){return e&&e.__esModule?e:{default:e}}n(8),t.install=function(e,t){e.component(r.default.name,r.default),e.component(o.default.name,o.default)}}])}); |
{ | ||
"name": "jr-table", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"main": "./dist/jr-table.min.js", | ||
@@ -5,0 +5,0 @@ "author": "wudongyue", |
import Vue from 'vue' | ||
import App from './index.vue'; | ||
import jrtable from '../table' | ||
import jrtable from '../dist/jr-table.min.js' | ||
Vue.use(jrtable) | ||
@@ -6,0 +6,0 @@ |
@@ -53,3 +53,9 @@ | ||
return <td> { row[ column['property'] ] } </td> | ||
return <td> { | ||
column['property']? | ||
(row[ column['property'] ] ) | ||
: | ||
(this.table['renderDefault' + column.id] ? this.table['renderDefault' + column.id]({row, index}):'') | ||
} | ||
</td> | ||
}, | ||
@@ -86,3 +92,2 @@ isSelected(row){ | ||
render(h) { | ||
return ( | ||
@@ -89,0 +94,0 @@ <tbody> |
@@ -187,3 +187,3 @@ | ||
owner.store.commit('setRowExpanded', true) | ||
} | ||
} | ||
@@ -194,2 +194,12 @@ // 如果是section ,在原始数据上内部添加_selected字段, 如果是expand,添加 isExpand | ||
} | ||
// 默认,没有传prop, 可能是操作项 | ||
if(type === 'default' && !column.property) { | ||
var _key = 'renderDefault' + column.id; | ||
owner[_key] = function(data) { | ||
return _self.$scopedSlots.default | ||
? _self.$scopedSlots.default(data) | ||
: _self.$slots.default; | ||
} | ||
} | ||
}, | ||
@@ -196,0 +206,0 @@ mounted() { |
@@ -14,9 +14,2 @@ | ||
const getKeysMap = function(array, rowKey) { | ||
const arrayMap = {}; | ||
(array || []).forEach((row, index) => { | ||
arrayMap[getRowIdentity(row, rowKey)] = { row, index }; | ||
}); | ||
return arrayMap; | ||
}; | ||
@@ -188,4 +181,3 @@ // 切换行的选中状态 | ||
// this.updateCurrentRow(); | ||
if (!states.reserveSelection) { | ||
@@ -200,3 +192,5 @@ if (dataInstanceChanged) { | ||
// 数组引用未变化,清除内部变更(section) | ||
this.cleanSelection(); | ||
this.updateData() | ||
} | ||
@@ -203,0 +197,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61178
790