Comparing version 0.0.3-alpha.5 to 0.0.3-alpha.6
@@ -1,1 +0,1 @@ | ||
!function(t){function n(o){if(e[o])return e[o].exports;var i=e[o]={exports:{},id:o,loaded:!1};return t[o].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}var i=e(1),r=o(i),u=e(76),a=o(u),c=e(77),s=o(c);window.Dui=t.exports={Modal:r.default,Animate:a.default,Tip:s.default}},function(t,n,e){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function r(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function u(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function t(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(n,e,o){return e&&t(n.prototype,e),o&&t(n,o),n}}(),c=e(2),s=o(c),l=e(70),f=o(l),p=e(72),d=o(p),h=e(73),v=o(h),y=e(74),g=o(y),b=e(75),m=o(b);n.default=function(){var t=['<div class="dui-dialog <%= className %>" style="width: <%= width %>px; height: <%= height %>px">',"<% if(close) { %>",'<i class="dui-dialog-close J_dialog-close <%=closeClass %>" href="javascript:;"></i>',"<% } %>",'<% if(title != "" && type == "default") { %>','<div class="dui-dialog-hd">','<h3 class="dui-dialog-title"><%= title %></h3>',"</div>","<% } %>",'<% if(type == "custom") { %>','<div class="dui-dialog-custom-bd"><%= content %></div>',"<% } %>",'<% if(type == "default") { %>','<% if(contentHeight != "auto"){ %>','<div style="height: <%= contentHeight %>px;" class="dui-dialog-bd">',"<% }else { %>",'<div style="height: <%= contentHeight %>;max-height: <%= contentMaxHeight %>px" class="dui-dialog-bd">',"<% } %>","<%= content %>","</div>","<% if(ok || cancel) { %>",'<div class="dui-dialog-ft <%= btnPosClass %>">','<div class="dui-btn-list-g10">',"<% if(ok) { %>",'<a class="dui-btn-info J_dialog-ok" href="javascript:;"><%= okValue %></a>',"<% } %>","<% if(cancel) { %>",'<a class="dui-btn J_dialog-cancel" href="javascript:;"><%= cancelValue %></a>',"<% } %>","</div>","</div>","<% } %>","<% } %>","</div>"],n=function(n){function e(t){i(this,e);var n=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this)),o={type:"default",title:"提示",content:"内容",okValue:"确定",cancelValue:"取消",className:"",closeClass:d.default.closeIconClass,mask:!0,close:!0,ok:!1,cancel:!1,btnPos:"right",draggable:!1};return n.option=t,n.option=(0,f.default)({},o,n.option),n.init(),n}return u(e,n),a(e,[{key:"init",value:function(){this.handleOption(),this.show(),this.bindEvent(),this.handleDrag(),this.option.init&&this.option.init.apply(this)}},{key:"handleOption",value:function(){this.handleOptionWidth(),this.handleOptionHeight(),this.handleOptionButton(),this.handleOptionContentHeight()}},{key:"handleOptionWidth",value:function(){var t=this.option.width;t=t?parseInt(t):d.default.minWidth,d.default.minWidth-t>=0&&(t=d.default.minWidth),d.default.maxWidth-t<0&&(t=d.default.maxWidth),this.option.width=t}},{key:"handleOptionHeight",value:function(){var t=this.option.height;"auto"!=t&&(t=t?parseInt(t):d.default.minHeight,d.default.minHeight-t>=0&&(t=d.default.minHeight),d.default.maxHeight-t<0&&(t=d.default.maxHeight),this.option.height=t)}},{key:"handleOptionContentHeight",value:function(){var t=this.option.height,n=d.default.hdHeight,e=d.default.ftHeight,o=d.default.padding,i=d.default.maxHeight,r=void 0;if(this.option.ok||this.option.cancel?r=3*o:(r=2*o,e=0),""==this.option.title&&(n=0),"auto"==t){this.option.contentHeight="auto";var u=i-n-e-r;this.option.contentMaxHeight=u}else{var a=t-n-e-r;this.option.contentHeight=a}}},{key:"handleOptionButton",value:function(){var t=this.option.ok,n=this.option.cancel;if(null==t)this.option.ok=!1;else{var e="boolean"==typeof t;this.option.ok=!!t,this.option.okValue=e?this.option.okValue:t}if(null==n)this.option.ok=!1;else{var e="boolean"==typeof t;this.option.cancel=!!n,this.option.cancelValue=e?this.option.cancelValue:n}this.option.okFn&&(this.option.ok=!0),this.option.cancelFn&&(this.option.cancel=!0),this.option.btnPosClass="dui-dialog-ft-"+this.option.btnPos}},{key:"show",value:function(){var n=v.default.has(".dui-dialog-wrap").length;if(0==n&&this.option.mask){var e='<div class="dui-dialog-wrap"></div>';v.default.appendHTML(document.body,e)}var o=(0,s.default)(t.join("")),i=o(this.option);this.option.mask?this.dialogDom=v.default.appendHTML(v.default.find(".dui-dialog-wrap"),i):this.dialogDom=v.default.appendHTML(document.body,i)}},{key:"hide",value:function(){this.destroy()}},{key:"destroy",value:function(){this.unBindEvent();var t;t=this.option.mask?v.default.has(v.default.find(".dui-dialog-wrap"),".dui-dialog").length:v.default.has(".dui-dialog").length,v.default.remove(this.dialogDom),1==t&&this.option.mask&&v.default.remove(v.default.find(".dui-dialog-wrap")),this.dialogDom=null}},{key:"_okFn",value:function(){this.$emit("ok"),this.option.okFn&&this.option.okFn.apply(this)}},{key:"_cancelFn",value:function(){this.$emit("cancel"),this.option.cancelFn&&this.option.cancelFn.apply(this),this.hide()}},{key:"_closeFn",value:function(){this.$emit("close"),this.hide()}},{key:"_escFn",value:function(t){t=t||window.event,"27"==t.keyCode&&this.hide()}},{key:"handleDrag",value:function(){if(this.option.draggable){var t=v.default.find(this.dialogDom,".dui-dialog-hd");v.default.addClass(t,"z-draggable"),m.default.startDrag(t,this.dialogDom,d.default.boundary(this.dialogDom),this)}}},{key:"bindEvent",value:function(){var t=this.okBtn=v.default.find(this.dialogDom,".J_dialog-ok"),n=this.cancelBtn=v.default.find(this.dialogDom,".J_dialog-cancel"),e=this.closeBtn=v.default.find(this.dialogDom,".J_dialog-close");t&&t.addEventListener("click",this.bindOkClick=this._okFn.bind(this),!1),n&&n.addEventListener("click",this.bindCancelClick=this._cancelFn.bind(this),!1),e&&e.addEventListener("click",this.bindCloseClick=this._closeFn.bind(this),!1),document.addEventListener("keydown",this.bindEscClick=this._escFn.bind(this),!1)}},{key:"unBindEvent",value:function(){var t=this.okBtn,n=this.cancelBtn,e=this.closeBtn;t&&t.removeEventListener("click",this.bindOkClick,!1),n&&n.removeEventListener("click",this.bindCancelClick,!1),e&&e.removeEventListener("click",this.bindCloseClick,!1),document.removeEventListener("keydown",this.bindEscClick,!1)}}]),e}(g.default);return n.alert=function(t){return new n({content:t,okFn:function(){this.hide()}})},n.confirm=function(t){return new Promise(function(e){new n({content:t,okFn:function(){e(),this.hide()},cancel:!0})})},n}()},function(t,n,e){function o(t,n,e){var o=d.imports._.templateSettings||d;e&&l(t,n,e)&&(n=void 0),t=h(t),n=r({},n,o,i);var _,j,w=r({},n.imports,o.imports,i),k=f(w),O=a(w,k),M=0,C=n.interpolate||m,H="__p += '",P=RegExp((n.escape||m).source+"|"+C.source+"|"+(C===p?b:m).source+"|"+(n.evaluate||m).source+"|$","g"),E="sourceURL"in n?"//# sourceURL="+n.sourceURL+"\n":"";t.replace(P,function(n,e,o,i,r,u){return o||(o=i),H+=t.slice(M,u).replace(x,c),e&&(_=!0,H+="' +\n__e("+e+") +\n'"),r&&(j=!0,H+="';\n"+r+";\n__p += '"),o&&(H+="' +\n((__t = ("+o+")) == null ? '' : __t) +\n'"),M=u+n.length,n}),H+="';\n";var S=n.variable;S||(H="with (obj) {\n"+H+"\n}\n"),H=(j?H.replace(v,""):H).replace(y,"$1").replace(g,"$1;"),H="function("+(S||"obj")+") {\n"+(S?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(_?", __e = _.escape":"")+(j?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+H+"return __p\n}";var I=u(function(){return Function(k,E+"return "+H).apply(void 0,O)});if(I.source=H,s(I))throw I;return I}var i=e(3),r=e(5),u=e(50),a=e(52),c=e(54),s=e(51),l=e(29),f=e(55),p=e(59),d=e(60),h=e(64),v=/\b__p \+= '';/g,y=/\b(__p \+=) '' \+/g,g=/(__e\(.*?\)|\b__t\)) \+\n'';/g,b=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,m=/($^)/,x=/['\n\r\u2028\u2029\\]/g;t.exports=o},function(t,n,e){function o(t,n,e,o){return void 0===t||i(t,r[e])&&!u.call(o,e)?n:t}var i=e(4),r=Object.prototype,u=r.hasOwnProperty;t.exports=o},function(t,n){function e(t,n){return t===n||t!==t&&n!==n}t.exports=e},function(t,n,e){var o=e(6),i=e(20),r=e(33),u=i(function(t,n,e,i){o(n,r(n),t,i)});t.exports=u},function(t,n,e){function o(t,n,e,o){var u=!e;e||(e={});for(var a=-1,c=n.length;++a<c;){var s=n[a],l=o?o(e[s],t[s],s,e,t):void 0;void 0===l&&(l=t[s]),u?r(e,s,l):i(e,s,l)}return e}var i=e(7),r=e(8);t.exports=o},function(t,n,e){function o(t,n,e){var o=t[n];a.call(t,n)&&r(o,e)&&(void 0!==e||n in t)||i(t,n,e)}var i=e(8),r=e(4),u=Object.prototype,a=u.hasOwnProperty;t.exports=o},function(t,n,e){function o(t,n,e){"__proto__"==n&&i?i(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}var i=e(9);t.exports=o},function(t,n,e){var o=e(10),i=function(){try{var t=o(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,n,e){function o(t,n){var e=r(t,n);return i(e)?e:void 0}var i=e(11),r=e(19);t.exports=o},function(t,n,e){function o(t){if(!u(t)||r(t))return!1;var n=i(t)?h:s;return n.test(a(t))}var i=e(12),r=e(14),u=e(13),a=e(18),c=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,l=Function.prototype,f=Object.prototype,p=l.toString,d=f.hasOwnProperty,h=RegExp("^"+p.call(d).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=o},function(t,n,e){function o(t){var n=i(t)?s.call(t):"";return n==r||n==u||n==a}var i=e(13),r="[object Function]",u="[object GeneratorFunction]",a="[object Proxy]",c=Object.prototype,s=c.toString;t.exports=o},function(t,n){function e(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}t.exports=e},function(t,n,e){function o(t){return!!r&&r in t}var i=e(15),r=function(){var t=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=o},function(t,n,e){var o=e(16),i=o["__core-js_shared__"];t.exports=i},function(t,n,e){var o=e(17),i="object"==typeof self&&self&&self.Object===Object&&self,r=o||i||Function("return this")();t.exports=r},function(t,n){(function(n){var e="object"==typeof n&&n&&n.Object===Object&&n;t.exports=e}).call(n,function(){return this}())},function(t,n){function e(t){if(null!=t){try{return i.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var o=Function.prototype,i=o.toString;t.exports=e},function(t,n){function e(t,n){return null==t?void 0:t[n]}t.exports=e},function(t,n,e){function o(t){return i(function(n,e){var o=-1,i=e.length,u=i>1?e[i-1]:void 0,a=i>2?e[2]:void 0;for(u=t.length>3&&"function"==typeof u?(i--,u):void 0,a&&r(e[0],e[1],a)&&(u=i<3?void 0:u,i=1),n=Object(n);++o<i;){var c=e[o];c&&t(n,c,o,u)}return n})}var i=e(21),r=e(29);t.exports=o},function(t,n,e){function o(t,n){return u(r(t,n,i),t+"")}var i=e(22),r=e(23),u=e(25);t.exports=o},function(t,n){function e(t){return t}t.exports=e},function(t,n,e){function o(t,n,e){return n=r(void 0===n?t.length-1:n,0),function(){for(var o=arguments,u=-1,a=r(o.length-n,0),c=Array(a);++u<a;)c[u]=o[n+u];u=-1;for(var s=Array(n+1);++u<n;)s[u]=o[u];return s[n]=e(c),i(t,this,s)}}var i=e(24),r=Math.max;t.exports=o},function(t,n){function e(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}t.exports=e},function(t,n,e){var o=e(26),i=e(28),r=i(o);t.exports=r},function(t,n,e){var o=e(27),i=e(9),r=e(22),u=i?function(t,n){return i(t,"toString",{configurable:!0,enumerable:!1,value:o(n),writable:!0})}:r;t.exports=u},function(t,n){function e(t){return function(){return t}}t.exports=e},function(t,n){function e(t){var n=0,e=0;return function(){var u=r(),a=i-(u-e);if(e=u,a>0){if(++n>=o)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var o=500,i=16,r=Date.now;t.exports=e},function(t,n,e){function o(t,n,e){if(!a(e))return!1;var o=typeof n;return!!("number"==o?r(e)&&u(n,e.length):"string"==o&&n in e)&&i(e[n],t)}var i=e(4),r=e(30),u=e(32),a=e(13);t.exports=o},function(t,n,e){function o(t){return null!=t&&r(t.length)&&!i(t)}var i=e(12),r=e(31);t.exports=o},function(t,n){function e(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}var o=9007199254740991;t.exports=e},function(t,n){function e(t,n){return n=null==n?o:n,!!n&&("number"==typeof t||i.test(t))&&t>-1&&t%1==0&&t<n}var o=9007199254740991,i=/^(?:0|[1-9]\d*)$/;t.exports=e},function(t,n,e){function o(t){return u(t)?i(t,!0):r(t)}var i=e(34),r=e(47),u=e(30);t.exports=o},function(t,n,e){function o(t,n){var e=u(t),o=!e&&r(t),l=!e&&!o&&a(t),p=!e&&!o&&!l&&s(t),d=e||o||l||p,h=d?i(t.length,String):[],v=h.length;for(var y in t)!n&&!f.call(t,y)||d&&("length"==y||l&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,v))||h.push(y);return h}var i=e(35),r=e(36),u=e(39),a=e(40),c=e(32),s=e(43),l=Object.prototype,f=l.hasOwnProperty;t.exports=o},function(t,n){function e(t,n){for(var e=-1,o=Array(t);++e<t;)o[e]=n(e);return o}t.exports=e},function(t,n,e){var o=e(37),i=e(38),r=Object.prototype,u=r.hasOwnProperty,a=r.propertyIsEnumerable,c=o(function(){return arguments}())?o:function(t){return i(t)&&u.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},function(t,n,e){function o(t){return i(t)&&a.call(t)==r}var i=e(38),r="[object Arguments]",u=Object.prototype,a=u.toString;t.exports=o},function(t,n){function e(t){return null!=t&&"object"==typeof t}t.exports=e},function(t,n){var e=Array.isArray;t.exports=e},function(t,n,e){(function(t){var o=e(16),i=e(42),r="object"==typeof n&&n&&!n.nodeType&&n,u=r&&"object"==typeof t&&t&&!t.nodeType&&t,a=u&&u.exports===r,c=a?o.Buffer:void 0,s=c?c.isBuffer:void 0,l=s||i;t.exports=l}).call(n,e(41)(t))},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,n){function e(){return!1}t.exports=e},function(t,n,e){var o=e(44),i=e(45),r=e(46),u=r&&r.isTypedArray,a=u?i(u):o;t.exports=a},function(t,n,e){function o(t){return r(t)&&i(t.length)&&!!E[I.call(t)]}var i=e(31),r=e(38),u="[object Arguments]",a="[object Array]",c="[object Boolean]",s="[object Date]",l="[object Error]",f="[object Function]",p="[object Map]",d="[object Number]",h="[object Object]",v="[object RegExp]",y="[object Set]",g="[object String]",b="[object WeakMap]",m="[object ArrayBuffer]",x="[object DataView]",_="[object Float32Array]",j="[object Float64Array]",w="[object Int8Array]",k="[object Int16Array]",O="[object Int32Array]",M="[object Uint8Array]",C="[object Uint8ClampedArray]",H="[object Uint16Array]",P="[object Uint32Array]",E={};E[_]=E[j]=E[w]=E[k]=E[O]=E[M]=E[C]=E[H]=E[P]=!0,E[u]=E[a]=E[m]=E[c]=E[x]=E[s]=E[l]=E[f]=E[p]=E[d]=E[h]=E[v]=E[y]=E[g]=E[b]=!1;var S=Object.prototype,I=S.toString;t.exports=o},function(t,n){function e(t){return function(n){return t(n)}}t.exports=e},function(t,n,e){(function(t){var o=e(17),i="object"==typeof n&&n&&!n.nodeType&&n,r=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=r&&r.exports===i,a=u&&o.process,c=function(){try{return a&&a.binding("util")}catch(t){}}();t.exports=c}).call(n,e(41)(t))},function(t,n,e){function o(t){if(!i(t))return u(t);var n=r(t),e=[];for(var o in t)("constructor"!=o||!n&&c.call(t,o))&&e.push(o);return e}var i=e(13),r=e(48),u=e(49),a=Object.prototype,c=a.hasOwnProperty;t.exports=o},function(t,n){function e(t){var n=t&&t.constructor,e="function"==typeof n&&n.prototype||o;return t===e}var o=Object.prototype;t.exports=e},function(t,n){function e(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}t.exports=e},function(t,n,e){var o=e(24),i=e(21),r=e(51),u=i(function(t,n){try{return o(t,void 0,n)}catch(t){return r(t)?t:new Error(t)}});t.exports=u},function(t,n,e){function o(t){return!!i(t)&&(a.call(t)==r||"string"==typeof t.message&&"string"==typeof t.name)}var i=e(38),r="[object Error]",u=Object.prototype,a=u.toString;t.exports=o},function(t,n,e){function o(t,n){return i(n,function(n){return t[n]})}var i=e(53);t.exports=o},function(t,n){function e(t,n){for(var e=-1,o=t?t.length:0,i=Array(o);++e<o;)i[e]=n(t[e],e,t);return i}t.exports=e},function(t,n){function e(t){return"\\"+o[t]}var o={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};t.exports=e},function(t,n,e){function o(t){return u(t)?i(t):r(t)}var i=e(34),r=e(56),u=e(30);t.exports=o},function(t,n,e){function o(t){if(!i(t))return r(t);var n=[];for(var e in Object(t))a.call(t,e)&&"constructor"!=e&&n.push(e);return n}var i=e(48),r=e(57),u=Object.prototype,a=u.hasOwnProperty;t.exports=o},function(t,n,e){var o=e(58),i=o(Object.keys,Object);t.exports=i},function(t,n){function e(t,n){return function(e){return t(n(e))}}t.exports=e},function(t,n){var e=/<%=([\s\S]+?)%>/g;t.exports=e},function(t,n,e){var o=e(61),i=e(68),r=e(69),u=e(59),a={escape:i,evaluate:r,interpolate:u,variable:"",imports:{_:{escape:o}}};t.exports=a},function(t,n,e){function o(t){return t=r(t),t&&a.test(t)?t.replace(u,i):t}var i=e(62),r=e(64),u=/[&<>"']/g,a=RegExp(u.source);t.exports=o},function(t,n,e){var o=e(63),i={"&":"&","<":"<",">":">",'"':""","'":"'"},r=o(i);t.exports=r},function(t,n){function e(t){return function(n){return null==t?void 0:t[n]}}t.exports=e},function(t,n,e){function o(t){return null==t?"":i(t)}var i=e(65);t.exports=o},function(t,n,e){function o(t){if("string"==typeof t)return t;if(u(t))return r(t,o)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-c?"-0":n}var i=e(66),r=e(53),u=e(39),a=e(67),c=1/0,s=i?i.prototype:void 0,l=s?s.toString:void 0;t.exports=o},function(t,n,e){var o=e(16),i=o.Symbol;t.exports=i},function(t,n,e){function o(t){return"symbol"==typeof t||i(t)&&a.call(t)==r}var i=e(38),r="[object Symbol]",u=Object.prototype,a=u.toString;t.exports=o},function(t,n){var e=/<%-([\s\S]+?)%>/g;t.exports=e},function(t,n){var e=/<%([\s\S]+?)%>/g;t.exports=e},function(t,n,e){t.exports=e(71)},function(t,n,e){var o=e(6),i=e(20),r=e(33),u=i(function(t,n){o(n,r(n),t)});t.exports=u},function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default={minWidth:420,minHeight:170,maxWidth:920,maxHeight:580,hdHeight:45,ftHeight:30,padding:16,closeIconClass:"iconfont icon-shanchu5",boundary:function(t){var n=t.offsetWidth,e=t.offsetHeight;return{getLeft:function(t){var e=document.documentElement.clientWidth;return t<n/2?n/2:t>e-n/2?e-n/2:t},getTop:function(t){var n=document.documentElement.clientHeight;return t<e/2?e/2:t>n-e/2?n-e/2:t}}}}},function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default={getCss:function(t,n){return t.currentStyle?t.currentStyle[n]:document.defaultView.getComputedStyle(t,!1)[n]},addClass:function(t,n){t.classList.add(n)},has:function(t,n){1==arguments.length&&(t=document,n=arguments[0]);var e=t.querySelectorAll(n);return{length:e.length}},find:function(t,n){return 1==arguments.length&&(t=document,n=arguments[0]),t.querySelector(n)},appendHTML:function(t,n){var e=document.createElement("div");e.innerHTML=n;var o=e.childNodes[0];return t.appendChild(o),o},prependHTML:function(t,n){var e=document.createElement("div");e.innerHTML=n;var o=e.childNodes[0];return t.insertBefore(o,t.firstChild),o},remove:function(t){return t.parentNode&&t.parentNode.removeChild(t),t}}},function(t,n){"use strict";function e(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(n,e,o){return e&&t(n.prototype,e),o&&t(n,o),n}}(),r=[].slice,u=function(){function t(){e(this,t)}return i(t,[{key:"$on",value:function(t,n){if("object"===("undefined"==typeof t?"undefined":o(t)))for(var e in t)this.$on(e,t[e]);else{var i=this,r=i._handles||(i._handles={}),u=r[t]||(r[t]=[]);u.push(n)}return this}},{key:"$off",value:function(t,n){var e=this;if(e._handles){t||(this._handles={});var o,i=e._handles;if(o=i[t]){if(!n)return i[t]=[],e;for(var r=0,u=o.length;r<u;r++)if(n===o[r])return o.splice(r,1),e}return e}}},{key:"$emit",value:function(t){var n,e,o,i=this,u=i._handles;if(t){var e=r.call(arguments,1),o=t;if(!u)return i;if(n=u[o.slice(1)])for(var a=0,c=n.length;a<c;a++)n[a].apply(i,e);if(!(n=u[o]))return i;for(var s=0,c=n.length;s<c;s++)n[s].apply(i,e);return i}}}]),t}();n.default=u},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=e(73),i={left:0,top:0,currentX:0,currentY:0,flag:!1};n.default={startDrag:function(t,n,e,r){"auto"!==(0,o.getCss)(n,"left")&&(i.left=(0,o.getCss)(n,"left")),"auto"!==(0,o.getCss)(n,"top")&&(i.top=(0,o.getCss)(n,"top")),t.onmousedown=function(u){r&&r.$emit("dragStart"),i.flag=!0,u||(u=window.event,t.onselectstart=function(){return!1});var a=u;i.currentX=a.clientX,i.currentY=a.clientY,document.onmouseup=function(){i.flag=!1,"auto"!==(0,o.getCss)(n,"left")&&(i.left=(0,o.getCss)(n,"left")),"auto"!==(0,o.getCss)(n,"top")&&(i.top=(0,o.getCss)(n,"top")),r&&r.$emit("dragEnd"),document.onmousemove=null,document.onmouseup=null},document.onmousemove=function(t){var o=t?t:window.event;if(i.flag){var r=o.clientX,u=o.clientY,a=r-i.currentX,c=u-i.currentY,s=parseInt(i.left)+a,l=parseInt(i.top)+c;e&&(s=e.getLeft(s),l=e.getTop(l)),n.style.left=s+"px",n.style.top=l+"px"}}}}}},function(t,n,e){"use strict";function o(t,n,e,o,u){function a(){return(new Date).getTime()}"undefined"==typeof e&&(e=400,o="linear"),"string"==typeof e?("function"==typeof o&&(u=o),o=e,e=400):"function"==typeof e?(u=e,e=400,o="linear"):"number"==typeof e&&("function"==typeof o?(u=o,o="linear"):"undefined"==typeof o&&(o="linear"));var c={};for(var s in n)c[s]=0,"opacity"==s?c[s]=Math.round(100*(0,i.getCss)(t,s)):c[s]=parseInt((0,i.getCss)(t,s));var l=a();clearInterval(t.timer),t.timer=setInterval(function(){var i=a(),s=e-Math.max(0,l-i+e);for(var f in n){var p=r[o](s,c[f],n[f]-c[f],e);"opacity"==f?(t.style.opacity=p/100,t.style.filter="alpha(opacity="+p+")"):t.style[f]=p+"px"}s==e&&(clearInterval(t.timer),u&&u.call(t))},13)}Object.defineProperty(n,"__esModule",{value:!0});var i=e(73),r={linear:function(t,n,e,o){return e*t/o+n},easeIn:function(t,n,e,o){return e*(t/=o)*t+n},easeOut:function(t,n,e,o){return-e*(t/=o)*(t-2)+n},easeBoth:function(t,n,e,o){return(t/=o/2)<1?e/2*t*t+n:-e/2*(--t*(t-2)-1)+n},easeInStrong:function(t,n,e,o){return e*(t/=o)*t*t*t+n},easeOutStrong:function(t,n,e,o){return-e*((t=t/o-1)*t*t*t-1)+n},easeBothStrong:function(t,n,e,o){return(t/=o/2)<1?e/2*t*t*t*t+n:-e/2*((t-=2)*t*t*t-2)+n},elasticIn:function(t,n,e,o,i,r){if(0===t)return n;if(1==(t/=o))return n+e;if(r||(r=.3*o),!i||i<Math.abs(e)){i=e;var u=r/4}else var u=r/(2*Math.PI)*Math.asin(e/i);return-(i*Math.pow(2,10*(t-=1))*Math.sin((t*o-u)*(2*Math.PI)/r))+n},elasticOut:function(t,n,e,o,i,r){if(0===t)return n;if(1==(t/=o))return n+e;if(r||(r=.3*o),!i||i<Math.abs(e)){i=e;var u=r/4}else var u=r/(2*Math.PI)*Math.asin(e/i);return i*Math.pow(2,-10*t)*Math.sin((t*o-u)*(2*Math.PI)/r)+e+n},elasticBoth:function(t,n,e,o,i,r){if(0===t)return n;if(2==(t/=o/2))return n+e;if(r||(r=o*(.3*1.5)),!i||i<Math.abs(e)){i=e;var u=r/4}else var u=r/(2*Math.PI)*Math.asin(e/i);return t<1?-.5*(i*Math.pow(2,10*(t-=1))*Math.sin((t*o-u)*(2*Math.PI)/r))+n:i*Math.pow(2,-10*(t-=1))*Math.sin((t*o-u)*(2*Math.PI)/r)*.5+e+n},backIn:function(t,n,e,o,i){return"undefined"==typeof i&&(i=1.70158),e*(t/=o)*t*((i+1)*t-i)+n},backOut:function(t,n,e,o,i){return"undefined"==typeof i&&(i=3.70158),e*((t=t/o-1)*t*((i+1)*t+i)+1)+n},backBoth:function(t,n,e,o,i){return"undefined"==typeof i&&(i=1.70158),(t/=o/2)<1?e/2*(t*t*(((i*=1.525)+1)*t-i))+n:e/2*((t-=2)*t*(((i*=1.525)+1)*t+i)+2)+n},bounceIn:function(t,n,e,o){return e-r.bounceOut(o-t,0,e,o)+n},bounceOut:function(t,n,e,o){return(t/=o)<1/2.75?e*(7.5625*t*t)+n:t<2/2.75?e*(7.5625*(t-=1.5/2.75)*t+.75)+n:t<2.5/2.75?e*(7.5625*(t-=2.25/2.75)*t+.9375)+n:e*(7.5625*(t-=2.625/2.75)*t+.984375)+n},bounceBoth:function(t,n,e,o){return t<o/2?.5*r.bounceIn(2*t,0,e,o)+n:.5*r.bounceOut(2*t-o,0,e,o)+.5*e+n}};n.default={startMove:o}},function(t,n,e){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function r(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function u(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function t(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(n,e,o){return e&&t(n.prototype,e),o&&t(n,o),n}}(),c=e(2),s=o(c),l=e(70),f=o(l),p=e(78),d=o(p),h=e(73),v=o(h),y=e(74),g=o(y),b=e(76);o(b);n.default=function(){var t=['<div class="dui-tip-hint <%= tipClass %>" style="margin-top: <%=marginTop %>px; top: <%=top %>px; min-width: <%=minWidth %>px; max-width: <%=maxWidth %>px;">','<i class="<%= iconClass %>"></i>',"<p><%= msg %></p>","</div>"],n=['<div class="dui-tip-text" style="opacity: 0;">',"<p><%= msg %></p>",'<div class="close-box">','<button class="dui-btn-warning-bordered dui-btn-special dui-btn-small">我知道了</button>',"</div>","</div>"],e=function(t){function n(t){i(this,n);var e=r(this,(n.__proto__||Object.getPrototypeOf(n)).call(this)),o={tipContent:"这是一段提示"};return e.option=t,e.option=(0,f.default)({},o,e.option),e.init(),e}return u(n,t),a(n,[{key:"init",value:function(){this.show(),this.option.init&&this.option.init.apply(this)}},{key:"show",value:function(){this.tipDom=v.default.appendHTML(document.body,this.option.tipContent)}},{key:"hide",value:function(){}},{key:"destroy",value:function(){v.default.remove(this.tipDom)}}]),n}(g.default);return e.showHint=function(n,o,i,r,u){v.default.has(".dui-tip-hint").length>0&&v.default.remove(v.default.find(".dui-tip-hint"));var a,c,l={tipClass:d.default.tipClassMap[n],marginTop:d.default.hint.marginTop,minWidth:d.default.hint.minWidth,maxWidth:d.default.hint.maxWidth,iconClass:d.default.hint.iconClass[n],msg:o};c=d.default.hint.pos[i],"%"==String(c).slice(-1)&&(c=Math.floor(d.default.hint.pos.rel.offsetHeight*(c.slice(0,-1)/100))),a=c-d.default.hint.pos.dis,l.top=a;var f=(0,s.default)(t.join("")),p=f(l);new e({tipContent:p,init:function(){var t=this;this.tipDom.style.display="block",setTimeout(function(){Dui.Animate.startMove(t.tipDom,{top:c},function(){setTimeout(function(){Dui.Animate.startMove(t.tipDom,{top:a},function(){u&&u.apply(t),t.tipDom.style.display="none",t.destroy()})},1e3*r)})},10)}})},e.successInfo=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};e.showHint("success",t,"top",n,o)},e.middleSuccessInfo=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};e.showHint("success",t,"middle",n,o)},e.warning=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};e.showHint("warn",t,"top",n,o)},e.middleWarning=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};e.showHint("warn",t,"middle",n,o)},e.otherInfo=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};e.showHint("other",t,"top",n,o)},e.middleOtherInfo=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};e.showHint("other",t,"middle",n,o)},e.info=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};e.showHint("info",t,"top",n,o)},e.middleInfo=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};e.showHint("info",t,"middle",n,o)},e.error=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};e.showHint("error",t,"top",n,o)},e.middleError=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};e.showHint("error",t,"middle",n,o)},e.showUpdateMessage=function(t){function o(t){var n=v.default.find(t,"button");n.onclick=function(){Dui.Animate.startMove(t,{opacity:0},400,function(){v.default.remove(t);var n=v.default.find(".dui-update-message");0==v.default.has(n,".dui-tip-text").length&&v.default.remove(n)})}}var i={msg:t},r=(0,s.default)(n.join("")),u=r(i);0==v.default.has(".dui-update-message").length?(u='<div style="top: '+d.default.updateMessage.top+'" class="dui-update-message">'+u+"</div>",new e({tipContent:u,init:function(){var t=v.default.find(this.tipDom,".dui-tip-text");Dui.Animate.startMove(t,{opacity:100},400,function(){o(t)})}})):!function(){var t=v.default.find(".dui-update-message"),n=v.default.prependHTML(t,u);Dui.Animate.startMove(n,{opacity:100},400,function(){o(n)})}()},e}()},function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default={hint:{marginTop:8,minWidth:250,maxWidth:362,iconClass:{warn:"iconfont icon-tishi-20160921",info:"iconfont icon-yunxingyichangtishi-20150921",error:"iconfont icon-cuowu-20160921",success:"iconfont icon-right-2016-0921",other:"iconfont icon-tishi-20160921"},pos:{rel:document.documentElement,top:"0",middle:"35%",dis:50}},tipClassMap:{success:"dui-tip-success",info:"dui-tip-info",warn:"dui-tip-warning",error:"dui-tip-error",other:"dui-tip"},updateMessage:{top:"2%"}}}]); | ||
!function(t){function n(o){if(e[o])return e[o].exports;var i=e[o]={exports:{},id:o,loaded:!1};return t[o].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}var i=e(1),r=o(i),u=e(76),a=o(u),c=e(77),l=o(c);window.Dui=t.exports={Modal:r.default,Animate:a.default,Tip:l.default}},function(t,n,e){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function r(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function u(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function t(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(n,e,o){return e&&t(n.prototype,e),o&&t(n,o),n}}(),c=e(2),l=o(c),s=e(70),f=o(s),p=e(72),d=o(p),h=e(73),v=o(h),g=e(74),y=o(g),b=e(75),m=o(b);n.default=function(){var t=['<div class="dui-dialog <%= className %>" style="width: <%= width %>px; height: <%= height %>px">',"<% if(close) { %>",'<i class="dui-dialog-close J_dialog-close <%=closeClass %>" href="javascript:;"></i>',"<% } %>",'<% if(title != "" && type == "default") { %>','<div class="dui-dialog-hd">','<h3 class="dui-dialog-title"><%= title %></h3>',"</div>","<% } %>",'<% if(type == "custom") { %>','<div class="dui-dialog-custom-bd"><%= content %></div>',"<% } %>",'<% if(type == "default") { %>','<% if(contentHeight != "auto"){ %>','<div style="height: <%= contentHeight %>px;" class="dui-dialog-bd">',"<% }else { %>",'<div style="height: <%= contentHeight %>;max-height: <%= contentMaxHeight %>px" class="dui-dialog-bd">',"<% } %>","<%= content %>","</div>","<% if(ok || cancel) { %>",'<div class="dui-dialog-ft <%= btnPosClass %>">','<div class="dui-btn-list-g10">',"<% if(ok) { %>",'<a class="dui-btn-info J_dialog-ok" href="javascript:;"><%= okValue %></a>',"<% } %>","<% if(cancel) { %>",'<a class="dui-btn J_dialog-cancel" href="javascript:;"><%= cancelValue %></a>',"<% } %>","</div>","</div>","<% } %>","<% } %>","</div>"],n=function(n){function e(t){i(this,e);var n=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this)),o={type:"default",title:"提示",content:"内容",okValue:"确定",cancelValue:"取消",className:"",closeClass:d.default.closeIconClass,mask:!0,close:!0,ok:!1,cancel:!1,btnPos:"right",draggable:!1};return n.option=t,n.option=(0,f.default)({},o,n.option),n.init(),n}return u(e,n),a(e,[{key:"init",value:function(){this.handleOption(),this.show(),this.bindEvent(),this.handleDrag(),this.option.init&&this.option.init.apply(this)}},{key:"handleOption",value:function(){this.handleOptionWidth(),this.handleOptionHeight(),this.handleOptionButton(),this.handleOptionContentHeight()}},{key:"handleOptionWidth",value:function(){var t=this.option.width;t=t?parseInt(t):d.default.minWidth,d.default.minWidth-t>=0&&(t=d.default.minWidth),d.default.maxWidth-t<0&&(t=d.default.maxWidth),this.option.width=t}},{key:"handleOptionHeight",value:function(){var t=this.option.height;"auto"!=t&&(t=t?parseInt(t):d.default.minHeight,d.default.minHeight-t>=0&&(t=d.default.minHeight),d.default.maxHeight-t<0&&(t=d.default.maxHeight),this.option.height=t)}},{key:"handleOptionContentHeight",value:function(){var t=this.option.height,n=d.default.hdHeight,e=d.default.ftHeight,o=d.default.padding,i=d.default.maxHeight,r=void 0;if(this.option.ok||this.option.cancel?r=3*o:(r=2*o,e=0),""==this.option.title&&(n=0),"auto"==t){this.option.contentHeight="auto";var u=i-n-e-r;this.option.contentMaxHeight=u}else{var a=t-n-e-r;this.option.contentHeight=a}}},{key:"handleOptionButton",value:function(){var t=this.option.ok,n=this.option.cancel;if(null==t)this.option.ok=!1;else{var e="boolean"==typeof t;this.option.ok=!!t,this.option.okValue=e?this.option.okValue:t}if(null==n)this.option.ok=!1;else{var e="boolean"==typeof t;this.option.cancel=!!n,this.option.cancelValue=e?this.option.cancelValue:n}this.option.okFn&&(this.option.ok=!0),this.option.cancelFn&&(this.option.cancel=!0),this.option.btnPosClass="dui-dialog-ft-"+this.option.btnPos}},{key:"show",value:function(){var n=v.default.has(".dui-dialog-wrap").length;if(0==n&&this.option.mask){var e='<div class="dui-dialog-wrap"></div>';v.default.appendHTML(document.body,e)}var o=(0,l.default)(t.join("")),i=o(this.option);this.option.mask?this.dialogDom=v.default.appendHTML(v.default.find(".dui-dialog-wrap"),i):this.dialogDom=v.default.appendHTML(document.body,i)}},{key:"hide",value:function(){this.destroy()}},{key:"destroy",value:function(){this.unBindEvent();var t;t=this.option.mask?v.default.has(v.default.find(".dui-dialog-wrap"),".dui-dialog").length:v.default.has(".dui-dialog").length,v.default.remove(this.dialogDom),1==t&&this.option.mask&&v.default.remove(v.default.find(".dui-dialog-wrap")),this.dialogDom=null}},{key:"_okFn",value:function(){this.$emit("ok"),this.option.okFn&&this.option.okFn.apply(this)}},{key:"_cancelFn",value:function(){this.$emit("cancel"),this.option.cancelFn&&this.option.cancelFn.apply(this),this.hide()}},{key:"_closeFn",value:function(){this.$emit("close"),this.hide()}},{key:"_escFn",value:function(t){t=t||window.event,"27"==t.keyCode&&this.hide()}},{key:"handleDrag",value:function(){if(this.option.draggable){var t=v.default.find(this.dialogDom,".dui-dialog-hd");v.default.addClass(t,"z-draggable"),m.default.startDrag(t,this.dialogDom,d.default.boundary(this.dialogDom),this)}}},{key:"bindEvent",value:function(){var t=this.okBtn=v.default.find(this.dialogDom,".J_dialog-ok"),n=this.cancelBtn=v.default.find(this.dialogDom,".J_dialog-cancel"),e=this.closeBtn=v.default.find(this.dialogDom,".J_dialog-close");t&&t.addEventListener("click",this.bindOkClick=this._okFn.bind(this),!1),n&&n.addEventListener("click",this.bindCancelClick=this._cancelFn.bind(this),!1),e&&e.addEventListener("click",this.bindCloseClick=this._closeFn.bind(this),!1),document.addEventListener("keydown",this.bindEscClick=this._escFn.bind(this),!1)}},{key:"unBindEvent",value:function(){var t=this.okBtn,n=this.cancelBtn,e=this.closeBtn;t&&t.removeEventListener("click",this.bindOkClick,!1),n&&n.removeEventListener("click",this.bindCancelClick,!1),e&&e.removeEventListener("click",this.bindCloseClick,!1),document.removeEventListener("keydown",this.bindEscClick,!1)}}]),e}(y.default);return n.alert=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"提示";return new n({title:e,content:t,okFn:function(){this.hide()}})},n.confirm=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"提示";return new Promise(function(o){new n({title:e,content:t,okFn:function(){o(),this.hide()},cancel:!0})})},n}()},function(t,n,e){function o(t,n,e){var o=d.imports._.templateSettings||d;e&&s(t,n,e)&&(n=void 0),t=h(t),n=r({},n,o,i);var _,j,w=r({},n.imports,o.imports,i),k=f(w),O=a(w,k),M=0,C=n.interpolate||m,H="__p += '",P=RegExp((n.escape||m).source+"|"+C.source+"|"+(C===p?b:m).source+"|"+(n.evaluate||m).source+"|$","g"),E="sourceURL"in n?"//# sourceURL="+n.sourceURL+"\n":"";t.replace(P,function(n,e,o,i,r,u){return o||(o=i),H+=t.slice(M,u).replace(x,c),e&&(_=!0,H+="' +\n__e("+e+") +\n'"),r&&(j=!0,H+="';\n"+r+";\n__p += '"),o&&(H+="' +\n((__t = ("+o+")) == null ? '' : __t) +\n'"),M=u+n.length,n}),H+="';\n";var S=n.variable;S||(H="with (obj) {\n"+H+"\n}\n"),H=(j?H.replace(v,""):H).replace(g,"$1").replace(y,"$1;"),H="function("+(S||"obj")+") {\n"+(S?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(_?", __e = _.escape":"")+(j?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+H+"return __p\n}";var I=u(function(){return Function(k,E+"return "+H).apply(void 0,O)});if(I.source=H,l(I))throw I;return I}var i=e(3),r=e(5),u=e(50),a=e(52),c=e(54),l=e(51),s=e(29),f=e(55),p=e(59),d=e(60),h=e(64),v=/\b__p \+= '';/g,g=/\b(__p \+=) '' \+/g,y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,b=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,m=/($^)/,x=/['\n\r\u2028\u2029\\]/g;t.exports=o},function(t,n,e){function o(t,n,e,o){return void 0===t||i(t,r[e])&&!u.call(o,e)?n:t}var i=e(4),r=Object.prototype,u=r.hasOwnProperty;t.exports=o},function(t,n){function e(t,n){return t===n||t!==t&&n!==n}t.exports=e},function(t,n,e){var o=e(6),i=e(20),r=e(33),u=i(function(t,n,e,i){o(n,r(n),t,i)});t.exports=u},function(t,n,e){function o(t,n,e,o){var u=!e;e||(e={});for(var a=-1,c=n.length;++a<c;){var l=n[a],s=o?o(e[l],t[l],l,e,t):void 0;void 0===s&&(s=t[l]),u?r(e,l,s):i(e,l,s)}return e}var i=e(7),r=e(8);t.exports=o},function(t,n,e){function o(t,n,e){var o=t[n];a.call(t,n)&&r(o,e)&&(void 0!==e||n in t)||i(t,n,e)}var i=e(8),r=e(4),u=Object.prototype,a=u.hasOwnProperty;t.exports=o},function(t,n,e){function o(t,n,e){"__proto__"==n&&i?i(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}var i=e(9);t.exports=o},function(t,n,e){var o=e(10),i=function(){try{var t=o(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,n,e){function o(t,n){var e=r(t,n);return i(e)?e:void 0}var i=e(11),r=e(19);t.exports=o},function(t,n,e){function o(t){if(!u(t)||r(t))return!1;var n=i(t)?h:l;return n.test(a(t))}var i=e(12),r=e(14),u=e(13),a=e(18),c=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,s=Function.prototype,f=Object.prototype,p=s.toString,d=f.hasOwnProperty,h=RegExp("^"+p.call(d).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=o},function(t,n,e){function o(t){var n=i(t)?l.call(t):"";return n==r||n==u||n==a}var i=e(13),r="[object Function]",u="[object GeneratorFunction]",a="[object Proxy]",c=Object.prototype,l=c.toString;t.exports=o},function(t,n){function e(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}t.exports=e},function(t,n,e){function o(t){return!!r&&r in t}var i=e(15),r=function(){var t=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=o},function(t,n,e){var o=e(16),i=o["__core-js_shared__"];t.exports=i},function(t,n,e){var o=e(17),i="object"==typeof self&&self&&self.Object===Object&&self,r=o||i||Function("return this")();t.exports=r},function(t,n){(function(n){var e="object"==typeof n&&n&&n.Object===Object&&n;t.exports=e}).call(n,function(){return this}())},function(t,n){function e(t){if(null!=t){try{return i.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var o=Function.prototype,i=o.toString;t.exports=e},function(t,n){function e(t,n){return null==t?void 0:t[n]}t.exports=e},function(t,n,e){function o(t){return i(function(n,e){var o=-1,i=e.length,u=i>1?e[i-1]:void 0,a=i>2?e[2]:void 0;for(u=t.length>3&&"function"==typeof u?(i--,u):void 0,a&&r(e[0],e[1],a)&&(u=i<3?void 0:u,i=1),n=Object(n);++o<i;){var c=e[o];c&&t(n,c,o,u)}return n})}var i=e(21),r=e(29);t.exports=o},function(t,n,e){function o(t,n){return u(r(t,n,i),t+"")}var i=e(22),r=e(23),u=e(25);t.exports=o},function(t,n){function e(t){return t}t.exports=e},function(t,n,e){function o(t,n,e){return n=r(void 0===n?t.length-1:n,0),function(){for(var o=arguments,u=-1,a=r(o.length-n,0),c=Array(a);++u<a;)c[u]=o[n+u];u=-1;for(var l=Array(n+1);++u<n;)l[u]=o[u];return l[n]=e(c),i(t,this,l)}}var i=e(24),r=Math.max;t.exports=o},function(t,n){function e(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}t.exports=e},function(t,n,e){var o=e(26),i=e(28),r=i(o);t.exports=r},function(t,n,e){var o=e(27),i=e(9),r=e(22),u=i?function(t,n){return i(t,"toString",{configurable:!0,enumerable:!1,value:o(n),writable:!0})}:r;t.exports=u},function(t,n){function e(t){return function(){return t}}t.exports=e},function(t,n){function e(t){var n=0,e=0;return function(){var u=r(),a=i-(u-e);if(e=u,a>0){if(++n>=o)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var o=500,i=16,r=Date.now;t.exports=e},function(t,n,e){function o(t,n,e){if(!a(e))return!1;var o=typeof n;return!!("number"==o?r(e)&&u(n,e.length):"string"==o&&n in e)&&i(e[n],t)}var i=e(4),r=e(30),u=e(32),a=e(13);t.exports=o},function(t,n,e){function o(t){return null!=t&&r(t.length)&&!i(t)}var i=e(12),r=e(31);t.exports=o},function(t,n){function e(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}var o=9007199254740991;t.exports=e},function(t,n){function e(t,n){return n=null==n?o:n,!!n&&("number"==typeof t||i.test(t))&&t>-1&&t%1==0&&t<n}var o=9007199254740991,i=/^(?:0|[1-9]\d*)$/;t.exports=e},function(t,n,e){function o(t){return u(t)?i(t,!0):r(t)}var i=e(34),r=e(47),u=e(30);t.exports=o},function(t,n,e){function o(t,n){var e=u(t),o=!e&&r(t),s=!e&&!o&&a(t),p=!e&&!o&&!s&&l(t),d=e||o||s||p,h=d?i(t.length,String):[],v=h.length;for(var g in t)!n&&!f.call(t,g)||d&&("length"==g||s&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||c(g,v))||h.push(g);return h}var i=e(35),r=e(36),u=e(39),a=e(40),c=e(32),l=e(43),s=Object.prototype,f=s.hasOwnProperty;t.exports=o},function(t,n){function e(t,n){for(var e=-1,o=Array(t);++e<t;)o[e]=n(e);return o}t.exports=e},function(t,n,e){var o=e(37),i=e(38),r=Object.prototype,u=r.hasOwnProperty,a=r.propertyIsEnumerable,c=o(function(){return arguments}())?o:function(t){return i(t)&&u.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},function(t,n,e){function o(t){return i(t)&&a.call(t)==r}var i=e(38),r="[object Arguments]",u=Object.prototype,a=u.toString;t.exports=o},function(t,n){function e(t){return null!=t&&"object"==typeof t}t.exports=e},function(t,n){var e=Array.isArray;t.exports=e},function(t,n,e){(function(t){var o=e(16),i=e(42),r="object"==typeof n&&n&&!n.nodeType&&n,u=r&&"object"==typeof t&&t&&!t.nodeType&&t,a=u&&u.exports===r,c=a?o.Buffer:void 0,l=c?c.isBuffer:void 0,s=l||i;t.exports=s}).call(n,e(41)(t))},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,n){function e(){return!1}t.exports=e},function(t,n,e){var o=e(44),i=e(45),r=e(46),u=r&&r.isTypedArray,a=u?i(u):o;t.exports=a},function(t,n,e){function o(t){return r(t)&&i(t.length)&&!!E[I.call(t)]}var i=e(31),r=e(38),u="[object Arguments]",a="[object Array]",c="[object Boolean]",l="[object Date]",s="[object Error]",f="[object Function]",p="[object Map]",d="[object Number]",h="[object Object]",v="[object RegExp]",g="[object Set]",y="[object String]",b="[object WeakMap]",m="[object ArrayBuffer]",x="[object DataView]",_="[object Float32Array]",j="[object Float64Array]",w="[object Int8Array]",k="[object Int16Array]",O="[object Int32Array]",M="[object Uint8Array]",C="[object Uint8ClampedArray]",H="[object Uint16Array]",P="[object Uint32Array]",E={};E[_]=E[j]=E[w]=E[k]=E[O]=E[M]=E[C]=E[H]=E[P]=!0,E[u]=E[a]=E[m]=E[c]=E[x]=E[l]=E[s]=E[f]=E[p]=E[d]=E[h]=E[v]=E[g]=E[y]=E[b]=!1;var S=Object.prototype,I=S.toString;t.exports=o},function(t,n){function e(t){return function(n){return t(n)}}t.exports=e},function(t,n,e){(function(t){var o=e(17),i="object"==typeof n&&n&&!n.nodeType&&n,r=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=r&&r.exports===i,a=u&&o.process,c=function(){try{return a&&a.binding("util")}catch(t){}}();t.exports=c}).call(n,e(41)(t))},function(t,n,e){function o(t){if(!i(t))return u(t);var n=r(t),e=[];for(var o in t)("constructor"!=o||!n&&c.call(t,o))&&e.push(o);return e}var i=e(13),r=e(48),u=e(49),a=Object.prototype,c=a.hasOwnProperty;t.exports=o},function(t,n){function e(t){var n=t&&t.constructor,e="function"==typeof n&&n.prototype||o;return t===e}var o=Object.prototype;t.exports=e},function(t,n){function e(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}t.exports=e},function(t,n,e){var o=e(24),i=e(21),r=e(51),u=i(function(t,n){try{return o(t,void 0,n)}catch(t){return r(t)?t:new Error(t)}});t.exports=u},function(t,n,e){function o(t){return!!i(t)&&(a.call(t)==r||"string"==typeof t.message&&"string"==typeof t.name)}var i=e(38),r="[object Error]",u=Object.prototype,a=u.toString;t.exports=o},function(t,n,e){function o(t,n){return i(n,function(n){return t[n]})}var i=e(53);t.exports=o},function(t,n){function e(t,n){for(var e=-1,o=t?t.length:0,i=Array(o);++e<o;)i[e]=n(t[e],e,t);return i}t.exports=e},function(t,n){function e(t){return"\\"+o[t]}var o={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};t.exports=e},function(t,n,e){function o(t){return u(t)?i(t):r(t)}var i=e(34),r=e(56),u=e(30);t.exports=o},function(t,n,e){function o(t){if(!i(t))return r(t);var n=[];for(var e in Object(t))a.call(t,e)&&"constructor"!=e&&n.push(e);return n}var i=e(48),r=e(57),u=Object.prototype,a=u.hasOwnProperty;t.exports=o},function(t,n,e){var o=e(58),i=o(Object.keys,Object);t.exports=i},function(t,n){function e(t,n){return function(e){return t(n(e))}}t.exports=e},function(t,n){var e=/<%=([\s\S]+?)%>/g;t.exports=e},function(t,n,e){var o=e(61),i=e(68),r=e(69),u=e(59),a={escape:i,evaluate:r,interpolate:u,variable:"",imports:{_:{escape:o}}};t.exports=a},function(t,n,e){function o(t){return t=r(t),t&&a.test(t)?t.replace(u,i):t}var i=e(62),r=e(64),u=/[&<>"']/g,a=RegExp(u.source);t.exports=o},function(t,n,e){var o=e(63),i={"&":"&","<":"<",">":">",'"':""","'":"'"},r=o(i);t.exports=r},function(t,n){function e(t){return function(n){return null==t?void 0:t[n]}}t.exports=e},function(t,n,e){function o(t){return null==t?"":i(t)}var i=e(65);t.exports=o},function(t,n,e){function o(t){if("string"==typeof t)return t;if(u(t))return r(t,o)+"";if(a(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-c?"-0":n}var i=e(66),r=e(53),u=e(39),a=e(67),c=1/0,l=i?i.prototype:void 0,s=l?l.toString:void 0;t.exports=o},function(t,n,e){var o=e(16),i=o.Symbol;t.exports=i},function(t,n,e){function o(t){return"symbol"==typeof t||i(t)&&a.call(t)==r}var i=e(38),r="[object Symbol]",u=Object.prototype,a=u.toString;t.exports=o},function(t,n){var e=/<%-([\s\S]+?)%>/g;t.exports=e},function(t,n){var e=/<%([\s\S]+?)%>/g;t.exports=e},function(t,n,e){t.exports=e(71)},function(t,n,e){var o=e(6),i=e(20),r=e(33),u=i(function(t,n){o(n,r(n),t)});t.exports=u},function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default={minWidth:420,minHeight:170,maxWidth:920,maxHeight:580,hdHeight:45,ftHeight:30,padding:16,closeIconClass:"iconfont icon-shanchu5",boundary:function(t){var n=t.offsetWidth,e=t.offsetHeight;return{getLeft:function(t){var e=document.documentElement.clientWidth;return t<n/2?n/2:t>e-n/2?e-n/2:t},getTop:function(t){var n=document.documentElement.clientHeight;return t<e/2?e/2:t>n-e/2?n-e/2:t}}}}},function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default={getCss:function(t,n){return t.currentStyle?t.currentStyle[n]:document.defaultView.getComputedStyle(t,!1)[n]},addClass:function(t,n){t.classList.add(n)},has:function(t,n){1==arguments.length&&(t=document,n=arguments[0]);var e=t.querySelectorAll(n);return{length:e.length}},find:function(t,n){return 1==arguments.length&&(t=document,n=arguments[0]),t.querySelector(n)},appendHTML:function(t,n){var e=document.createElement("div");e.innerHTML=n;var o=e.childNodes[0];return t.appendChild(o),o},prependHTML:function(t,n){var e=document.createElement("div");e.innerHTML=n;var o=e.childNodes[0];return t.insertBefore(o,t.firstChild),o},remove:function(t){return t.parentNode&&t.parentNode.removeChild(t),t}}},function(t,n){"use strict";function e(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(n,e,o){return e&&t(n.prototype,e),o&&t(n,o),n}}(),r=[].slice,u=function(){function t(){e(this,t)}return i(t,[{key:"$on",value:function(t,n){if("object"===("undefined"==typeof t?"undefined":o(t)))for(var e in t)this.$on(e,t[e]);else{var i=this,r=i._handles||(i._handles={}),u=r[t]||(r[t]=[]);u.push(n)}return this}},{key:"$off",value:function(t,n){var e=this;if(e._handles){t||(this._handles={});var o,i=e._handles;if(o=i[t]){if(!n)return i[t]=[],e;for(var r=0,u=o.length;r<u;r++)if(n===o[r])return o.splice(r,1),e}return e}}},{key:"$emit",value:function(t){var n,e,o,i=this,u=i._handles;if(t){var e=r.call(arguments,1),o=t;if(!u)return i;if(n=u[o.slice(1)])for(var a=0,c=n.length;a<c;a++)n[a].apply(i,e);if(!(n=u[o]))return i;for(var l=0,c=n.length;l<c;l++)n[l].apply(i,e);return i}}}]),t}();n.default=u},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=e(73),i={left:0,top:0,currentX:0,currentY:0,flag:!1};n.default={startDrag:function(t,n,e,r){"auto"!==(0,o.getCss)(n,"left")&&(i.left=(0,o.getCss)(n,"left")),"auto"!==(0,o.getCss)(n,"top")&&(i.top=(0,o.getCss)(n,"top")),t.onmousedown=function(u){r&&r.$emit("dragStart"),i.flag=!0,u||(u=window.event,t.onselectstart=function(){return!1});var a=u;i.currentX=a.clientX,i.currentY=a.clientY,document.onmouseup=function(){i.flag=!1,"auto"!==(0,o.getCss)(n,"left")&&(i.left=(0,o.getCss)(n,"left")),"auto"!==(0,o.getCss)(n,"top")&&(i.top=(0,o.getCss)(n,"top")),r&&r.$emit("dragEnd"),document.onmousemove=null,document.onmouseup=null},document.onmousemove=function(t){var o=t?t:window.event;if(i.flag){var r=o.clientX,u=o.clientY,a=r-i.currentX,c=u-i.currentY,l=parseInt(i.left)+a,s=parseInt(i.top)+c;e&&(l=e.getLeft(l),s=e.getTop(s)),n.style.left=l+"px",n.style.top=s+"px"}}}}}},function(t,n,e){"use strict";function o(t,n,e,o,u){function a(){return(new Date).getTime()}"undefined"==typeof e&&(e=400,o="linear"),"string"==typeof e?("function"==typeof o&&(u=o),o=e,e=400):"function"==typeof e?(u=e,e=400,o="linear"):"number"==typeof e&&("function"==typeof o?(u=o,o="linear"):"undefined"==typeof o&&(o="linear"));var c={};for(var l in n)c[l]=0,"opacity"==l?c[l]=Math.round(100*(0,i.getCss)(t,l)):c[l]=parseInt((0,i.getCss)(t,l));var s=a();clearInterval(t.timer),t.timer=setInterval(function(){var i=a(),l=e-Math.max(0,s-i+e);for(var f in n){var p=r[o](l,c[f],n[f]-c[f],e);"opacity"==f?(t.style.opacity=p/100,t.style.filter="alpha(opacity="+p+")"):t.style[f]=p+"px"}l==e&&(clearInterval(t.timer),u&&u.call(t))},13)}Object.defineProperty(n,"__esModule",{value:!0});var i=e(73),r={linear:function(t,n,e,o){return e*t/o+n},easeIn:function(t,n,e,o){return e*(t/=o)*t+n},easeOut:function(t,n,e,o){return-e*(t/=o)*(t-2)+n},easeBoth:function(t,n,e,o){return(t/=o/2)<1?e/2*t*t+n:-e/2*(--t*(t-2)-1)+n},easeInStrong:function(t,n,e,o){return e*(t/=o)*t*t*t+n},easeOutStrong:function(t,n,e,o){return-e*((t=t/o-1)*t*t*t-1)+n},easeBothStrong:function(t,n,e,o){return(t/=o/2)<1?e/2*t*t*t*t+n:-e/2*((t-=2)*t*t*t-2)+n},elasticIn:function(t,n,e,o,i,r){if(0===t)return n;if(1==(t/=o))return n+e;if(r||(r=.3*o),!i||i<Math.abs(e)){i=e;var u=r/4}else var u=r/(2*Math.PI)*Math.asin(e/i);return-(i*Math.pow(2,10*(t-=1))*Math.sin((t*o-u)*(2*Math.PI)/r))+n},elasticOut:function(t,n,e,o,i,r){if(0===t)return n;if(1==(t/=o))return n+e;if(r||(r=.3*o),!i||i<Math.abs(e)){i=e;var u=r/4}else var u=r/(2*Math.PI)*Math.asin(e/i);return i*Math.pow(2,-10*t)*Math.sin((t*o-u)*(2*Math.PI)/r)+e+n},elasticBoth:function(t,n,e,o,i,r){if(0===t)return n;if(2==(t/=o/2))return n+e;if(r||(r=o*(.3*1.5)),!i||i<Math.abs(e)){i=e;var u=r/4}else var u=r/(2*Math.PI)*Math.asin(e/i);return t<1?-.5*(i*Math.pow(2,10*(t-=1))*Math.sin((t*o-u)*(2*Math.PI)/r))+n:i*Math.pow(2,-10*(t-=1))*Math.sin((t*o-u)*(2*Math.PI)/r)*.5+e+n},backIn:function(t,n,e,o,i){return"undefined"==typeof i&&(i=1.70158),e*(t/=o)*t*((i+1)*t-i)+n},backOut:function(t,n,e,o,i){return"undefined"==typeof i&&(i=3.70158),e*((t=t/o-1)*t*((i+1)*t+i)+1)+n},backBoth:function(t,n,e,o,i){return"undefined"==typeof i&&(i=1.70158),(t/=o/2)<1?e/2*(t*t*(((i*=1.525)+1)*t-i))+n:e/2*((t-=2)*t*(((i*=1.525)+1)*t+i)+2)+n},bounceIn:function(t,n,e,o){return e-r.bounceOut(o-t,0,e,o)+n},bounceOut:function(t,n,e,o){return(t/=o)<1/2.75?e*(7.5625*t*t)+n:t<2/2.75?e*(7.5625*(t-=1.5/2.75)*t+.75)+n:t<2.5/2.75?e*(7.5625*(t-=2.25/2.75)*t+.9375)+n:e*(7.5625*(t-=2.625/2.75)*t+.984375)+n},bounceBoth:function(t,n,e,o){return t<o/2?.5*r.bounceIn(2*t,0,e,o)+n:.5*r.bounceOut(2*t-o,0,e,o)+.5*e+n}};n.default={startMove:o}},function(t,n,e){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function r(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function u(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function t(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(n,e,o){return e&&t(n.prototype,e),o&&t(n,o),n}}(),c=e(2),l=o(c),s=e(70),f=o(s),p=e(78),d=o(p),h=e(73),v=o(h),g=e(74),y=o(g),b=e(76);o(b);n.default=function(){var t=['<div class="dui-tip-hint <%= tipClass %>" style="margin-top: <%=marginTop %>px; top: <%=top %>px; min-width: <%=minWidth %>px; max-width: <%=maxWidth %>px;">','<i class="<%= iconClass %>"></i>',"<p><%= msg %></p>","</div>"],n=['<div class="dui-tip-text" style="opacity: 0;">',"<p><%= msg %></p>",'<div class="close-box">','<button class="dui-btn-warning-bordered dui-btn-special dui-btn-small">我知道了</button>',"</div>","</div>"],e=function(t){function n(t){i(this,n);var e=r(this,(n.__proto__||Object.getPrototypeOf(n)).call(this)),o={tipContent:"这是一段提示"};return e.option=t,e.option=(0,f.default)({},o,e.option),e.init(),e}return u(n,t),a(n,[{key:"init",value:function(){this.show(),this.option.init&&this.option.init.apply(this)}},{key:"show",value:function(){this.tipDom=v.default.appendHTML(document.body,this.option.tipContent)}},{key:"hide",value:function(){}},{key:"destroy",value:function(){v.default.remove(this.tipDom)}}]),n}(y.default);return e.showHint=function(n,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){};v.default.has(".dui-tip-hint").length>0&&v.default.remove(v.default.find(".dui-tip-hint"));var a,c,s={tipClass:d.default.tipClassMap[n],marginTop:d.default.hint.marginTop,minWidth:d.default.hint.minWidth,maxWidth:d.default.hint.maxWidth,iconClass:d.default.hint.iconClass[n],msg:o};c=d.default.hint.pos[i],"%"==String(c).slice(-1)&&(c=Math.floor(d.default.hint.pos.rel.offsetHeight*(c.slice(0,-1)/100))),a=c-d.default.hint.pos.dis,s.top=a;var f=(0,l.default)(t.join("")),p=f(s);new e({tipContent:p,init:function(){var t=this;this.tipDom.style.display="block",setTimeout(function(){Dui.Animate.startMove(t.tipDom,{top:c},function(){setTimeout(function(){Dui.Animate.startMove(t.tipDom,{top:a},function(){u&&u.apply(t),t.tipDom.style.display="none",t.destroy()})},1e3*r)})},10)}})},e.successInfo=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};e.showHint("success",t,"top",n,o)},e.middleSuccessInfo=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};e.showHint("success",t,"middle",n,o)},e.warning=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};e.showHint("warn",t,"top",n,o)},e.middleWarning=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};e.showHint("warn",t,"middle",n,o)},e.otherInfo=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};e.showHint("other",t,"top",n,o)},e.middleOtherInfo=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};e.showHint("other",t,"middle",n,o)},e.info=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};e.showHint("info",t,"top",n,o)},e.middleInfo=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};e.showHint("info",t,"middle",n,o)},e.error=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};e.showHint("error",t,"top",n,o)},e.middleError=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};e.showHint("error",t,"middle",n,o)},e.showUpdateMessage=function(t){function o(t){var n=v.default.find(t,"button");n.onclick=function(){Dui.Animate.startMove(t,{opacity:0},400,function(){v.default.remove(t);var n=v.default.find(".dui-update-message");0==v.default.has(n,".dui-tip-text").length&&v.default.remove(n)})}}var i={msg:t},r=(0,l.default)(n.join("")),u=r(i);0==v.default.has(".dui-update-message").length?(u='<div style="top: '+d.default.updateMessage.top+'" class="dui-update-message">'+u+"</div>",new e({tipContent:u,init:function(){var t=v.default.find(this.tipDom,".dui-tip-text");Dui.Animate.startMove(t,{opacity:100},400,function(){o(t)})}})):!function(){var t=v.default.find(".dui-update-message"),n=v.default.prependHTML(t,u);Dui.Animate.startMove(n,{opacity:100},400,function(){o(n)})}()},e}()},function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default={hint:{marginTop:8,minWidth:250,maxWidth:362,iconClass:{warn:"iconfont icon-tishi-20160921",info:"iconfont icon-yunxingyichangtishi-20150921",error:"iconfont icon-cuowu-20160921",success:"iconfont icon-right-2016-0921",other:"iconfont icon-tishi-20160921"},pos:{rel:document.documentElement,top:"0",middle:"35%",dis:50}},tipClassMap:{success:"dui-tip-success",info:"dui-tip-info",warn:"dui-tip-warning",error:"dui-tip-error",other:"dui-tip"},updateMessage:{top:"2%"}}}]); |
@@ -94,12 +94,19 @@ ### 用途 | ||
- Dui.Modal.alert(content) | ||
- Dui.Modal.alert(content[, title]) | ||
弹出一个alert对话框。 | ||
- Dui.Modal.confirm(content) | ||
例: | ||
``` | ||
Dui.Modal.alert("xxxx"); | ||
``` | ||
弹出一个confirm对话框。通常我们在点击`确认`后,想做一些事件,代码如下: | ||
- Dui.Modal.confirm(content[, title]) | ||
弹出一个confirm对话框。它会返回一个Promise对象,因此如果在非chrome下要引用promise库才行,不然会报错 | ||
通常我们在点击`确认`后,想做一些事件,代码如下: | ||
``` | ||
Dui.Modal.confirm(content).then(function(){ | ||
Dui.Modal.confirm("xxxx").then(function(){ | ||
//todo something | ||
@@ -113,1 +120,2 @@ }); | ||
{ | ||
"name": "Dui", | ||
"version": "0.0.3-alpha.5", | ||
"version": "0.0.3-alpha.6", | ||
"description": "针对税友小企业部门的UI组件开发", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -380,5 +380,6 @@ import Template from "lodash/template"; | ||
Modal.alert = function(text){ | ||
Modal.alert = function(text, title = "提示"){ | ||
return new Modal({ | ||
title: title, | ||
content: text, | ||
@@ -392,3 +393,3 @@ okFn: function() { | ||
Modal.confirm = function(text) { | ||
Modal.confirm = function(text, title = "提示") { | ||
@@ -398,2 +399,3 @@ return new Promise(function(resolve) { | ||
new Modal({ | ||
title: title, | ||
content: text, | ||
@@ -400,0 +402,0 @@ okFn: function() { |
@@ -68,3 +68,3 @@ import Template from "lodash/template"; | ||
Tip.showHint = function(type, msg, pos, time, callback) { | ||
Tip.showHint = function(type, msg, pos = "top", time = 2, callback = function(){}) { | ||
@@ -71,0 +71,0 @@ //先把之前的tip给干掉 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
540984
12694