2019-11-20 18:47:49 +08:00
|
|
|
|
/*!
|
|
|
|
|
* @Title: xm-select
|
|
|
|
|
* @Version: 1.1.0
|
|
|
|
|
* @Description:基于layui的多选解决方案
|
|
|
|
|
* @Site: https://gitee.com/maplemei/xm-select
|
|
|
|
|
* @Author: maplemei
|
|
|
|
|
* @License:Apache License 2.0
|
|
|
|
|
*/!function(e){function t(t){for(var n,r,o=t[0],a=t[1],s=0,c=[];s<o.length;s++)r=o[s],Object.prototype.hasOwnProperty.call(i,r)&&i[r]&&c.push(i[r][0]),i[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(l&&l(t);c.length;)c.shift()()}var n={},i={0:0};function r(t){if(n[t])return n[t].exports;var i=n[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.e=function(e){var t=[],n=i[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,r){n=i[e]=[t,r]}));t.push(n[2]=o);var a,s=document.createElement("script");s.charset="utf-8",s.timeout=120,r.nc&&s.setAttribute("nonce",r.nc),s.src=function(e){return r.p+"static/"+({}[e]||e)+".js"}(e);var l=new Error;a=function(t){s.onerror=s.onload=null,clearTimeout(c);var n=i[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",l.name="ChunkLoadError",l.type=r,l.request=o,n[1](l)}i[e]=void 0}};var c=setTimeout((function(){a({type:"timeout",target:s})}),12e4);s.onerror=s.onload=a,document.head.appendChild(s)}return Promise.all(t)},r.m=e,r.c=n,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="./",r.oe=function(e){throw console.error(e),e};var o=window.webpackJsonp=window.webpackJsonp||[],a=o.push.bind(o);o.push=t,o=o.slice();for(var s=0;s<o.length;s++)t(o[s]);var l=a;r(r.s=221)}([function(e,t,n){var i=n(2),r=n(22),o=n(12),a=n(13),s=n(23),l=function(e,t,n){var c,d,u,p,h=e&l.F,f=e&l.G,_=e&l.S,m=e&l.P,g=e&l.B,b=f?i:_?i[t]||(i[t]={}):(i[t]||{}).prototype,v=f?r:r[t]||(r[t]={}),E=v.prototype||(v.prototype={});for(c in f&&(n=t),n)u=((d=!h&&b&&void 0!==b[c])?b:n)[c],p=g&&d?s(u,i):m&&"function"==typeof u?s(Function.call,u):u,b&&a(b,c,u,e&l.U),v[c]!=u&&o(v,c,p),m&&E[c]!=u&&(E[c]=u)};i.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){var i=n(4);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var i=n(65)("wks"),r=n(41),o=n(2).Symbol,a="function"==typeof o;(e.exports=function(e){return i[e]||(i[e]=a&&o[e]||(a?o:r)("Symbol."+e))}).store=i},function(e,t,n){var i=n(25),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t,n){e.exports=!n(3)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var i=n(1),r=n(155),o=n(28),a=Object.defineProperty;t.f=n(7)?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(29);e.exports=function(e){return Object(i(e))}},function(e,t,n){"use strict";n.r(t),function(e,n){
|
2019-09-25 17:47:38 +08:00
|
|
|
|
/*!
|
|
|
|
|
* Vue.js v2.6.10
|
|
|
|
|
* (c) 2014-2019 Evan You
|
|
|
|
|
* Released under the MIT License.
|
|
|
|
|
*/
|
2019-11-22 20:33:17 +08:00
|
|
|
|
var i=Object.freeze({});function r(e){return null==e}function o(e){return null!=e}function a(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function l(e){return null!==e&&"object"==typeof e}var c=Object.prototype.toString;function d(e){return"[object Object]"===c.call(e)}function u(e){return"[object RegExp]"===c.call(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function h(e){return o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function f(e){return null==e?"":Array.isArray(e)||d(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function _(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),i=e.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}m("slot,component",!0);var g=m("key,ref,slot,slot-scope,is");function b(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var v=Object.prototype.hasOwnProperty;function E(e,t){return v.call(e,t)}function S(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var y=/-(\w)/g,x=S((function(e){return e.replace(y,(function(e,t){return t?t.toUpperCase():""}))})),C=S((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),T=/\B([A-Z])/g,w=S((function(e){return e.replace(T,"-$1").toLowerCase()}));var O=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function N(e,t){t=t||0;for(var n=e.length-t,i=new Array(n);n--;)i[n]=e[n+t];return i}function R(e,t){for(var n in t)e[n]=t[n];return e}function I(e){for(var t={},n=0;n<e.length;n++)e[n]&&R(t,e[n]);return t}function k(e,t,n){}var A=function(e,t,n){return!1},D=function(e){return e};function M(e,t){if(e===t)return!0;var n=l(e),i=l(t);if(!n||!i)return!n&&!i&&String(e)===String(t);try{var r=Array.isArray(e),o=Array.isArray(t);if(r&&o)return e.length===t.length&&e.every((function(e,n){return M(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(r||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return M(e[n],t[n])}))}catch(e){return!1}}function P(e,t){for(var n=0;n<e.length;n++)if(M(e[n],t))return n;return-1}function L(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var F="data-server-rendered",B=["component","directive","filter"],U=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],G={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:A,isReservedAttr:A,isUnknownElement:A,getTagNamespace:k,parsePlatformTagName:D,mustUseProp:A,async:!0,_lifecycleHooks:U},$=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function V(e,t,n,i){Object.defineProperty(e,t,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var z=new RegExp("[^"+$.source+".$_\\d]");var Y,H="__proto__"in{},j="undefined"!=typeof window,q="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,W=q&&WXEnvironment.platform.toLowerCase(),K=j&&window.navigator.userAgent.toLowerCase(),Q=K&&/msie|trident/.test(K),X=K&&K.indexOf("msie 9.0")>0,Z=K&&K.indexOf("edge/")>0,J=(K&&K.indexOf("android"),K&&/iphone|ipad|ipod|ios/.test(K)||"ios"===W),ee=(K&&/chrome\/\d+/.test(K),K&&/phantomjs/.test(K),K&&K.match(/firefox\/(\d+)/)),te={}.watch,ne=!1;if(j)try{var ie={};Object.defineProperty(ie,"passive",{get:function(){ne=!0}}),window.addEventListener("test-passive",null,ie)}catch(e){}var re=function(){return void 0===Y&&(Y=!j&&!q&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),Y},oe=j&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function
|
2019-09-25 17:47:38 +08:00
|
|
|
|
/*!
|
|
|
|
|
* vue-router v3.1.3
|
|
|
|
|
* (c) 2019 Evan You
|
|
|
|
|
* @license MIT
|
2019-11-21 13:53:29 +08:00
|
|
|
|
*/function i(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function r(e,t){return t instanceof e||t&&(t.name===e.name||t._name===e._name)}function o(e,t){for(var n in t)e[n]=t[n];return e}var a={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,i=t.children,r=t.parent,a=t.data;a.routerView=!0;for(var s=r.$createElement,l=n.name,c=r.$route,d=r._routerViewCache||(r._routerViewCache={}),u=0,p=!1;r&&r._routerRoot!==r;){var h=r.$vnode&&r.$vnode.data;h&&(h.routerView&&u++,h.keepAlive&&r._inactive&&(p=!0)),r=r.$parent}if(a.routerViewDepth=u,p)return s(d[l],a,i);var f=c.matched[u];if(!f)return d[l]=null,s();var _=d[l]=f.components[l];a.registerRouteInstance=function(e,t){var n=f.instances[l];(t&&n!==e||!t&&n===e)&&(f.instances[l]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){f.instances[l]=t.componentInstance},a.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==f.instances[l]&&(f.instances[l]=e.componentInstance)};var m=a.props=function(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}(c,f.props&&f.props[l]);if(m){m=a.props=o({},m);var g=a.attrs=a.attrs||{};for(var b in m)_.props&&b in _.props||(g[b]=m[b],delete m[b])}return s(_,a,i)}};var s=/[!'()*]/g,l=function(e){return"%"+e.charCodeAt(0).toString(16)},c=/%2C/g,d=function(e){return encodeURIComponent(e).replace(s,l).replace(c,",")},u=decodeURIComponent;function p(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),i=u(n.shift()),r=n.length>0?u(n.join("=")):null;void 0===t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]})),t):t}function h(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return d(t);if(Array.isArray(n)){var i=[];return n.forEach((function(e){void 0!==e&&(null===e?i.push(d(t)):i.push(d(t)+"="+d(e)))})),i.join("&")}return d(t)+"="+d(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var f=/\/?$/;function _(e,t,n,i){var r=i&&i.options.stringifyQuery,o=t.query||{};try{o=m(o)}catch(e){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:v(t,r),matched:e?b(e):[]};return n&&(a.redirectedFrom=v(n,r)),Object.freeze(a)}function m(e){if(Array.isArray(e))return e.map(m);if(e&&"object"==typeof e){var t={};for(var n in e)t[n]=m(e[n]);return t}return e}var g=_(null,{path:"/"});function b(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function v(e,t){var n=e.path,i=e.query;void 0===i&&(i={});var r=e.hash;return void 0===r&&(r=""),(n||"/")+(t||h)(i)+r}function E(e,t){return t===g?e===t:!!t&&(e.path&&t.path?e.path.replace(f,"")===t.path.replace(f,"")&&e.hash===t.hash&&S(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&S(e.query,t.query)&&S(e.params,t.params)))}function S(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e),i=Object.keys(t);return n.length===i.length&&n.every((function(n){var i=e[n],r=t[n];return"object"==typeof i&&"object"==typeof r?S(i,r):String(i)===String(r)}))}function y(e,t,n){var i=e.charAt(0);if("/"===i)return e;if("?"===i||"#"===i)return t+e;var r=t.split("/");n&&r[r.length-1]||r.pop();for(var o=e.replace(/^\//,"").split("/"),a=0;a<o.length;a++){var s=o[a];".."===s?r.pop():"."!==s&&r.push(s)}return""!==r[0]&&r.unshift(""),r.join("/")}function x(e){return e.replace(/\/\//g,"/")}var C=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},T=U,w=k,O=function(e,t){return D(k(e,t))},N=D,R=B,I=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function k(e,t){for(var n,i=[],r=0,o=0,a="",s=t&&t.delimiter||"/";null!=(n=I.exec(e));){var l=n[0],c=n[1],d=n.index;if(a+=e.slice(o,d),o=d+l.length,c)a+=c[1];else{var u=e[o],p=n[2],h=n[3],f=n[4],_=n[5],m=n[6],g=
|
2019-09-25 17:47:38 +08:00
|
|
|
|
/**
|
|
|
|
|
* Checks if an event is supported in the current execution environment.
|
|
|
|
|
*
|
|
|
|
|
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
|
|
|
* `reset`, `load`, `error`, and `select`.
|
|
|
|
|
*
|
|
|
|
|
* Borrows from Modernizr.
|
|
|
|
|
*
|
|
|
|
|
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
|
|
|
* @param {?boolean} capture Check if the capture phase is supported.
|
|
|
|
|
* @return {boolean} True if the event is supported.
|
|
|
|
|
* @internal
|
|
|
|
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
2019-11-25 15:17:08 +08:00
|
|
|
|
*/,e.exports=function(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&i&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}},function(e,t,n){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen,isInWorker:!i};e.exports=r},function(e,t,n){"use strict";t.__esModule=!0;var i,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(140),a=(i=o)&&i.__esModule?i:{default:i};var s,l=l||{};l.Dialog=function(e,t,n){var i=this;if(this.dialogNode=e,null===this.dialogNode||"dialog"!==this.dialogNode.getAttribute("role"))throw new Error("Dialog() requires a DOM element with ARIA role of dialog.");"string"==typeof t?this.focusAfterClosed=document.getElementById(t):"object"===(void 0===t?"undefined":r(t))?this.focusAfterClosed=t:this.focusAfterClosed=null,"string"==typeof n?this.focusFirst=document.getElementById(n):"object"===(void 0===n?"undefined":r(n))?this.focusFirst=n:this.focusFirst=null,this.focusFirst?this.focusFirst.focus():a.default.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,s=function(e){i.trapFocus(e)},this.addListeners()},l.Dialog.prototype.addListeners=function(){document.addEventListener("focus",s,!0)},l.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",s,!0)},l.Dialog.prototype.closeDialog=function(){var e=this;this.removeListeners(),this.focusAfterClosed&&setTimeout((function(){e.focusAfterClosed.focus()}))},l.Dialog.prototype.trapFocus=function(e){a.default.IgnoreUtilFocusChanges||(this.dialogNode.contains(e.target)?this.lastFocus=e.target:(a.default.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&a.default.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))},t.default=l.Dialog},function(e,t,n){e.exports={default:n(452),__esModule:!0}},function(e,t,n){n(453),e.exports=n(70).Object.assign},function(e,t,n){var i=n(141);i(i.S+i.F,"Object",{assign:n(456)})},function(e,t,n){var i=n(455);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var i=n(52),r=n(95),o=n(148),a=n(98),s=n(149),l=n(202),c=Object.assign;e.exports=!c||n(72)((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=i}))?function(e,t){for(var n=s(e),c=arguments.length,d=1,u=o.f,p=a.f;c>d;)for(var h,f=l(arguments[d++]),_=u?r(f).concat(u(f)):r(f),m=_.length,g=0;m>g;)h=_[g++],i&&!p.call(f,h)||(n[h]=f[h]);return n}:c},function(e,t,n){var i=n(62),r=n(458),o=n(459);e.exports=function(e){return function(t,n,a){var s,l=i(t),c=r(l.length),d=o(a,c);if(e&&n!=n){for(;c>d;)if((s=l[d++])!=s)return!0}else for(;c>d;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}}},function(e,t,n){var i=n(144),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t,n){var i=n(144),r=Math.max,o=Math.min;e.exports=function(e,t){return(e=i(e))<0?r(e+t,0):o(e,t)}},function(e,t,n){e.exports={default:n(461),__esModule:!0}},function(e,t,n){n(462),n(468),e.exports=n(152).f("iterator")},function(e,t,n){"use strict";var i=n(463)(!0);n(204)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{val
|
2019-10-20 18:01:27 +08:00
|
|
|
|
/**
|
|
|
|
|
* @Name: 基于layui的tree重写
|
|
|
|
|
* @Author: 李祥
|
|
|
|
|
* @License:MIT
|
|
|
|
|
* 最近修改时间: 2019/09/24
|
2019-11-25 15:17:08 +08:00
|
|
|
|
*/layui.define(["jquery","laytpl"],(function(e){var t=layui.jquery,i=layui.laytpl,r=layui.hint(),o={on:function(e,t){return layui.onevent.call(this,"eleTree",e,t)},render:function(e){var t=new l(e);return a.call(t)}},a=function(){var e=this,t=e.config;return{updateKeyChildren:function(n,i){if(0!==t.data.length)return e.updateKeyChildren.call(e,n,i)},updateKeySelf:function(n,i){if(0!==t.data.length)return e.updateKeySelf.call(e,n,i)},remove:function(n){if(0!==t.data.length)return e.remove.call(e,n)},append:function(n,i){if(0!==t.data.length)return e.append.call(e,n,i)},insertBefore:function(n,i){if(0!==t.data.length)return e.insertBefore.call(e,n,i)},insertAfter:function(n,i){if(0!==t.data.length)return e.insertAfter.call(e,n,i)},getChecked:function(n,i){if(0!==t.data.length)return e.getChecked.call(e,n,i)},setChecked:function(n,i){if(0!==t.data.length)return e.setChecked.call(e,n,i)},unCheckNodes:function(){if(0!==t.data.length)return e.unCheckNodes.call(e)},unCheckArrNodes:function(n){if(0!==t.data.length)return e.unCheckArrNodes.call(e,n)},expandAll:function(){if(0!==t.data.length)return e.expandAll.call(e)},expandNode:function(n){if(0!==t.data.length)return e.expandNode.call(e,n)},unExpandNode:function(n){if(0!==t.data.length)return e.unExpandNode.call(e,n)},toggleExpandNode:function(n){if(0!==t.data.length)return e.toggleExpandNode.call(e,n)},unExpandAll:function(){if(0!==t.data.length)return e.unExpandAll.call(e)},reload:function(t){return e.reload.call(e,t)},search:function(t){return e.search.call(e,t)},getAllNodeData:function(){return e.getAllNodeData.call(e)}}},s=function(e,t,n){return["{{# for(var i=0;i<d.length;i++){ }}",'<div class="eleTree-node {{# if(d[i].visible===false){ }}eleTree-search-hide{{# } }}" data-padding="'+e.indent*t+'" data-'+e.customKey+'="{{d[i]["'+e.request.key+'"]}}" eletree-floor="'+t+'">',e.showLine?0!==t?'<i class="eleTree-node-verticalline" style="left: '+(9+e.indent*(t-1))+'px;"></i><i class="eleTree-node-horizontalline" style="width: '+(e.indent-4)+"px;left: "+(9+e.indent*(t-1))+'px;"></i>':'<i class="eleTree-node-verticalline" style="left: '+(9+e.indent*(t-1))+'px;display: none;"></i><i class="eleTree-node-horizontalline" style="width: '+(e.indent-4)+"px;left: "+(9+e.indent*(t-1))+'px;display: none;"></i>':"",'<div class="eleTree-node-content" style="padding-left: '+e.indent*t+'px;">','<span class="eleTree-node-content-icon">','<i class="layui-icon layui-icon-triangle-r ',e.lazy?['{{# if(!d[i]["'+e.request.isLeaf+'"]){ }}','lazy-icon" ></i>',"{{# }else{ }}",'leaf-icon" style="color: transparent;" ></i>',"{{# } }}"].join(""):['{{# if(!d[i]["'+e.request.children+'"] || d[i]["'+e.request.children+'"].length===0){ }}','leaf-icon" style="color: transparent;"',"{{# } }}",'"></i>'].join(""),"</span>",function(){if(e.showCheckbox){var t="";return t=e.checkStrictly?'"0"':"1"===n?'"1" checked':"2"===n?'"2"':'"0"',['{{# if(d[i]["'+e.request.checked+'"]) { }}','<input type="checkbox" name="eleTree-node" lay-ignore eleTree-status="1" checked data-checked class="layui-hide eleTree-hideen ',"{{# }else{ }}",'<input type="checkbox" name="eleTree-node" lay-ignore eleTree-status='+t+' class="layui-hide eleTree-hideen ',"{{# } }}",'{{# if(d[i]["'+e.request.disabled+'"]) { }}',"eleTree-disabled","{{# } }}",'" />'].join("")}return""}(),'<span class="eleTree-node-content-label">{{d[i]["'+e.request.name+'"]}}</span>',"</div>",'<div class="eleTree-node-group" style="display: none;">',"</div>","</div>","{{# } }}"].join("")},l=function(e){e.response=t.extend({},this.config.response,e.response),e.request=t.extend({},this.config.request,e.request),this.config=t.extend({},this.config,e),this.config.customKey=this.customKeyInit(),this.prevClickEle=null,this.nameIndex=1,this.isRenderAllDom=!1,this.render()};l.prototype={constructor:l,config:{elem:"",data:[],emptText:"暂无数据",renderAfterExpand:!0,highlightCurrent:!1,defaultExpandAll:!1,expandOnClickNode:!0,checkOnClickNode:!1,defaultExpandedKeys:[],autoExpandParent:!0,showCheckbox:!1,checkStrictly:!1,defaultCheckedKeys:[],accordion:!1,indent:16,lazy:!1,load:
|