xm-select/dist/static/docs.js

32 lines
1.8 MiB
JavaScript
Raw Normal View History

!function(e){function t(t){for(var n,r,a=t[0],o=t[1],s=0,c=[];s<a.length;s++)r=a[s],i[r]&&c.push(i[r][0]),i[r]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[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 a=new Promise(function(t,r){n=i[e]=[t,r]});t.push(n[2]=a);var o,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),o=function(t){s.onerror=s.onload=null,clearTimeout(l);var n=i[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src,o=new Error("Loading chunk "+e+" failed.\n("+r+": "+a+")");o.type=r,o.request=a,n[1](o)}i[e]=void 0}};var l=setTimeout(function(){o({type:"timeout",target:s})},12e4);s.onerror=s.onload=o,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 a=window.webpackJsonp=window.webpackJsonp||[],o=a.push.bind(a);a.push=t,a=a.slice();for(var s=0;s<a.length;s++)t(a[s]);var l=o;r(r.s=93)}([,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-10-24 22:26:59 +08:00
var i=Object.freeze({});function r(e){return null==e}function a(e){return null!=e}function o(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 a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function _(e){return null==e?"":Array.isArray(e)||d(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function f(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]}}f("slot,component",!0);var g=f("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,C=S(function(e){return e.replace(y,function(e,t){return t?t.toUpperCase():""})}),x=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 N=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 O(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),a=Array.isArray(t);if(r&&a)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||a)return!1;var o=Object.keys(e),s=Object.keys(t);return o.length===s.length&&o.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},ae=j&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function oe(e){retur
2019-09-25 17:47:38 +08:00
/*!
* vue-router v3.1.3
* (c) 2019 Evan You
* @license MIT
*/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 a(e,t){for(var n in t)e[n]=t[n];return e}var o={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,i=t.children,r=t.parent,o=t.data;o.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(o.routerViewDepth=u,p)return s(d[l],o,i);var _=c.matched[u];if(!_)return d[l]=null,s();var m=d[l]=_.components[l];o.registerRouteInstance=function(e,t){var n=_.instances[l];(t&&n!==e||!t&&n===e)&&(_.instances[l]=t)},(o.hook||(o.hook={})).prepatch=function(e,t){_.instances[l]=t.componentInstance},o.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==_.instances[l]&&(_.instances[l]=e.componentInstance)};var f=o.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,_.props&&_.props[l]);if(f){f=o.props=a({},f);var g=o.attrs=o.attrs||{};for(var b in f)m.props&&b in m.props||(g[b]=f[b],delete f[b])}return s(m,o,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 _=/\/?$/;function m(e,t,n,i){var r=i&&i.options.stringifyQuery,a=t.query||{};try{a=f(a)}catch(e){}var o={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:a,params:t.params||{},fullPath:v(t,r),matched:e?b(e):[]};return n&&(o.redirectedFrom=v(n,r)),Object.freeze(o)}function f(e){if(Array.isArray(e))return e.map(f);if(e&&"object"==typeof e){var t={};for(var n in e)t[n]=f(e[n]);return t}return e}var g=m(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(_,"")===t.path.replace(_,"")&&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 a=e.replace(/^\//,"").split("/"),o=0;o<a.length;o++){var s=a[o];".."===s?r.pop():"."!==s&&r.push(s)}return""!==r[0]&&r.unshift(""),r.join("/")}function C(e){return e.replace(/\/\//g,"/")}var x=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},T=U,w=k,N=function(e,t){return D(k(e,t))},O=D,R=B,I=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function k(e,t){for(var n,i=[],r=0,a=0,o="",s=t&&t.delimiter||"/";null!=(n=I.exec(e));){var l=n[0],c=n[1],d=n.index;if(o+=e.slice(a,d),a=d+l.length,c)o+=c[1];else{var u=e[a],p=n[2],h=n[3],_=n[4],m=n[5],f=n[6],g=n[7];o&&(i
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
*/,e.exports=function(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var o=document.createElement("div");o.setAttribute(n,"return;"),a="function"==typeof o[n]}return!a&&i&&"wheel"===e&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}},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},a=n(47),o=(i=a)&&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():o.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){o.default.IgnoreUtilFocusChanges||(this.dialogNode.contains(e.target)?this.lastFocus=e.target:(o.default.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&o.default.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))},t.default=l.Dialog},function(e,t,n){e.exports={default:n(122),__esModule:!0}},function(e,t,n){n(123),e.exports=n(18).Object.assign},function(e,t,n){var i=n(48);i(i.S+i.F,"Object",{assign:n(126)})},function(e,t,n){var i=n(125);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(29),r=n(55),a=n(32),o=n(74),s=n(72),l=Object.assign;e.exports=!l||n(20)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i})?function(e,t){for(var n=o(e),l=arguments.length,c=1,d=r.f,u=a.f;l>c;)for(var p,h=s(arguments[c++]),_=d?i(h).concat(d(h)):i(h),m=_.length,f=0;m>f;)u.call(h,p=_[f++])&&(n[p]=h[p]);return n}:l},function(e,t,n){var i=n(15),r=n(128),a=n(129);e.exports=function(e){return function(t,n,o){var s,l=i(t),c=r(l.length),d=a(o,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(51),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t,n){var i=n(51),r=Math.max,a=Math.min;e.exports=function(e,t){return(e=i(e))<0?r(e+t,0):a(e,t)}},function(e,t,n){e.exports={default:n(131),__esModule:!0}},function(e,t,n){n(132),n(138),e.exports=n(58).f("iterator")},function(e,t,n){"use strict";var i=n(133)(!0);n(75)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),thi
2019-10-20 18:01:27 +08:00
/**
* @Name: 基于layui的tree重写
* @Author: 李祥
* @LicenseMIT
* 最近修改时间: 2019/09/24
*/layui.define(["jquery","laytpl"],function(e){var t=layui.jquery,i=layui.laytpl,r=layui.hint(),a={on:function(e,t){return layui.onevent.call(this,"eleTree",e,t)},render:function(e){var t=new l(e);return o.call(t)}},o=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:f